npm-com-alert

A common alert plugin
613
Install
npm install npm-com-alert
Latest Version:1.0.24
Vue:2
License:MIT
Last Updated:Nov 24, 2021
Links: GitHub  ·  npm
Maintainer: acelibin

NOTE: THIS IS A TEST PACKAGE!

Try it

npm i npm-com-alert

Params

this.$alert({
  // custom className,自定义的样式类
  className: '',
  visible: false,
  // title, support html,标题,可传HTML
  title: '',
  // text, support html,提示文字,可传HTML
  text: '',
  // button name, optional,按钮文字,可选
  btnTitle: '',
  // click Close in the upper right corner? 
  // It can be closed by default
  // 是否可点击右上角关闭,默认可关闭
  closable: true,
}).then((res) => {
  if (res === true) {
    // return boolean, you can write your code here.
    // 点击按钮返回布尔值true
  }
})

Version History

Version Released Vue License
1.0.24 ^2.5.11 MIT
1.0.23 ^2.5.11 MIT
1.0.22 ^2.5.11 MIT
1.0.21 ^2.5.11 MIT
1.0.20 ^2.5.11 MIT