Browse Source

docs: icon size type desc modify

richard1015 4 years ago
parent
commit
d712fe60a1
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/packages/icon/doc.md

+ 7 - 7
src/packages/icon/doc.md

@@ -76,13 +76,13 @@ app.use(Icon);
 
 ### Props
 
-| 参数         | 说明                             | 类型   | 默认值           |
-|--------------|----------------------------------|--------|------------------|
-| name         | 图标名称或图片链接               | String | -                |
-| color        | 图标颜色                         | String | -                |
-| size         | 图标大小,如 `20px` `2em` `2rem` | String|Number | -                |
-| class-prefix | 类名前缀,用于使用自定义图标     | String | `nutui-iconfont` |
-| tag          | HTML 标签                        | String | `i`              |
+| 参数         | 说明                             | 类型             | 默认值           |
+|--------------|----------------------------------|------------------|------------------|
+| name         | 图标名称或图片链接               | String           | -                |
+| color        | 图标颜色                         | String           | -                |
+| size         | 图标大小,如 `20px` `2em` `2rem` | String or Number | -                |
+| class-prefix | 类名前缀,用于使用自定义图标     | String           | `nutui-iconfont` |
+| tag          | HTML 标签                        | String           | `i`              |
 
 ### Events