feat(Grid): add info prop (#4424)
This commit is contained in:
+1
-1
@@ -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` | - |
|
||||
|
||||
@@ -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` | - |
|
||||
|
||||
Reference in New Issue
Block a user