@@ -91,37 +91,37 @@ Otherwise, you can simply nest them logically, without any extra settings:
91
91
92
92
#### Props
93
93
94
-
Name | Type | Default | Required | Description
95
-
---------------- | ---------- | -------- | -------- | -----------------------
96
-
`v-model` | Boolean | false | ✔ | Show / hide the modal.
97
-
`title` | String | | | The modal title (will be override if title slot exist).
98
-
`size` | String | | | The alternative modal size. Support `lg` / `sm`.
99
-
`backdrop` | Boolean | true | | Dismiss the modal by backdrop click.
100
-
`footer` | Boolean | true | | Show modal footer.
101
-
`header` | Boolean | true | | Show modal header.
102
-
`dismiss-btn` | Boolean | true | | Display the dismiss button in header.
103
-
`cancel-text` | String | | | Override the text of cancel button.
104
-
`cancel-type` | String | default | | Button type of cancel button.
105
-
`ok-text` | String | | | Override the text of ok button.
106
-
`ok-type` | String | primary | | Button type of ok button.
107
-
`transition` | Number | 150 | | Transition time of the modal, set to 0 to disable animation.
108
-
`auto-focus` | Boolean | false | | Focus on the action button that has `data-action="auto-focus"` attribute after modal open, by default it is the OK button.
109
-
`keyboard` | Boolean | true | | Close the modal after `esc` key pressed.
110
-
`append-to-body` | Boolean | false | | Append the modal element to `<body>`.
111
-
`before-close` | Function | | | Call with the `msg` param, return `false` to interrupt the modal hiding process. Promise supported since 0.34.1.
94
+
| Name | Type | Default | Required | Description |
95
+
|------------------|----------|---------|----------|---------------------------------------------------------------------------------------------------------------|
96
+
| `v-model` | Boolean | false | ✔ | Show / hide the modal. |
97
+
| `title` | String | | | The modal title (will be override if title slot exist). |
98
+
| `size` | String | | | The alternative modal size. Support `lg` / `sm`. |
99
+
| `backdrop` | Boolean | true | | Dismiss the modal by backdrop click. |
100
+
| `footer` | Boolean | true | | Show modal footer. |
101
+
| `header` | Boolean | true | | Show modal header. |
102
+
| `dismiss-btn` | Boolean | true | | Display the dismiss button in header. |
103
+
| `cancel-text` | String | | | Override the text of cancel button. |
104
+
| `cancel-type` | String | default | | Button type of cancel button. |
105
+
| `ok-text` | String | | | Override the text of ok button. |
106
+
| `ok-type` | String | primary | | Button type of ok button. |
107
+
| `transition` | Number | 150 | | Transition time of the modal, set to 0 to disable animation. |
108
+
| `auto-focus` | Boolean | false | | Focus on the button that has `data-action="auto-focus"` attribute after modal open, the OK button by default. |
109
+
| `keyboard` | Boolean | true | | Close the modal after `esc` key pressed. |
110
+
| `append-to-body` | Boolean | false | | Append the modal element to `<body>`. |
111
+
| `before-close` | Function | | | Call with the `msg` param, return `false` to interrupt the modal hiding process. Promise supported. |
112
112
113
113
#### Slots
114
114
115
-
Name | Description
116
-
--------- | -----------------------
117
-
`title` | Replace as the modal title.
118
-
`default` | Replace as the modal body.
119
-
`header` | Replace as the modal header. Note: this slot will override `title` slot since it is a completely replacement of header.
120
-
`footer` | Replace as the modal footer.
115
+
| Name | Description |
116
+
|-----------|-------------------------------------------------------------------------------------------------------------------------|
117
+
| `title` | Replace as the modal title. |
118
+
| `default` | Replace as the modal body. |
119
+
| `header` | Replace as the modal header. Note: this slot will override `title` slot since it is a completely replacement of header. |
120
+
| `footer` | Replace as the modal footer. |
121
121
122
122
#### Events
123
123
124
-
Name | Params | Description
125
-
----------- | ------ | ---------------
126
-
`show` | | Fire after modal show.
127
-
`hide` | msg | Fire after modal dismiss with message (if exist).
124
+
| Name | Params | Description |
125
+
|--------|--------|---------------------------------------------------|
126
+
| `show` | | Fire after modal show. |
127
+
| `hide` | msg | Fire after modal dismiss with message (if exist). |
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4