0.0.9 • Published 6 years ago

mui-modal v0.0.9

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

mui-modal

Install

npm i mui-modal

Use

import {openModal} from 'mui-modal'

openModal({
    title: '提示',
    content: '提示的内容'
})
或
import 'mui-modal'

wuage.openModal({
    title: '提示',
    content: '提示的内容'
})

引入mui-modal自动绑定到全局变量wuage上

Param

  1. title: 标题, 非必填
  2. content: 内容, 必填
  3. type: 类型, confirm或prompt, 默认confirm
  4. showCancel: 是否显示取消按钮, 默认true
  5. cancelText: 取消按钮文案,默认'取消'
  6. cancelColor: 取消按钮颜色,默认'#000'
  7. showConfirm: 是否显示确定按钮, 默认true
  8. confirmText: 确定按钮文案,默认'确定'
  9. confirmColor: 确定按钮颜色,默认'#316CCB'
  10. confirm: 确定按钮回调函数
  11. cancel: 取消按钮回调函数
  12. promptChange: 当type为prompt,每次修改input内容的回调函数,返回值是错误信息
  13. zindex: 1
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago