diff --git a/src/icon/README.md b/src/icon/README.md index c25a1e656..f17477afb 100644 --- a/src/icon/README.md +++ b/src/icon/README.md @@ -16,7 +16,7 @@ Vue.use(Icon); Use `name` prop to set icon name or icon URL ```html - + ``` @@ -27,9 +27,9 @@ Use `dot` prop, a small red dot will be displayed in the upper right corner of t Use `info` prop, the info will be displayed in the upper right corner of the icon. ```html - - - + + + ``` ### Icon Color @@ -37,8 +37,8 @@ Use `info` prop, the info will be displayed in the upper right corner of the ico Use `color` prop to set icon color ```html - - + + ``` ### Icon Size @@ -46,8 +46,8 @@ Use `color` prop to set icon color Use `size` prop to set icon size ```html - - + + ``` ### Use local font file diff --git a/src/icon/README.zh-CN.md b/src/icon/README.zh-CN.md index 168f0b41b..b3a103404 100644 --- a/src/icon/README.zh-CN.md +++ b/src/icon/README.zh-CN.md @@ -20,7 +20,7 @@ Vue.use(Icon); `Icon`的`name`属性支持传入图标名称或图片链接,所有可用的图标名称见右侧示例 ```html - + ``` @@ -29,28 +29,27 @@ Vue.use(Icon); 设置`dot`属性后,会在图标右上角展示一个小红点。设置`info`属性后,会在图标右上角展示相应的徽标 ```html - - - + + + ``` - ### 图标颜色 `Icon`的`color`属性用来设置图标的颜色 ```html - - + + ``` ### 图标大小 -`Icon`的`size`属性用来设置图标的尺寸大小 +`Icon`的`size`属性用来设置图标的尺寸大小,默认单位为`px` ```html - - + + ``` ### 使用本地字体文件 diff --git a/src/icon/demo/index.vue b/src/icon/demo/index.vue index 6e5086ea8..5afc03bf5 100644 --- a/src/icon/demo/index.vue +++ b/src/icon/demo/index.vue @@ -1,76 +1,89 @@