mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
docs: type highlight (#4264)
This commit is contained in:
@@ -68,12 +68,12 @@ export default {
|
||||
|
||||
| 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` | - | - |
|
||||
| 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* | - | - |
|
||||
|
@@ -79,12 +79,12 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| type | 类型,可选值为 `primary` `info` `warning` | `string` | `danger` | 2.1.6 |
|
||||
| message | 展示文案,支持通过`\n`换行 | `string` | - | - |
|
||||
| duration | 展示时长(ms),值为 0 时,notify 不会消失 | `number` | `3000` | - |
|
||||
| color | 字体颜色 | `string` | `#fff` | - |
|
||||
| background | 背景颜色 | `string` | `#f44` | - |
|
||||
| className | 自定义类名 | `any` | - | - |
|
||||
| onClick | 点击时的回调函数 | `Function` | - | - |
|
||||
| onOpened | 完全展示后的回调函数 | `Function` | - | - |
|
||||
| onClose | 关闭时的回调函数 | `Function` | - | - |
|
||||
| type | 类型,可选值为 `primary` `info` `warning` | *string* | `danger` | 2.1.6 |
|
||||
| message | 展示文案,支持通过`\n`换行 | *string* | - | - |
|
||||
| duration | 展示时长(ms),值为 0 时,notify 不会消失 | *number* | `3000` | - |
|
||||
| color | 字体颜色 | *string* | `#fff` | - |
|
||||
| background | 背景颜色 | *string* | `#f44` | - |
|
||||
| className | 自定义类名 | *any* | - | - |
|
||||
| onClick | 点击时的回调函数 | *Function* | - | - |
|
||||
| onOpened | 完全展示后的回调函数 | *Function* | - | - |
|
||||
| onClose | 关闭时的回调函数 | *Function* | - | - |
|
||||
|
Reference in New Issue
Block a user