npm-com-alert
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 | |
| 1.0.19 | ^2.5.11 | MIT | |
| 1.0.18 | ^2.5.11 | MIT | |
| 1.0.17 | ^2.5.11 | MIT | |
| 1.0.16 | ^2.5.11 | MIT | |
| 1.0.15 | ^2.5.11 | MIT | |
| 1.0.14 | ^2.5.11 | MIT | |
| 1.0.13 | ^2.5.11 | MIT | |
| 1.0.12 | ^2.5.11 | MIT | |
| 1.0.11 | ^2.5.11 | MIT | |
| 1.0.10 | ^2.5.11 | MIT | |
| 1.0.9 | ^2.5.11 | MIT | |
| 1.0.8 | ^2.5.11 | MIT | |
| 1.0.7 | ^2.5.11 | MIT | |
| 1.0.6 | ^2.5.11 | MIT | |
| 1.0.5 | ISC | ||
| 1.0.4 | ISC | ||
| 1.0.3 | ISC | ||
| 1.0.2 | ISC | ||
| 1.0.1 | ISC | ||
| 1.0.0 | ISC |