docs: update version tag
This commit is contained in:
+18
-18
@@ -136,21 +136,21 @@ Toast.resetDefaultOptions('loading');
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| type | Can be set to `loading` `success` `fail` `html` | *string* | `text` | - |
|
||||
| position | Can be set to `top` `middle` `bottom` | *string* | `middle` | - |
|
||||
| message | Message | *string* | `''` | - |
|
||||
| icon | Custom icon | *string* | - | 2.0.1 |
|
||||
| iconPrefix | Icon className prefix | *string* | `van-icon` | 2.0.9 |
|
||||
| overlay | Whether to show overlay | *boolean* | `false` | 2.2.13 |
|
||||
| forbidClick | Whether to forbid click background | *boolean* | `false` | - |
|
||||
| closeOnClick | Whether to close after clicked | *boolean* | `false` | 2.1.5 |
|
||||
| closeOnClickOverlay | Whether to close when click overlay | *boolean* | `false` | 2.2.13 |
|
||||
| loadingType | Loading icon type, can be set to `spinner` | *string* | `circular` | - |
|
||||
| duration | Toast duration(ms), won't disappear if value is 0 | *number* | `2000` | - |
|
||||
| className | Custom className | *any* | - | - |
|
||||
| onOpened | Callback function after opened | *Function* | - | - |
|
||||
| onClose | Callback function after close | *Function* | - | - |
|
||||
| transition | Transition, equivalent to `name` prop of [transtion](https://vuejs.org/v2/api/#transition) | *string* | - | 2.2.6 |
|
||||
| getContainer | Return the mount node for Toast | *string \| () => Element* | `body` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| type | Can be set to `loading` `success` `fail` `html` | *string* | `text` |
|
||||
| position | Can be set to `top` `middle` `bottom` | *string* | `middle` |
|
||||
| message | Message | *string* | `''` |
|
||||
| icon `v2.0.1` | Custom icon | *string* | - |
|
||||
| iconPrefix `v2.0.9` | Icon className prefix | *string* | `van-icon` |
|
||||
| overlay `v2.2.13` | Whether to show overlay | *boolean* | `false` |
|
||||
| forbidClick | Whether to forbid click background | *boolean* | `false` |
|
||||
| closeOnClick `v2.1.5` | Whether to close after clicked | *boolean* | `false` |
|
||||
| closeOnClickOverlay `v2.2.13` | Whether to close when click overlay | *boolean* | `false` |
|
||||
| loadingType | Loading icon type, can be set to `spinner` | *string* | `circular` |
|
||||
| duration | Toast duration(ms), won't disappear if value is 0 | *number* | `2000` |
|
||||
| className | Custom className | *any* | - |
|
||||
| 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* | - |
|
||||
| getContainer | Return the mount node for Toast | *string \| () => Element* | `body` |
|
||||
|
||||
+18
-18
@@ -139,21 +139,21 @@ Toast.resetDefaultOptions('loading');
|
||||
|
||||
### Options
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| type | 提示类型,可选值为 `loading` `success`<br>`fail` `html` | *string* | `text` | - |
|
||||
| position | 位置,可选值为 `top` `bottom` | *string* | `middle` | - |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | `''` | - | - |
|
||||
| icon | 自定义图标,支持传入图标名称或图片链接,可选值见 [Icon 组件](#/zh-CN/icon) | *string* | - | 2.0.1 |
|
||||
| iconPrefix | 图标类名前缀 | *string* | `van-icon` | 2.0.9 |
|
||||
| overlay | 是否显示背景遮罩层 | *boolean* | `false` | 2.2.13 |
|
||||
| forbidClick | 是否禁止背景点击 | *boolean* | `false` | - |
|
||||
| closeOnClick | 是否在点击后关闭 | *boolean* | `false` | 2.1.5 |
|
||||
| closeOnClickOverlay | 是否在点击遮罩层后关闭 | *boolean* | `false` | 2.2.13 |
|
||||
| loadingType | 加载图标类型, 可选值为 `spinner` | *string* | `circular` | - |
|
||||
| duration | 展示时长(ms),值为 0 时,toast 不会消失 | *number* | `2000` | - |
|
||||
| className | 自定义类名 | *any* | - | - |
|
||||
| onOpened | 完全展示后的回调函数 | *Function* | - | - |
|
||||
| onClose | 关闭时的回调函数 | *Function* | - | - |
|
||||
| transition | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - | 2.2.6 |
|
||||
| getContainer | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | `body` | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| type | 提示类型,可选值为 `loading` `success`<br>`fail` `html` | *string* | `text` |
|
||||
| position | 位置,可选值为 `top` `bottom` | *string* | `middle` |
|
||||
| message | 文本内容,支持通过`\n`换行 | *string* | `''` | - |
|
||||
| icon `v2.0.1` | 自定义图标,支持传入图标名称或图片链接,可选值见 [Icon 组件](#/zh-CN/icon) | *string* | - |
|
||||
| iconPrefix `v2.0.9` | 图标类名前缀 | *string* | `van-icon` |
|
||||
| overlay `v2.2.13` | 是否显示背景遮罩层 | *boolean* | `false` |
|
||||
| forbidClick | 是否禁止背景点击 | *boolean* | `false` |
|
||||
| closeOnClick `v2.1.5` | 是否在点击后关闭 | *boolean* | `false` |
|
||||
| closeOnClickOverlay `v2.2.13` | 是否在点击遮罩层后关闭 | *boolean* | `false` |
|
||||
| loadingType | 加载图标类型, 可选值为 `spinner` | *string* | `circular` |
|
||||
| duration | 展示时长(ms),值为 0 时,toast 不会消失 | *number* | `2000` |
|
||||
| className | 自定义类名 | *any* | - |
|
||||
| onOpened | 完全展示后的回调函数 | *Function* | - |
|
||||
| onClose | 关闭时的回调函数 | *Function* | - |
|
||||
| transition `v2.2.6` | 动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性 | *string* | - |
|
||||
| getContainer | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => Element* | `body` |
|
||||
|
||||
Reference in New Issue
Block a user