点击弹出Dialog
this.$dialog('欢迎使用sinoiovUI', '提示')
点击弹出Dialog
this.$dialog({
type: 'alert',
message: 'sinoiovUI很好',
title: '提示'
})
打开alert
this.$dialog.alert('很好的框架').then(() => {})
打开prompt
this.$dialog.prompt({
inputValidator: value => {
if (value.length < 3) {
return '最少三个字'
} else {
return true
}
}
}).then(value => {
console.log(value)
}).catch(() => {})