github地址:
https://github.com/fuXiangRong/fxr-alert
使用方法
- npm i vue-fxr-alert -S
- 或 cnpm i vue-fxr-alert -S
- import vueFxrAlert from 'vue-fxr-alert'
- Vue.use(vueFxrAlert);
<script>export default {name: 'app',created(){//显示this.fxrAlert.show({title: '友情提示',content: '用户名不正确',onShow () {console.log('显示')},onHide () {console.log('确定按钮点击回调')}})// 隐藏this.fxrAlert.hide()}}</script>