docs: add version tip in en docs (#4262)
This commit is contained in:
+36
-35
@@ -116,44 +116,45 @@ export default {
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| title | Title | `string` | - |
|
||||
| message | Message | `string` | - |
|
||||
| messageAlign | Message text align,can be set to `left` `right` | `string` | `center` |
|
||||
| className | Custom className | `any` | - |
|
||||
| showConfirmButton | Whether to show confirm button | `boolean` | `true` |
|
||||
| showCancelButton | Whether to show cancel button | `boolean` | `false` |
|
||||
| cancelButtonText | Cancel button text | `string` | `Cancel` |
|
||||
| cancelButtonColor | Cancel button color | `string` | `#000` |
|
||||
| confirmButtonText | Confirm button text | `string` | `Confirm` |
|
||||
| confirmButtonColor | Confirm button color | `string` | `#1989fa` |
|
||||
| overlay | Whether to show overlay | `boolean` | `true` |
|
||||
| closeOnPopstate | Whether to close when popstate | `boolean` | `false` |
|
||||
| closeOnClickOverlay | Whether to close when click overlay | `boolean` | `false` |
|
||||
| lockScroll | Whether to lock body scroll | `boolean` | `true` |
|
||||
| beforeClose | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - |
|
||||
| getContainer | Return the mount node for Dialog | `string | () => HTMLElement` | `body` |
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| title | Title | `string` | - | - |
|
||||
| message | Message | `string` | - | - |
|
||||
| messageAlign | Message text align,can be set to `left` `right` | `string` | `center` | - |
|
||||
| className | Custom className | `any` | - | - |
|
||||
| showConfirmButton | Whether to show confirm button | `boolean` | `true` | - |
|
||||
| showCancelButton | Whether to show cancel button | `boolean` | `false` | - |
|
||||
| cancelButtonText | Cancel button text | `string` | `Cancel` | - |
|
||||
| cancelButtonColor | Cancel button color | `string` | `#000` | - |
|
||||
| confirmButtonText | Confirm button text | `string` | `Confirm` | - |
|
||||
| confirmButtonColor | Confirm button color | `string` | `#1989fa` | - |
|
||||
| overlay | Whether to show overlay | `boolean` | `true` | - |
|
||||
| closeOnPopstate | Whether to close when popstate | `boolean` | `false` | 2.0.5 |
|
||||
| closeOnClickOverlay | Whether to close when click overlay | `boolean` | `false` | - |
|
||||
| lockScroll | Whether to lock body scroll | `boolean` | `true` | - |
|
||||
| beforeClose | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - | - |
|
||||
| getContainer | Return the mount node for Dialog | `string | () => HTMLElement` | `body` | - |
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Whether to show dialog | `boolean` | - |
|
||||
| title | Title | `string` | - |
|
||||
| message | Message | `string` | - |
|
||||
| message-align | Message align,can be set to `left` `right` | `string` | `center` |
|
||||
| show-confirm-button | Whether to show confirm button | `boolean` | `true` |
|
||||
| show-cancel-button | Whether to show cancel button | `boolean` | `false` |
|
||||
| cancel-button-text | Cancel button text | `string` | `Cancel` |
|
||||
| cancel-button-color | Cancel button color | `string` | `#000` |
|
||||
| confirm-button-text | Confirm button text | `string` | `Confirm` |
|
||||
| confirm-button-color | Confirm button color | `string` | `#1989fa` |
|
||||
| overlay | Whether to show overlay | `boolean` | `true` |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `boolean` | `false` |
|
||||
| lock-scroll | Whether to lock background scroll | `boolean` | `true` |
|
||||
| before-close | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - |
|
||||
| get-container | Return the mount node for Dialog | `string | () => HTMLElement` | - |
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| v-model | Whether to show dialog | `boolean` | - | - |
|
||||
| title | Title | `string` | - | - |
|
||||
| message | Message | `string` | - | - |
|
||||
| message-align | Message align,can be set to `left` `right` | `string` | `center` | - |
|
||||
| show-confirm-button | Whether to show confirm button | `boolean` | `true` | - |
|
||||
| show-cancel-button | Whether to show cancel button | `boolean` | `false` | - |
|
||||
| cancel-button-text | Cancel button text | `string` | `Cancel` | - |
|
||||
| cancel-button-color | Cancel button color | `string` | `#000` | - |
|
||||
| confirm-button-text | Confirm button text | `string` | `Confirm` | - |
|
||||
| confirm-button-color | Confirm button color | `string` | `#1989fa` | - |
|
||||
| overlay | Whether to show overlay | `boolean` | `true` | - |
|
||||
| close-on-popstate | Whether to close when popstate | `boolean` | `false` | 2.0.5 |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `boolean` | `false` | - |
|
||||
| lock-scroll | Whether to lock background scroll | `boolean` | `true` | - |
|
||||
| before-close | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - | - |
|
||||
| get-container | Return the mount node for Dialog | `string | () => HTMLElement` | - | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -181,6 +181,7 @@ export default {
|
||||
| confirm-button-text | 确认按钮文案 | `string` | `确认` | - |
|
||||
| confirm-button-color | 确认按钮颜色 | `string` | `#1989fa` | - |
|
||||
| overlay | 是否展示遮罩层 | `boolean` | `true` | - |
|
||||
| close-on-popstate | 是否在页面回退时自动关闭 | `boolean` | `false` | 2.0.5 |
|
||||
| close-on-click-overlay | 是否在点击遮罩层后关闭 | `boolean` | `false` | - |
|
||||
| lock-scroll | 是否锁定背景滚动 | `boolean` | `true` | - |
|
||||
| before-close | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | `(action, done) => void` | - | - |
|
||||
|
||||
Reference in New Issue
Block a user