docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions

View File

@@ -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* | - | - |

View File

@@ -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* | - | - |