1.0.1 • Published 6 years ago
nuke-biz-custom-dialog v1.0.1
CustomDialog
- category: UI
- chinese: 业务UI对话框
- type: UI组件
何时使用
构建符合 material design 风格的 dialog 时
设计规范
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
type | 浮层类型,枚举可选'confirm','alert','custom' | string | 'custom' |
locale | 覆盖按钮默认文案,locale={{confirm: 'GOT it' ,cancel:'cancel'}} | obj | 默认将根据兜底文案+语言(英文或上下文语种)展示 |
contentStyle | 内容区样式 | obj | 无 |
onHide | 浮层关闭时触发回调 | function | |
onShow | 浮层打开后后触发回调 | function | false |
duration | 动画渲染时间,ms单位 | number | 200 |
btns | 按钮配置数组,例如 {text:'btn1',onPress:this.event,style:{color:'red'}},{text:'btn2'} | array | [] |