diff --git a/example/pages/icon/index.js b/example/pages/icon/index.js index 1c1970ef..584167c4 100644 --- a/example/pages/icon/index.js +++ b/example/pages/icon/index.js @@ -5,7 +5,8 @@ Page({ data: { icons, active: 0, - demoIcon: 'location-o' + demoIcon: 'chat-o', + demoImage: 'https://b.yzcdn.cn/vant/icon-demo-1126.png', }, onSwitch(event) { diff --git a/example/pages/icon/index.wxml b/example/pages/icon/index.wxml index 8d9d283f..62711df4 100644 --- a/example/pages/icon/index.wxml +++ b/example/pages/icon/index.wxml @@ -3,6 +3,111 @@ color="#1989fa" bind:change="onSwitch" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item }} - - - - - {{ demoIcon }} - - - - {{ demoIcon }} - - - - - - {{ demoIcon }} - - - - {{ demoIcon }} - - - - - - {{ demoIcon }} - - - - {{ demoIcon }} - - - - - - {{ demoIcon }} - - - - {{ demoIcon }} - - - diff --git a/example/pages/icon/index.wxss b/example/pages/icon/index.wxss index 9758e9e3..17f7fcd9 100644 --- a/example/pages/icon/index.wxss +++ b/example/pages/icon/index.wxss @@ -3,24 +3,26 @@ page { } .col { - text-align: center; - height: 100px; - float: none; display: inline-block; + float: none; + text-align: center; vertical-align: middle; } .icon { display: block; + margin: 16px 0; color: #323233; - margin: 20px 0 10px; } .text { - font-size: 12px; + display: block; + height: 36px; + margin: -4px 0 4px; padding: 0 5px; - line-height: 14px; - color: #7d7e80; + color: #646566; + font-size: 12px; + line-height: 18px; } .demo-tab-pane {