From cc48c405473cec5b36e9f97648046a3942052754 Mon Sep 17 00:00:00 2001 From: Dottieworks Date: Mon, 9 Dec 2019 13:57:07 +0800 Subject: [PATCH] docs(Icon): add demo and docs (#2498) --- example/pages/icon/index.js | 3 +- example/pages/icon/index.wxml | 101 ++++++++++++++++++++++++++++++++++ packages/icon/README.md | 16 ++++++ 3 files changed, 119 insertions(+), 1 deletion(-) 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