feat(Grid): add info prop (#4424)

This commit is contained in:
neverland
2019-09-11 11:48:24 +08:00
committed by GitHub
parent eb32c6b02e
commit e69e3d349a
11 changed files with 79 additions and 97 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ import 'vant/lib/icon/local.css';
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| name | Icon name or URL | *string* | `''` | - |
| info | Info message | *string \| number* | `''` | - |
| info | Content of badge in the upper right corner of icon | *string \| number* | `''` | - |
| color | Icon color | *string* | `inherit` | - |
| size | Icon size | *string \| number* | `inherit` | - |
| class-prefix | ClassName prefix | *string* | `van-icon` | - |
+1 -1
View File
@@ -73,7 +73,7 @@ import 'vant/lib/icon/local.css';
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| name | 图标名称或图片链接 | *string* | - | - |
| info | 图标右上角文字提示 | *string \| number* | - | - |
| info | 图标右上角徽标提示的内容 | *string \| number* | - | - |
| color | 图标颜色 | *string* | `inherit` | - |
| size | 图标大小,如 `20px` `2em`,默认单位为`px` | *string \| number* | `inherit` | - |
| class-prefix | 类名前缀 | *string* | `van-icon` | - |