docs: update version tag
This commit is contained in:
+45
-45
@@ -116,54 +116,54 @@ export default {
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| title | Title | *string* | - | - |
|
||||
| width | Width | *string \| number* | `320px` | 2.2.7 |
|
||||
| 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` | - |
|
||||
| overlayClass | Custom overlay class | *string* | - | 2.2.7 |
|
||||
| overlayStyle | Custom overlay style | *object* | - | 2.2.7 |
|
||||
| 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 | - | - |
|
||||
| transition | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - | 2.2.6 |
|
||||
| getContainer | Return the mount node for Dialog | *string \| () => Element* | `body` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| title | Title | *string* | - |
|
||||
| width `v2.2.7` | Width | *string \| number* | `320px` |
|
||||
| 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` |
|
||||
| overlayClass `v2.2.7` | Custom overlay class | *string* | - |
|
||||
| overlayStyle `v2.2.7` | Custom overlay style | *object* | - |
|
||||
| closeOnPopstate `v2.0.5` | 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 | - |
|
||||
| transition `v2.2.6` | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - |
|
||||
| getContainer | Return the mount node for Dialog | *string \| () => Element* | `body` |
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| v-model | Whether to show dialog | *boolean* | - | - |
|
||||
| title | Title | *string* | - | - |
|
||||
| width | Width | *string \| number* | `320px` | 2.2.7 |
|
||||
| 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` | - |
|
||||
| overlay-class | Custom overlay class | *string* | - | 2.2.7 |
|
||||
| overlay-style | Custom overlay style | *object* | - | 2.2.7 |
|
||||
| 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` | - |
|
||||
| lazy-render | Whether to lazy render util appeared | *boolean* | `true` | - |
|
||||
| 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 | - | - |
|
||||
| transition | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - | 2.2.6 |
|
||||
| get-container | Return the mount node for Dialog | *string \| () => Element* | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Whether to show dialog | *boolean* | - |
|
||||
| title | Title | *string* | - |
|
||||
| width `v2.2.7` | Width | *string \| number* | `320px` |
|
||||
| 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` |
|
||||
| overlay-class `v2.2.7` | Custom overlay class | *string* | - |
|
||||
| overlay-style `v2.2.7` | Custom overlay style | *object* | - |
|
||||
| close-on-popstate `v2.0.5` | Whether to close when popstate | *boolean* | `false` |
|
||||
| close-on-click-overlay | Whether to close when click overlay | *boolean* | `false` |
|
||||
| lazy-render | Whether to lazy render util appeared | *boolean* | `true` |
|
||||
| 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 | - |
|
||||
| transition `v2.2.6` | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - |
|
||||
| get-container | Return the mount node for Dialog | *string \| () => Element* | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
+45
-45
@@ -145,56 +145,56 @@ export default {
|
||||
|
||||
通过函数调用 `Dialog` 时,支持传入以下选项:
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| title | 标题 | *string* | - | - |
|
||||
| width | 弹窗宽度,默认单位为`px` | *string \| number* | `320px` | 2.2.7 |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | - | - |
|
||||
| messageAlign | 内容对齐方式,可选值为`left` `right` | *string* | `center` | - |
|
||||
| className | 自定义类名 | *any* | - | - |
|
||||
| showConfirmButton | 是否展示确认按钮 | *boolean* | `true` | - |
|
||||
| showCancelButton | 是否展示取消按钮 | *boolean* | `false` | - |
|
||||
| confirmButtonText | 确认按钮文案 | *string* | `确认` | - |
|
||||
| confirmButtonColor | 确认按钮颜色 | *string* | `#1989fa` | - |
|
||||
| cancelButtonText | 取消按钮文案 | *string* | `取消` | - |
|
||||
| cancelButtonColor | 取消按钮颜色 | *string* | `#000` | - |
|
||||
| overlay | 是否展示遮罩层 | *boolean* | `true` | - |
|
||||
| overlayClass | 自定义遮罩层类名 | *string* | - | 2.2.7 |
|
||||
| overlayStyle | 自定义遮罩层样式 | *object* | - | 2.2.7 |
|
||||
| closeOnPopstate | 是否在页面回退时自动关闭 | *boolean* | `false` | 2.0.5 |
|
||||
| closeOnClickOverlay | 是否在点击遮罩层后关闭弹窗 | *boolean* | `false` | - |
|
||||
| lockScroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
||||
| beforeClose | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - | - |
|
||||
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |
|
||||
| getContainer | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | `body` | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| title | 标题 | *string* | - |
|
||||
| width `v2.2.7` | 弹窗宽度,默认单位为`px` | *string \| number* | `320px` |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | - |
|
||||
| messageAlign | 内容对齐方式,可选值为`left` `right` | *string* | `center` |
|
||||
| className | 自定义类名 | *any* | - |
|
||||
| showConfirmButton | 是否展示确认按钮 | *boolean* | `true` |
|
||||
| showCancelButton | 是否展示取消按钮 | *boolean* | `false` |
|
||||
| confirmButtonText | 确认按钮文案 | *string* | `确认` |
|
||||
| confirmButtonColor | 确认按钮颜色 | *string* | `#1989fa` |
|
||||
| cancelButtonText | 取消按钮文案 | *string* | `取消` |
|
||||
| cancelButtonColor | 取消按钮颜色 | *string* | `#000` |
|
||||
| overlay | 是否展示遮罩层 | *boolean* | `true` |
|
||||
| overlayClass `v2.2.7` | 自定义遮罩层类名 | *string* | - |
|
||||
| overlayStyle `v2.2.7` | 自定义遮罩层样式 | *object* | - |
|
||||
| closeOnPopstate `v2.0.5` | 是否在页面回退时自动关闭 | *boolean* | `false` |
|
||||
| closeOnClickOverlay | 是否在点击遮罩层后关闭弹窗 | *boolean* | `false` |
|
||||
| lockScroll | 是否锁定背景滚动 | *boolean* | `true` |
|
||||
| beforeClose | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - |
|
||||
| transition `v2.2.6` | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - |
|
||||
| getContainer | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | `body` |
|
||||
|
||||
### Props
|
||||
|
||||
通过组件调用 `Dialog` 时,支持以下 Props:
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 是否显示弹窗 | *boolean* | - | - |
|
||||
| title | 标题 | *string* | - | - |
|
||||
| width | 弹窗宽度,默认单位为`px` | *string \| number* | `320px` | 2.2.7 |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | - | - |
|
||||
| message-align | 内容对齐方式,可选值为`left` `right` | *string* | `center` | - |
|
||||
| show-confirm-button | 是否展示确认按钮 | *boolean* | `true` | - |
|
||||
| show-cancel-button | 是否展示取消按钮 | *boolean* | `false` | - |
|
||||
| confirm-button-text | 确认按钮文案 | *string* | `确认` | - |
|
||||
| confirm-button-color | 确认按钮颜色 | *string* | `#1989fa` | - |
|
||||
| cancel-button-text | 取消按钮文案 | *string* | `取消` | - |
|
||||
| cancel-button-color | 取消按钮颜色 | *string* | `#000` | - |
|
||||
| overlay | 是否展示遮罩层 | *boolean* | `true` | - |
|
||||
| overlay-class | 自定义遮罩层类名 | *string* | - | 2.2.7 |
|
||||
| overlay-style | 自定义遮罩层样式 | *object* | - | 2.2.7 |
|
||||
| close-on-popstate | 是否在页面回退时自动关闭 | *boolean* | `false` | 2.0.5 |
|
||||
| close-on-click-overlay | 是否在点击遮罩层后关闭弹窗 | *boolean* | `false` | - |
|
||||
| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` | - |
|
||||
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
||||
| before-close | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - | - |
|
||||
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |
|
||||
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| v-model | 是否显示弹窗 | *boolean* | - |
|
||||
| title | 标题 | *string* | - |
|
||||
| width `v2.2.7` | 弹窗宽度,默认单位为`px` | *string \| number* | `320px` |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | - |
|
||||
| message-align | 内容对齐方式,可选值为`left` `right` | *string* | `center` |
|
||||
| show-confirm-button | 是否展示确认按钮 | *boolean* | `true` |
|
||||
| show-cancel-button | 是否展示取消按钮 | *boolean* | `false` |
|
||||
| confirm-button-text | 确认按钮文案 | *string* | `确认` |
|
||||
| confirm-button-color | 确认按钮颜色 | *string* | `#1989fa` |
|
||||
| cancel-button-text | 取消按钮文案 | *string* | `取消` |
|
||||
| cancel-button-color | 取消按钮颜色 | *string* | `#000` |
|
||||
| overlay | 是否展示遮罩层 | *boolean* | `true` |
|
||||
| overlay-class `v2.2.7` | 自定义遮罩层类名 | *string* | - |
|
||||
| overlay-style `v2.2.7` | 自定义遮罩层样式 | *object* | - |
|
||||
| close-on-popstate `v2.0.5` | 是否在页面回退时自动关闭 | *boolean* | `false` |
|
||||
| close-on-click-overlay | 是否在点击遮罩层后关闭弹窗 | *boolean* | `false` |
|
||||
| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` |
|
||||
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` |
|
||||
| before-close | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - |
|
||||
| transition `v2.2.6` | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - |
|
||||
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user