1.0.0 • Published 4 years ago

vue-common-alert v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

vue-common-alert

一个简单的弹框插件

使用方法

npm install vue-common-alert --save
import VueCommonAlert from 'vue-common-alert'
Vue.use(VueCommonAlert)
// options(可选)
this.$vcAlert(options).then(()=>{
    // success
}).catch(()=>{
    // failed
})

api

options:{
   context: '确定操作吗?', // 主文本
      cancel: '取消', // 取消操作
      confirm: '确定', // 确定操作
}