@@ -19,14 +19,14 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
1919
2020| 参数| 说明| 类型| 默认值| 版本|
2121| ---| ---| ---| ---| ---|
22- | afterClose| Modal 完全关闭后的回调| function| 无 | |
22+ | afterClose| Modal 完全关闭后的回调| function| - | |
2323| bodyStyle| Modal body 样式| object| {}| |
2424| cancelButtonProps| cancel 按钮 props| [ ButtonProps] ( /components/button/#api ) | -| |
2525| cancelText| 取消按钮文字| string\| slot| 取消| |
2626| centered| 垂直居中展示 Modal| boolean| ` false ` | |
2727| closable| 是否显示右上角的关闭按钮| boolean| true| |
2828| closeIcon| 自定义关闭图标| VNode\| slot| -| |
29- | confirmLoading| 确定按钮 loading| boolean| 无 | |
29+ | confirmLoading| 确定按钮 loading| boolean| - | |
3030| destroyOnClose| 关闭时销毁 Modal 里的子元素| boolean| false| |
3131| footer| 底部内容,当不需要默认底部按钮时,可以设为` :footer="null" ` | string\| slot| 确定取消按钮| |
3232| forceRender| 强制渲染 Modal| boolean| false| |
@@ -38,8 +38,8 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
3838| okButtonProps| ok 按钮 props| [ ButtonProps] ( /components/button/#api ) | -| |
3939| okText| 确认按钮文字| string\| slot| 确定| |
4040| okType| 确认按钮类型| string| primary| |
41- | title| 标题| string\| slot| 无 | |
42- | open(v-model)| 对话框是否可见| boolean| 无 | |
41+ | title| 标题| string\| slot| - | |
42+ | open(v-model)| 对话框是否可见| boolean| - | |
4343| width| 宽度| string\| number| 520| |
4444| wrapClassName| 对话框外层容器的类名| string| -| |
4545| zIndex| 设置 Modal 的` z-index ` | number| 1000| |
@@ -76,7 +76,7 @@ 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()| 无 | |
79+ | content| 内容| string\| VNode\| function()| - | |
8080| footer| 底部内容,当不需要默认底部按钮时,可以设为` footer: null ` | string\| VNode\| function()| -| 4.0.0|
8181| icon| 自定义图标(1.14.0 新增)| VNode\| ()=>VNode| -| |
8282| keyboard| 是否支持键盘 esc 关闭| boolean| true| |
@@ -85,12 +85,12 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*fBrgSJBmavgAAA
8585| okButtonProps| ok 按钮 props| [ ButtonProps] ( /components/button ) | -| |
8686| okText| 确认按钮文字| string| 确定| |
8787| okType| 确认按钮类型| string| primary| |
88- | title| 标题| string\| VNode\| function()| 无 | |
88+ | title| 标题| string\| VNode\| function()| - | |
8989| width| 宽度| string\| number| 416| |
9090| wrapClassName| 对话框外层容器的类名| string| -| 3.2.3|
9191| 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| - | |
9494
9595以上函数调用后,会返回一个引用,可以通过该引用更新和关闭弹窗。
9696