ux-m-platform-modal
v0.0.4
Published
单独的弹窗
Downloads
20
Readme
Modal弹窗组件
单独的弹窗
UI规则
- 整个弹窗分为三个部分,标题、内容、操作按钮
- 文字居中对齐
- 操作按钮平分底部的空间,文字在各自的区域内居中显示
API
Modal props
| name | description | type | default | | -------- | --------------------------------------- | ------ | ------- | | cls | 自定义container css | String | '' | | title | 标题 | String | | | footer | 按钮 {text: 按钮内容, onTouchTap: 点击按钮后的回调函数} | Array | [ ] | | children | 内容 | | |