cefc-ui-modal

0.0.23 • Public • Published

Modal

属性 说明 类型 默认值
prefixCls 样式前缀,如cefc-modal,可用于自定义样式 string
header Modal的头部 string | element
type Modal的类别,有alert和confirm两个值 string confirm
content Modal的提示内容 string | element
confirmText 确认按钮的文字 string | element
cancelText 取消按钮的文字 string
closeIcon 是否显示右上角的关闭图标 bool true
disableConfirm 是否禁用确定按钮 bool false
onConfirm 点击确定按钮的回调函数 func
onCancle 点击取消按钮的回调函数 func
onHide Modal关闭的回调函数 func
className 外部传入类 string
isOpen 是否显示Modal bool true
children Modal的子组件 element

使用方式

Modal.open({
    type="confirm" 
    header="我是标题" 
    content="我是内容"
});
 
Modal.open({
    type="confirm" 
    header="我是标题" 
    content="我是内容"
});
 

Readme

Keywords

none

Package Sidebar

Install

npm i cefc-ui-modal

Weekly Downloads

14

Version

0.0.23

License

ISC

Last publish

Collaborators

  • wscops
  • chenghuijun
  • simon_zhx
  • carltonxiang
  • kane