mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: add demo link of get-container prop (#5080)
This commit is contained in:
parent
86094485cb
commit
27e2e9cb2e
@ -136,7 +136,7 @@ export default {
|
|||||||
| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` | - |
|
| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` | - |
|
||||||
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
||||||
| duration | 动画时长,单位秒 | *number* | `0.3` | 2.0.3 |
|
| duration | 动画时长,单位秒 | *number* | `0.3` | 2.0.3 |
|
||||||
| get-container | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | - | - |
|
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - | - |
|
||||||
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` | - |
|
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
|||||||
| lockScroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
| lockScroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
||||||
| beforeClose | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - | - |
|
| 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 |
|
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |
|
||||||
| getContainer | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | `body` | - |
|
| getContainer | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | `body` | - |
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ export default {
|
|||||||
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
|
||||||
| before-close | 关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭 | *(action, done) => void* | - | - |
|
| 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 |
|
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |
|
||||||
| get-container | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | - | - |
|
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ export default {
|
|||||||
| options | 选项数组 | *Option[]* | `[]` | - |
|
| options | 选项数组 | *Option[]* | `[]` | - |
|
||||||
| disabled | 是否禁用菜单 | *boolean* | `false` | - |
|
| disabled | 是否禁用菜单 | *boolean* | `false` | - |
|
||||||
| title-class | 标题额外类名 | *string* | - | - |
|
| title-class | 标题额外类名 | *string* | - | - |
|
||||||
| get-container | 指定弹出菜单挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | - | 2.2.4 |
|
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - | 2.2.4 |
|
||||||
|
|
||||||
### DropdownItem Events
|
### DropdownItem Events
|
||||||
|
|
||||||
|
@ -144,9 +144,9 @@ export default {
|
|||||||
| close-on-click-overlay | 是否在点击遮罩层后关闭 | *boolean* | `true` | - |
|
| close-on-click-overlay | 是否在点击遮罩层后关闭 | *boolean* | `true` | - |
|
||||||
| closeable | 是否显示关闭图标 | *boolean* | `false` | 2.2.0 |
|
| closeable | 是否显示关闭图标 | *boolean* | `false` | 2.2.0 |
|
||||||
| close-icon | 关闭图标名称或图片链接 | *string* | `cross` | 2.2.0 |
|
| close-icon | 关闭图标名称或图片链接 | *string* | `cross` | 2.2.0 |
|
||||||
| close-icon-position | 关闭图标位置,可选值为`top-left` `bottom-left` `bottom-right` | *string* | `top-right` | 2.2.2 |
|
| close-icon-position | 关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right` | *string* | `top-right` | 2.2.2 |
|
||||||
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | - |
|
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | - |
|
||||||
| get-container | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | - | - |
|
| get-container | 指定挂载的节点 | *string \| () => Element* | - | - |
|
||||||
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | 2.2.1 |
|
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | 2.2.1 |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
@ -141,7 +141,7 @@ export default {
|
|||||||
| stepper-title | 数量选择组件左侧文案 | *string* | `购买数量` | - |
|
| stepper-title | 数量选择组件左侧文案 | *string* | `购买数量` | - |
|
||||||
| custom-stepper-config | 步进器相关自定义配置 | *object* | `{}` | - |
|
| custom-stepper-config | 步进器相关自定义配置 | *object* | `{}` | - |
|
||||||
| message-config | 留言相关配置 | *object* | `{}` | - |
|
| message-config | 留言相关配置 | *object* | `{}` | - |
|
||||||
| get-container | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | - | - |
|
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - | - |
|
||||||
| initial-sku | 默认选中的 sku,具体参考高级用法 | *object* | `{}` | - |
|
| initial-sku | 默认选中的 sku,具体参考高级用法 | *object* | `{}` | - |
|
||||||
| show-soldout-sku | 是否展示售罄的 sku,默认展示并置灰 | *boolean* | `true` | - |
|
| show-soldout-sku | 是否展示售罄的 sku,默认展示并置灰 | *boolean* | `true` | - |
|
||||||
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | 2.2.1 |
|
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | 2.2.1 |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user