mirror of
https://github.com/youzan/vant.git
synced 2026-01-29 01:15:18 +08:00
breaking change: rename get-container to teleport
This commit is contained in:
@@ -154,4 +154,4 @@ Toast.resetDefaultOptions('loading');
|
||||
| onOpened | Callback function after opened | _Function_ | - |
|
||||
| onClose | Callback function after close | _Function_ | - |
|
||||
| transition `v2.2.6` | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | _string_ | `van-fade` |
|
||||
| getContainer | Return the mount node for Toast | _string \| () => Element_ | `body` |
|
||||
| teleport | Return the mount node for Toast | _string \| Element_ | `body` |
|
||||
|
||||
@@ -167,4 +167,4 @@ Toast.resetDefaultOptions('loading');
|
||||
| onOpened | 完全展示后的回调函数 | _Function_ | - |
|
||||
| onClose | 关闭时的回调函数 | _Function_ | - |
|
||||
| transition `v2.2.6` | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | _string_ | `van-fade` |
|
||||
| getContainer | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| () => Element_ | `body` |
|
||||
| teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | `body` |
|
||||
|
||||
@@ -11,12 +11,12 @@ const defaultOptions = {
|
||||
onClose: null,
|
||||
onOpened: null,
|
||||
duration: 2000,
|
||||
teleport: 'body',
|
||||
iconPrefix: undefined,
|
||||
position: 'middle',
|
||||
transition: 'van-fade',
|
||||
forbidClick: false,
|
||||
loadingType: undefined,
|
||||
getContainer: 'body',
|
||||
overlayStyle: null,
|
||||
closeOnClick: false,
|
||||
closeOnClickOverlay: false,
|
||||
|
||||
Reference in New Issue
Block a user