nw-confirm

2.6.1 • Public • Published

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 = ''
}

Readme

Keywords

none

Package Sidebar

Install

npm i nw-confirm

Weekly Downloads

1

Version

2.6.1

License

none

Unpacked Size

9.77 kB

Total Files

4

Last publish

Collaborators

  • luofeiyue
  • whiskeyi
  • yousy
  • guoyeeg
  • azgaga
  • liushichuan
  • yaochen
  • shenyuan
  • aflyermin
  • ignous
  • jeekdong
  • wuww5511