docs: add version tip in en docs (#4262)
This commit is contained in:
+16
-16
@@ -112,19 +112,19 @@ toast2.clear();
|
||||
|
||||
### Options
|
||||
|
||||
| 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 | Custom icon | `string` | - |
|
||||
| iconPrefix | Icon className prefix | `string` | `van-icon` |
|
||||
| mask | Whether to show mask | `boolean` | `false` |
|
||||
| forbidClick | Whether to forbid click background | `boolean` | `false` |
|
||||
| closeOnClick | Whether to close after clicked | `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` | `3000` |
|
||||
| className | Custom className | `any` | - |
|
||||
| onOpened | Callback function after opened | `Function` | - |
|
||||
| onClose | Callback function after close | `Function` | - |
|
||||
| getContainer | Return the mount node for Toast | `string | () => HTMLElement` | `body` |
|
||||
| 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 |
|
||||
| mask | Whether to show mask | `boolean` | `false` | - |
|
||||
| forbidClick | Whether to forbid click background | `boolean` | `false` | - |
|
||||
| closeOnClick | Whether to close after clicked | `boolean` | `false` | 2.1.5 |
|
||||
| loadingType | Loading icon type, can be set to `spinner` | `string` | `circular` | - |
|
||||
| duration | Toast duration(ms), won't disappear if value is 0 | `number` | `3000` | - |
|
||||
| className | Custom className | `any` | - | - |
|
||||
| onOpened | Callback function after opened | `Function` | - | - |
|
||||
| onClose | Callback function after close | `Function` | - | - |
|
||||
| getContainer | Return the mount node for Toast | `string | () => HTMLElement` | `body` | - |
|
||||
|
||||
@@ -125,6 +125,6 @@ toast2.clear();
|
||||
| loadingType | 加载图标类型, 可选值为 `spinner` | `string` | `circular` | - |
|
||||
| duration | 展示时长(ms),值为 0 时,toast 不会消失 | `number` | `3000` | - |
|
||||
| className | 自定义类名 | `any` | - | - |
|
||||
| onOpened | 完全展示后的回调函数 | `Function` | - | 2.0.0 |
|
||||
| onOpened | 完全展示后的回调函数 | `Function` | - | - |
|
||||
| onClose | 关闭时的回调函数 | `Function` | - | - |
|
||||
| getContainer | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | `string | () => HTMLElement` | `body` | - |
|
||||
|
||||
Reference in New Issue
Block a user