fix: modal method wrapClassName not work, close #5550

pull/5564/head
tangjinzhou 2022-04-26 17:14:03 +08:00
parent c5159279ce
commit 646f0c69b2
3 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ export default defineComponent<ConfirmDialogProps>({
'closeIcon', 'closeIcon',
'modalRender', 'modalRender',
'focusTriggerAfterClose', 'focusTriggerAfterClose',
'wrapClassName',
] as any, ] as any,
setup(props, { attrs }) { setup(props, { attrs }) {
const [locale] = useLocaleReceiver('Modal'); const [locale] = useLocaleReceiver('Modal');

View File

@ -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` | | | okType | Button `type` of the OK button | string | `primary` | |
| title | Title | string\|VNode \|function(h) | - | | | title | Title | string\|VNode \|function(h) | - | |
| width | Width of the modal dialog | string\|number | 416 | | | 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 | | | 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 | - | | | 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 | - | | | 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 | - | |

View File

@ -87,7 +87,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg
| okType | 确认按钮类型 | string | primary | | | okType | 确认按钮类型 | string | primary | |
| title | 标题 | string\|VNode \|function(h) | 无 | | | title | 标题 | string\|VNode \|function(h) | 无 | |
| width | 宽度 | string\|number | 416 | | | width | 宽度 | string\|number | 416 | |
| wrapClassName | 对话框外层容器的类名 | string | - | 3.0 | | wrapClassName | 对话框外层容器的类名 | string | - | 3.2.3 |
| zIndex | 设置 Modal 的 `z-index` | number | 1000 | | | zIndex | 设置 Modal 的 `z-index` | number | 1000 | |
| onCancel | 取消回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | | | onCancel | 取消回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | |
| onOk | 点击确定回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | | | onOk | 点击确定回调,参数为关闭函数,返回 promise 时 resolve 后自动关闭 | function | 无 | |