docs: update numeric type
This commit is contained in:
+2
-2
@@ -87,9 +87,9 @@ import 'vant/lib/icon/local.css';
|
||||
|------|------|------|------|
|
||||
| name | Icon name or URL | *string* | `''` |
|
||||
| dot `v2.2.1` | Whether to show red dot | *boolean* | `false` |
|
||||
| info | Content of the badge | *string \| number* | `''` |
|
||||
| info | Content of the badge | *number \| string* | `''` |
|
||||
| color | Icon color | *string* | `inherit` |
|
||||
| size | Icon size | *string \| number* | `inherit` |
|
||||
| size | Icon size | *number \| string* | `inherit` |
|
||||
| class-prefix | ClassName prefix | *string* | `van-icon` |
|
||||
| tag | HTML Tag | *string* | `i` |
|
||||
|
||||
|
||||
@@ -93,9 +93,9 @@ import 'vant/lib/icon/local.css';
|
||||
|------|------|------|------|
|
||||
| name | 图标名称或图片链接 | *string* | - |
|
||||
| dot `v2.2.1` | 是否显示图标右上角小红点 | *boolean* | `false` |
|
||||
| info | 图标右上角徽标的内容 | *string \| number* | - |
|
||||
| info | 图标右上角徽标的内容 | *number \| string* | - |
|
||||
| color | 图标颜色 | *string* | `inherit` |
|
||||
| size | 图标大小,如 `20px` `2em`,默认单位为`px` | *string \| number* | `inherit` |
|
||||
| size | 图标大小,如 `20px` `2em`,默认单位为`px` | *number \| string* | `inherit` |
|
||||
| class-prefix | 类名前缀 | *string* | `van-icon` |
|
||||
| tag | HTML 标签 | *string* | `i` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user