mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
docs: add version tip in en docs (#4262)
This commit is contained in:
@@ -64,16 +64,16 @@ export default {
|
||||
| Notify.setDefaultOptions | `options` | `void` | Set default options of all notifies |
|
||||
| Notify.resetDefaultOptions | - | `void` | Reset default options of all notifies |
|
||||
|
||||
### Props
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| type | Can be set to `primary` `info` `warning` | `string` | `danger` |
|
||||
| message | Message | `string` | - |
|
||||
| duration | Duration(ms), won't disappear if value is 0 | `number` | `3000` |
|
||||
| color | Message color | `string` | `#fff` | |
|
||||
| background | Background color | `string` | `#f44` |
|
||||
| className | Custom className | `any` | - |
|
||||
| onClick | Callback function after click | `Function` | - |
|
||||
| onOpened | Callback function after opened | `Function` | - |
|
||||
| onClose | Callback function after close | `Function` | - |
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| type | Can be set to `primary` `info` `warning` | `string` | `danger` | - |
|
||||
| message | Message | `string` | - | - |
|
||||
| duration | Duration(ms), won't disappear if value is 0 | `number` | `3000` | - |
|
||||
| color | Message color | `string` | `#fff` | | - |
|
||||
| background | Background color | `string` | `#f44` | - |
|
||||
| className | Custom className | `any` | - | - |
|
||||
| onClick | Callback function after click | `Function` | - | - |
|
||||
| onOpened | Callback function after opened | `Function` | - | - |
|
||||
| onClose | Callback function after close | `Function` | - | - |
|
||||
|
@@ -85,6 +85,6 @@ export default {
|
||||
| color | 字体颜色 | `string` | `#fff` | - |
|
||||
| background | 背景颜色 | `string` | `#f44` | - |
|
||||
| className | 自定义类名 | `any` | - | - |
|
||||
| onClick | 点击时的回调函数 | `Function` | - | 2.0.0 |
|
||||
| onOpened | 完全展示后的回调函数 | `Function` | - | 2.0.0 |
|
||||
| onClose | 关闭时的回调函数 | `Function` | - | 2.0.0 |
|
||||
| onClick | 点击时的回调函数 | `Function` | - | - |
|
||||
| onOpened | 完全展示后的回调函数 | `Function` | - | - |
|
||||
| onClose | 关闭时的回调函数 | `Function` | - | - |
|
||||
|
Reference in New Issue
Block a user