1.25.2 • Published 5 years ago

@winman-f2e/nw-confirm v1.25.2

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

nw-confirm

安装

$ yarn add nw-confirm

使用

import confirm from 'nw-confirm'

confirm({
    content: '我是一些内容,很长的内容爱啦啦阿拉啦啦啦啦啦',
    okText: '确定',
    cancelText: '取消'
}).then(() => {
    console.log('确定')
}).catch(() => {
    console.log('取消')
})

接受的参数

{
    content = '', 
    okText = '确定', 
    cancelText = '取消',
    maskClosable = true,
    maskStyle = {},
    maskClassName = ''
}