0.0.4 • Published 4 years ago

zmg-toast v0.0.4

Weekly downloads
12
License
-
Repository
-
Last release
4 years ago

功能

  • toast 组件 - dialog 组件

用法

  1. 安装依赖
npm install --save zmg-toast
  1. 引入并使用
import UI from 'zmg-toast'
Vue.use(UI)

toast

Props

nametypedefaultdescription
msgString''弹窗提示语
typeString''弹窗类型:success(成功提示),fail(失败提示),warning(警告),loading(加载)

dialog

Props

nametypedefaultdescription
titleString''标题
textString''文本内容
typeString''默认纯文本,input(输入框)
maxlengthNumber20输入的最多字数
confirmTextString确定右边按钮
cancelTextString取消左边按钮

Events

nameparamsdescription
confirmnull选择后的回调
cancelull取消后的回调
0.0.3

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago