You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| iconType | Icon `type` of the Icon component (deperated after `1.14.0`) | string |`question-circle`|
61
-
| keyboard | Whether support press esc to close | Boolean | true |
62
-
| mask | Whether show mask or not. | Boolean | true |
63
-
| maskClosable | Whether to close the modal dialog when the mask (area outside the modal) is clicked | Boolean |`false`|
64
-
| okText | Text of the OK button | string |`OK`|
65
-
| okType | Button `type` of the OK button | string |`primary`|
66
-
| okButtonProps | The ok button props |[ButtonProps](/components/button)| - |
67
-
| cancelButtonProps | The cancel button props |[ButtonProps](/components/button)| - |
68
-
| title | Title | string\|vNode \|function(h) | - |
69
-
| width | Width of the modal dialog | string\|number | 416 |
70
-
| zIndex | The `z-index` of the Modal | Number | 1000 |
71
-
| 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 | - |
72
-
| 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 | - |
51
+
| Property | Description | Type | Default | Version |
52
+
| --- | --- | --- | --- | --- |
53
+
| autoFocusButton | Specify which button to autofocus | null\|string: `ok``cancel`|`ok`||
54
+
| cancelText | Text of the Cancel button | string |`Cancel`||
55
+
| centered | Centered Modal | Boolean |`false`||
56
+
| closable | Whether a close (x) button is visible on top right of the modal dialog or not | boolean |`false`||
| iconType | Icon `type` of the Icon component (deperated after `1.14.0`) | string |`question-circle`||
61
+
| keyboard | Whether support press esc to close | Boolean | true ||
62
+
| mask | Whether show mask or not. | Boolean | true ||
63
+
| maskClosable | Whether to close the modal dialog when the mask (area outside the modal) is clicked | Boolean |`false`||
64
+
| okText | Text of the OK button | string |`OK`||
65
+
| okType | Button `type` of the OK button | string |`primary`||
66
+
| okButtonProps | The ok button props |[ButtonProps](/components/button)| - ||
67
+
| cancelButtonProps | The cancel button props |[ButtonProps](/components/button)| - ||
68
+
| title | Title | string\|vNode \|function(h) | - ||
69
+
| width | Width of the modal dialog | string\|number | 416 ||
70
+
| zIndex | The `z-index` of the Modal | Number | 1000 ||
71
+
| 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 | - ||
72
+
| 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 | - ||
73
+
| parentContext | The parent context of the popup is generally used to get the parent provider, such as the configuration of `ConfigProvider`| vue instance | - | 1.4.11 |
73
74
74
75
All the `Modal.method`s will return a reference, and then we can update and close the modal dialog by the reference.
0 commit comments