|
|
@@ -168,47 +168,49 @@ export default {
|
|
|
:::
|
|
|
|
|
|
## API
|
|
|
-| Attribute | Description | Type | Default |
|
|
|
-|---------------------|--------------------------------------------------------------------------------|------------------|----------------------|
|
|
|
-| title | Title | String | - |
|
|
|
-| id | Identifier, share one instance at the same time, default to multiple instances | String or Number | new Date().getTime() |
|
|
|
-| content | Content, support HTML | String | - |
|
|
|
-| teleport | Specifies a target element where Dialog will be mounted | String | "body" |
|
|
|
-| closeOnClickOverlay | Whether to close when overlay is clicked | Boolean | false |
|
|
|
-| noFooter | Hide bottom button bar | Boolean | false |
|
|
|
-| noOkBtn | Hide OK button | Boolean | false |
|
|
|
-| noCancelBtn | Hide cancel button | Boolean | false |
|
|
|
-| cancelText | Cancel button text | String | "Cancel" |
|
|
|
-| okText | OK button text | String | "Confirm" |
|
|
|
-| cancelAutoClose | Click Cancel to close the popup | Boolean | true |
|
|
|
-| textAlign | Text alignment direction, the optional value is the same as css text-align | String | "center" |
|
|
|
-| closeOnPopstate | Whether to close when popstate | Boolean | false |
|
|
|
-| onUpdate | Update | Boolean | false |
|
|
|
-| onOk | Emitted when the confirm button is clicked | Function | - |
|
|
|
-| onCancel | Emitted when the cancel button is clicked | Function | - |
|
|
|
-| onClosed | Emitted when Dialog is closed | Function | - |
|
|
|
+| Attribute | Description | Type | Default |
|
|
|
+|----------------------|--------------------------------------------------------------------------------|------------------|----------------------|
|
|
|
+| title | Title | String | - |
|
|
|
+| id | Identifier, share one instance at the same time, default to multiple instances | String or Number | new Date().getTime() |
|
|
|
+| content | Content, support HTML | String | - |
|
|
|
+| teleport | Specifies a target element where Dialog will be mounted | String | "body" |
|
|
|
+| closeOnClickOverlay | Whether to close when overlay is clicked | Boolean | false |
|
|
|
+| noFooter | Hide bottom button bar | Boolean | false |
|
|
|
+| noOkBtn | Hide OK button | Boolean | false |
|
|
|
+| noCancelBtn | Hide cancel button | Boolean | false |
|
|
|
+| cancelText | Cancel button text | String | "Cancel" |
|
|
|
+| okText | OK button text | String | "Confirm" |
|
|
|
+| cancelAutoClose | Click Cancel to close the popup | Boolean | true |
|
|
|
+| textAlign | Text alignment direction, the optional value is the same as css text-align | String | "center" |
|
|
|
+| closeOnPopstate | Whether to close when popstate | Boolean | false |
|
|
|
+| customClass`v3.1.22` | Custom dialog class | String | |
|
|
|
+| onUpdate | Update | Boolean | false |
|
|
|
+| onOk | Emitted when the confirm button is clicked | Function | - |
|
|
|
+| onCancel | Emitted when the cancel button is clicked | Function | - |
|
|
|
+| onClosed | Emitted when Dialog is closed | Function | - |
|
|
|
|
|
|
|
|
|
## Props
|
|
|
|
|
|
-| Attribute | Description | Type | Default |
|
|
|
-|------------------------|-----------------------------------------------------------------------------------------------------------|---------|------------|
|
|
|
-| title | Title | String | - |
|
|
|
-| content | Content, support HTML | String | - |
|
|
|
-| teleport | Specifies a target element where Dialog will be mounted | String | "body" |
|
|
|
-| close-on-click-overlay | Whether to close when overlay is clicked | Boolean | false |
|
|
|
-| no-footer | Hide bottom button bar | Boolean | false |
|
|
|
-| no-ok-btn | Hide OK button | Boolean | false |
|
|
|
-| no-cancel-btn | Hide cancel button | Boolean | false |
|
|
|
-| cancel-text | Cancel button text | String | "Cancel" |
|
|
|
-| ok-text | OK button text | String | "Confirm" |
|
|
|
-| cancel-auto-close | Click Cancel to close the popup | Boolean | true |
|
|
|
-| text-align | Text alignment direction, the optional value is the same as css text-align | String | "center" |
|
|
|
-| close-on-popstate | Whether to close when popstate | Boolean | false |
|
|
|
-| lock-scroll | Whether to lock background scroll | Boolean | false |
|
|
|
-| footer-direction | The bottom button uses the horizontal and vertical directions. Optional values are horizontal and vertical. | string | horizontal |
|
|
|
-| overlay-class`v3.1.21` | Custom mask classname | String | - |
|
|
|
-| overlay-style`v3.1.21` | Custom mask styles | CSSProperties | - |
|
|
|
+| Attribute | Description | Type | Default |
|
|
|
+|------------------------|-----------------------------------------------------------------------------------------------------------|---------------|------------|
|
|
|
+| title | Title | String | - |
|
|
|
+| content | Content, support HTML | String | - |
|
|
|
+| teleport | Specifies a target element where Dialog will be mounted | String | "body" |
|
|
|
+| close-on-click-overlay | Whether to close when overlay is clicked | Boolean | false |
|
|
|
+| no-footer | Hide bottom button bar | Boolean | false |
|
|
|
+| no-ok-btn | Hide OK button | Boolean | false |
|
|
|
+| no-cancel-btn | Hide cancel button | Boolean | false |
|
|
|
+| cancel-text | Cancel button text | String | "Cancel" |
|
|
|
+| ok-text | OK button text | String | "Confirm" |
|
|
|
+| cancel-auto-close | Click Cancel to close the popup | Boolean | true |
|
|
|
+| text-align | Text alignment direction, the optional value is the same as css text-align | String | "center" |
|
|
|
+| close-on-popstate | Whether to close when popstate | Boolean | false |
|
|
|
+| lock-scroll | Whether to lock background scroll | Boolean | false |
|
|
|
+| footer-direction | The bottom button uses the horizontal and vertical directions. Optional values are horizontal and vertical. | string | horizontal |
|
|
|
+| overlay-class`v3.1.21` | Custom mask classname | String | - |
|
|
|
+| overlay-style`v3.1.21` | Custom mask styles | CSSProperties | - |
|
|
|
+| custom-class`v3.1.22` | Custom dialog class | String | - |
|
|
|
|
|
|
## Events
|
|
|
|