docs: update numeric type

This commit is contained in:
陈嘉涵
2020-01-29 10:11:09 +08:00
parent 36ba412f70
commit c6f424baa7
85 changed files with 197 additions and 197 deletions
+2 -2
View File
@@ -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` |
+2 -2
View File
@@ -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` |