this.$message({
    type: 'success'/'warning'/'error'/'info',
    message: '消息提示内容',
    showClose: true/false,
    duration: Number,
    center: true/false,
    dangerouslyUseHtmlString: true/false      
})

type:定义消息提示框的不同状态,默认为info

message:消息提示内容

showClose:默认的message是不可以手动关闭的,如果需要手动关闭,设置showClose为true,一般与duration搭配使用

duration:显示时间, 毫秒。设为 0 则不会自动关闭,默认3000ms

center:是否居中

dangerouslyUseHTMLString:将此属性设置为true,message会被当成html片段处理

vue—message消息提示

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案