1.0.4 • Published 3 years ago

vue-alert-plugin v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

描述

vue PC端的信息弹出框组件

#API show(options) options 传入的对象

options:{
    message: '', //提示信息
    duration: 2000, //显示时长
    type: '' // 提示类型: success 成功 error 失败
}

this.$notice.show({ message: '操作成功', type:'success' })

用法

1.在项目的main.js里先引入.引入后就可以使用了

import notice from 'vue-alert-plugin' Vue.use(notice)

2.在需要用到的地方使用

this.$notice.show({ message: 'hhh', type:'error' })

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago