You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Modal
|
|
|
|
|
|
|
|
- order: 1
|
|
|
|
- category: Components
|
|
|
|
- chinese: 对话框
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
模态对话框。
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 `Modal` 在当前页面正中打开一个浮层,承载相应的操作。
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
属性列表
|
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
|
|
|------------|----------------|------------------|--------------|
|
|
|
|
| title | 标题 | React.Element | 无 |
|
|
|
|
| onOk | 点击确定回调 | function | 无 |
|
|
|
|
| onCancel | 点击遮罩层或右上角叉或取消按钮的回调 | function | 无 |
|
|
|
|
| width | 宽度 | String or Number | 500 |
|
|
|
|
| footer | 底部内容 | React.Element | 确定取消按钮 |
|