Skip to content

Commit f400c80

Browse files
authored
docs: update modal api description (#7232)
* docs: update modal api description * docs: update modal api description
1 parent 502c11c commit f400c80

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/modal/index.en-US.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ The items listed above are all functions, expecting a settings object as paramet
7272
| centered | Centered Modal | boolean | `false` | |
7373
| class | class of container | string | - | |
7474
| closable | Whether a close (x) button is visible on top right of the modal dialog or not | boolean | `false` | |
75-
| content | Content | string\|VNode \|function(h) | - | |
76-
| footer | Footer content, set as `footer: null` when you don't need default buttons | string\|VNode \|function(h) | - | 4.0.0 |
75+
| content | Content | string\|VNode \|function() | - | |
76+
| footer | Footer content, set as `footer: null` when you don't need default buttons | string\|VNode \|function() | - | 4.0.0 |
7777
| icon | custom icon (`Added in 1.14.0`) | VNode \|()=>VNode | - | |
7878
| keyboard | Whether support press esc to close | boolean | true | |
7979
| mask | Whether show mask or not. | boolean | true | |
8080
| maskClosable | Whether to close the modal dialog when the mask (area outside the modal) is clicked | boolean | `false` | |
8181
| okButtonProps | The ok button props | [ButtonProps](/components/button) | - | |
8282
| okText | Text of the OK button | string | `OK` | |
8383
| okType | Button `type` of the OK button | string | `primary` | |
84-
| title | Title | string\|VNode \|function(h) | - | |
84+
| title | Title | string\|VNode \|function() | - | |
8585
| width | Width of the modal dialog | string\|number | 416 | |
8686
| wrapClassName | The class name of the container of the modal dialog | string | - | 3.2.3 |
8787
| zIndex | The `z-index` of the Modal | number | 1000 | |

components/modal/index.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
7676
| centered | 垂直居中展示 Modal | boolean | `false` | |
7777
| class | 容器类名 | string | - | |
7878
| closable | 是否显示右上角的关闭按钮 | boolean | `false` | |
79-
| content | 内容 | string \|VNode \|function(h) || |
80-
| footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer: null` | string \|VNode \|function(h) | - | 4.0.0 |
79+
| content | 内容 | string \|VNode \|function() || |
80+
| footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer: null` | string \|VNode \|function() | - | 4.0.0 |
8181
| icon | 自定义图标(1.14.0 新增) | VNode \| ()=>VNode | - | |
8282
| keyboard | 是否支持键盘 esc 关闭 | boolean | true | |
8383
| mask | 是否展示遮罩 | boolean | true | |
8484
| maskClosable | 点击蒙层是否允许关闭 | boolean | `false` | |
8585
| okButtonProps | ok 按钮 props | [ButtonProps](/components/button) | - | |
8686
| okText | 确认按钮文字 | string | 确定 | |
8787
| okType | 确认按钮类型 | string | primary | |
88-
| title | 标题 | string\|VNode \|function(h) || |
88+
| title | 标题 | string\|VNode \|function() || |
8989
| width | 宽度 | string\|number | 416 | |
9090
| wrapClassName | 对话框外层容器的类名 | string | - | 3.2.3 |
9191
| zIndex | 设置 Modal 的 `z-index` | number | 1000 | |

0 commit comments

Comments
 (0)