@@ -19,14 +19,14 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
19
19
20
20
| 参数 | 说明 | 类型 | 默认值 | 版本 |
21
21
| --- | --- | --- | --- | --- |
22
- | afterClose | Modal 完全关闭后的回调 | function | 无 | |
22
+ | afterClose | Modal 完全关闭后的回调 | function | - | |
23
23
| bodyStyle | Modal body 样式 | object | {} | |
24
24
| cancelButtonProps | cancel 按钮 props | [ ButtonProps] ( /components/button/#api ) | - | |
25
25
| cancelText | 取消按钮文字 | string\| slot | 取消 | |
26
26
| centered | 垂直居中展示 Modal | boolean | ` false ` | |
27
27
| closable | 是否显示右上角的关闭按钮 | boolean | true | |
28
28
| closeIcon | 自定义关闭图标 | VNode \| slot | - | |
29
- | confirmLoading | 确定按钮 loading | boolean | 无 | |
29
+ | confirmLoading | 确定按钮 loading | boolean | - | |
30
30
| destroyOnClose | 关闭时销毁 Modal 里的子元素 | boolean | false | |
31
31
| footer | 底部内容,当不需要默认底部按钮时,可以设为 ` :footer="null" ` | string\| slot | 确定取消按钮 | |
32
32
| forceRender | 强制渲染 Modal | boolean | false | |
@@ -38,8 +38,8 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
38
38
| okButtonProps | ok 按钮 props | [ ButtonProps] ( /components/button/#api ) | - | |
39
39
| okText | 确认按钮文字 | string\| slot | 确定 | |
40
40
| okType | 确认按钮类型 | string | primary | |
41
- | title | 标题 | string\| slot | 无 | |
42
- | open(v-model) | 对话框是否可见 | boolean | 无 | |
41
+ | title | 标题 | string\| slot | - | |
42
+ | open(v-model) | 对话框是否可见 | boolean | - | |
43
43
| width | 宽度 | string\| number | 520 | |
44
44
| wrapClassName | 对话框外层容器的类名 | string | - | |
45
45
| zIndex | 设置 Modal 的 ` z-index ` | number | 1000 | |
@@ -76,7 +76,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
76
76
| centered | 垂直居中展示 Modal | boolean | ` false ` | |
77
77
| class | 容器类名 | string | - | |
78
78
| closable | 是否显示右上角的关闭按钮 | boolean | ` false ` | |
79
- | content | 内容 | string \| VNode \| function() | 无 | |
79
+ | content | 内容 | string \| VNode \| function() | - | |
80
80
| footer | 底部内容,当不需要默认底部按钮时,可以设为 ` footer: null ` | string \| VNode \| function() | - | 4.0.0 |
81
81
| icon | 自定义图标(1.14.0 新增) | VNode \| ()=>VNode | - | |
82
82
| keyboard | 是否支持键盘 esc 关闭 | boolean | true | |
@@ -85,12 +85,12 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
85
85
| okButtonProps | ok 按钮 props | [ ButtonProps] ( /components/button ) | - | |
86
86
| okText | 确认按钮文字 | string | 确定 | |
87
87
| okType | 确认按钮类型 | string | primary | |
88
- | title | 标题 | string\| VNode \| function() | 无 | |
88
+ | title | 标题 | string\| VNode \| function() | - | |
89
89
| width | 宽度 | string\| number | 416 | |
90
90
| wrapClassName | 对话框外层容器的类名 | string | - | 3.2.3 |
91
91
| zIndex | 设置 Modal 的 ` z-index ` | number | 1000 | |
92
- | onCancel | 取消回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | |
93
- | onOk | 点击确定回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | |
92
+ | onCancel | 取消回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | - | |
93
+ | onOk | 点击确定回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | - | |
94
94
95
95
以上函数调用后,会返回一个引用,可以通过该引用更新和关闭弹窗。
96
96
0 commit comments