Skip to content

Commit

Permalink
docs(dialog): 属性表中增加自定义尺寸、拖拽功能和高度属性说明 (#11614)
Browse files Browse the repository at this point in the history
- 在 size 属性中添加了 custom 选项
- 新增 width、height 和 draggable 属性说明

Co-authored-by: Song Mingxu <mingxu.song@gmail.com>
  • Loading branch information
BeMxself and Song Mingxu authored Feb 21, 2025
1 parent ec00b5c commit e4677e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/zh-CN/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,15 +893,19 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
| type | `string` | | `"dialog"` 指定为 Dialog 渲染器 |
| title | [SchemaNode](../../docs/types/schemanode) | | 弹出层标题 |
| body | [SchemaNode](../../docs/types/schemanode) | | 往 Dialog 内容区加内容 |
| size | `string` | | 指定 dialog 大小,支持: `xs``sm``md``lg``xl``full` |
| size | `string` | | 指定 dialog 大小,支持: `xs``sm``md``lg``xl``full``custom` |
| width | `number \| string` | | Dialog 宽度, size 为 `custom` 时生效 |
| height | `number \| string` | | Dialog 高度, size 为 `custom` 时生效 |
| bodyClassName | `string` | `modal-body` | Dialog body 区域的样式类名 |
| closeOnEsc | `boolean` | `false` | 是否支持按 `Esc` 关闭 Dialog |
| showCloseButton | `boolean` | `true` | 是否显示右上角的关闭按钮 |
| showErrorMsg | `boolean` | `true` | 是否在弹框左下角显示报错信息 |
| showLoading | `boolean` | `true` | 是否在弹框左下角显示 loading 动画 |
| disabled | `boolean` | `false` | 如果设置此属性,则该 Dialog 只读没有提交操作。 |
| draggable | `boolean` | | 是否支持拖拽 Dialog |
| actions | Array<[Action](./action)> | 【确认】和【取消】 | 如果想不显示底部按钮,可以配置:`[]` |
| data | `object` | | 支持[数据映射](../../docs/concepts/data-mapping),如果不设定将默认将触发按钮的上下文中继承数据。 |
| |

## 事件表

Expand Down

0 comments on commit e4677e8

Please sign in to comment.