diff --git a/components/modal/ConfirmDialog.tsx b/components/modal/ConfirmDialog.tsx index aa77dd5be..121837d86 100644 --- a/components/modal/ConfirmDialog.tsx +++ b/components/modal/ConfirmDialog.tsx @@ -59,6 +59,7 @@ export default defineComponent({ 'closeIcon', 'modalRender', 'focusTriggerAfterClose', + 'wrapClassName', ] as any, setup(props, { attrs }) { const [locale] = useLocaleReceiver('Modal'); diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index 10761d5f1..5f96f8002 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -83,7 +83,7 @@ The items listed above are all functions, expecting a settings object as paramet | okType | Button `type` of the OK button | string | `primary` | | | title | Title | string\|VNode \|function(h) | - | | | width | Width of the modal dialog | string\|number | 416 | | -| wrapClassName | The class name of the container of the modal dialog | string | - | 3.0 | +| wrapClassName | The class name of the container of the modal dialog | string | - | 3.2.3 | | zIndex | The `z-index` of the Modal | number | 1000 | | | onCancel | Specify a function that will be called when the user clicks the Cancel button. The parameter of this function is a function whose execution should include closing the dialog. You can also just return a promise and when the promise is resolved, the modal dialog will also be closed | function | - | | | onOk | Specify a function that will be called when the user clicks the OK button. The parameter of this function is a function whose execution should include closing the dialog. You can also just return a promise and when the promise is resolved, the modal dialog will also be closed | function | - | | diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index b2931cb48..43717d022 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -87,7 +87,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg | okType | 确认按钮类型 | string | primary | | | title | 标题 | string\|VNode \|function(h) | 无 | | | width | 宽度 | string\|number | 416 | | -| wrapClassName | 对话框外层容器的类名 | string | - | 3.0 | +| wrapClassName | 对话框外层容器的类名 | string | - | 3.2.3 | | zIndex | 设置 Modal 的 `z-index` | number | 1000 | | | onCancel | 取消回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | | | onOk | 点击确定回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | |