diff --git a/example/pages/icon/index.js b/example/pages/icon/index.js index 02b43364..1c1970ef 100644 --- a/example/pages/icon/index.js +++ b/example/pages/icon/index.js @@ -4,7 +4,8 @@ import Page from '../../common/page'; Page({ data: { icons, - active: 0 + active: 0, + demoIcon: 'location-o' }, onSwitch(event) { diff --git a/example/pages/icon/index.wxml b/example/pages/icon/index.wxml index 14d74a6f..8d9d283f 100644 --- a/example/pages/icon/index.wxml +++ b/example/pages/icon/index.wxml @@ -48,4 +48,105 @@ {{ item }} + + + + + {{ demoIcon }} + + + + {{ demoIcon }} + + + + + + {{ demoIcon }} + + + + {{ demoIcon }} + + + + + + {{ demoIcon }} + + + + {{ demoIcon }} + + + + + + {{ demoIcon }} + + + + {{ demoIcon }} + + + diff --git a/packages/icon/README.md b/packages/icon/README.md index e42b4b24..56dc395c 100644 --- a/packages/icon/README.md +++ b/packages/icon/README.md @@ -35,6 +35,22 @@ ``` +### 图标颜色 + +设置`color`属性来控制图标颜色 + +```html + +``` + +### 图标大小 + +设置`size`属性来控制图标大小 + +```html + +``` + ## API ### Props