[improvement] update icons (#1142)

This commit is contained in:
neverland 2018-12-24 20:39:45 +08:00 committed by GitHub
parent b85f044471
commit 3b130445ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 42 additions and 39 deletions

View File

@ -30,7 +30,7 @@
<demo-block title="展示图标">
<van-cell
title="单元格"
icon="location"
icon="location-o"
border="{{ false }}"
/>
</demo-block>
@ -53,13 +53,13 @@
</demo-block>
<demo-block title="高级用法">
<van-cell value="内容" icon="shop" is-link>
<van-cell value="内容" icon="shop-o" is-link>
<view slot="title">
<view class="title">单元格</view>
<van-tag type="danger">标签</van-tag>
</view>
</van-cell>
<van-cell title="单元格" icon="location" is-link />
<van-cell title="单元格" icon="location-o" is-link />
<van-cell title="单元格" border="{{ false }}">
<van-icon slot="right-icon" name="search" />
</van-cell>

View File

@ -17,15 +17,18 @@
<demo-block title="自定义标题内容">
<van-collapse value="{{ active3 }}" data-key="active3" bind:change="onChange">
<van-collapse-item>
<view slot="title">{{ title1 }}<van-icon name="question" custom-class="van-icon-question" /></view>
<view slot="title">
{{ title1 }}
<van-icon name="question-o" custom-class="van-icon-question" />
</view>
{{ content1 }}
</van-collapse-item>
<van-collapse-item
title="{{ title2 }}"
value="内容"
icon="shop"
>{{ content2 }}</van-collapse-item>
<van-collapse-item title="{{ title3 }}">{{ content3 }}</van-collapse-item>
icon="shop-o"
>
{{ content2 }}
</van-collapse-item>
</van-collapse>
</demo-block>

View File

@ -11,7 +11,7 @@
label="用户名"
placeholder="请输入用户名"
clearable
icon="question"
icon="question-o"
icon-class="icon"
required
bind:click-icon="onClickIcon"

View File

@ -1,12 +1,12 @@
<demo-block title="基础用法">
<van-goods-action custom-class="goods-action" safe-area-inset-bottom="{{ false }}">
<van-goods-action-icon
icon="chat"
icon="chat-o"
text="客服"
open-type="contact"
/>
<van-goods-action-icon
icon="cart"
icon="cart-o"
text="购物车"
bind:click="onClickIcon"
/>
@ -24,9 +24,9 @@
<demo-block title="图标提示">
<van-goods-action custom-class="goods-action" safe-area-inset-bottom="{{ false }}">
<van-goods-action-icon icon="chat" text="客服" />
<van-goods-action-icon icon="cart" text="购物车" info="5" />
<van-goods-action-icon icon="shop" text="店铺" />
<van-goods-action-icon icon="chat-o" text="客服" />
<van-goods-action-icon icon="cart-o" text="购物车" info="5" />
<van-goods-action-icon icon="shop-o" text="店铺" />
<van-goods-action-button text="加入购物车" type="warning" />
<van-goods-action-button text="立即购买" />
</van-goods-action>

View File

@ -1,9 +1,9 @@
<demo-block title="基础用法">
<van-tabbar active="{{ active }}" custom-class="tabbar" bind:change="onChange" safe-area-inset-bottom="{{ false }}">
<van-tabbar-item icon="shop">标签</van-tabbar-item>
<van-tabbar-item icon="chat" dot>标签</van-tabbar-item>
<van-tabbar-item icon="records" info="5">标签</van-tabbar-item>
<van-tabbar-item icon="gold-coin" info="20">标签</van-tabbar-item>
<van-tabbar-item icon="home-o">标签</van-tabbar-item>
<van-tabbar-item icon="search" dot>标签</van-tabbar-item>
<van-tabbar-item icon="friends-o" info="5">标签</van-tabbar-item>
<van-tabbar-item icon="setting-o" info="20">标签</van-tabbar-item>
</van-tabbar>
</demo-block>
@ -14,7 +14,7 @@
<image slot="icon" src="{{ icon.normal }}" class="icon" mode="aspectFit" />
<image slot="icon-active" src="{{ icon.active }}" mode="aspectFit" />
</van-tabbar-item>
<van-tabbar-item icon="chat">标签</van-tabbar-item>
<van-tabbar-item icon="records">标签</van-tabbar-item>
<van-tabbar-item icon="search">标签</van-tabbar-item>
<van-tabbar-item icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
</demo-block>

View File

@ -56,7 +56,7 @@
```html
<van-cell
title="单元格"
icon="location"
icon="location-o"
/>
```
@ -90,7 +90,7 @@
```html
<van-cell
value="内容"
icon="shop"
icon="shop-o"
is-link
>
<view slot="title">
@ -100,7 +100,7 @@
</van-cell>
<van-cell
title="单元格"
icon="location"
icon="location-o"
is-link
/>
<van-cell title="单元格">

View File

@ -76,10 +76,10 @@ Page({
```html
<van-collapse value="{{ activeNames }}">
<van-collapse-item name="1">
<view slot="title">有赞微商城<van-icon name="question" /></view>
<view slot="title">有赞微商城<van-icon name="question-o" /></view>
提供多样店铺模板,快速搭建网上商城
</van-collapse-item>
<van-collapse-item title="有赞零售" name="2">
<van-collapse-item title="有赞零售" name="2" icon="shop-o">
网店吸粉获客、会员分层营销、一机多种收款,告别经营低效和客户流失
</van-collapse-item>
</van-collapse>

View File

@ -46,7 +46,7 @@ Page({
required
clearable
label="用户名"
icon="question"
icon="question-o"
placeholder="请输入用户名"
bind:click-icon="onClickIcon"
/>

View File

@ -17,12 +17,12 @@
```html
<van-goods-action>
<van-goods-action-icon
icon="chat"
icon="chat-o"
text="客服"
bind:click="onClickIcon"
/>
<van-goods-action-icon
icon="cart"
icon="cart-o"
text="购物车"
bind:click="onClickIcon"
/>
@ -56,9 +56,9 @@ Page({
```html
<van-goods-action>
<van-goods-action-icon icon="chat" text="客服" />
<van-goods-action-icon icon="cart" text="购物车" info="5" />
<van-goods-action-icon icon="shop" text="店铺" />
<van-goods-action-icon icon="chat-o" text="客服" />
<van-goods-action-icon icon="cart-o" text="购物车" info="5" />
<van-goods-action-icon icon="shop-o" text="店铺" />
<van-goods-action-button text="加入购物车" type="warning" />
<van-goods-action-button text="立即购买" />
</van-goods-action>

View File

@ -17,7 +17,7 @@
<van-icon
wx:if="{{ mode === 'closeable' }}"
class="van-notice-bar__right-icon"
name="close"
name="cross"
bind:tap="onClickIcon"
/>
<navigator

View File

@ -14,7 +14,7 @@
class="{{ utils.bem('radio__icon', { disabled, checked: !disabled && name === value, check: !disabled && name !== value }) }}"
custom-class="icon-class"
color="{{ value === name ? checkedColor : '' }}"
name="{{ value === name ? 'checked' : 'check' }}"
name="{{ value === name ? 'checked' : 'circle' }}"
/>
</view>
<view class="van-radio__label van-radio__label--{{ labelPosition }} label-class" bindtap="onClickLabel">

View File

@ -16,10 +16,10 @@
```html
<van-tabbar active="{{ active }}" bind:change="onChange">
<van-tabbar-item icon="shop">标签</van-tabbar-item>
<van-tabbar-item icon="chat" dot>标签</van-tabbar-item>
<van-tabbar-item icon="records" info="5">标签</van-tabbar-item>
<van-tabbar-item icon="gold-coin" info="20">标签</van-tabbar-item>
<van-tabbar-item icon="home-o">标签</van-tabbar-item>
<van-tabbar-item icon="search" dot>标签</van-tabbar-item>
<van-tabbar-item icon="friends-o" info="5">标签</van-tabbar-item>
<van-tabbar-item icon="setting-o" info="20">标签</van-tabbar-item>
</van-tabbar>
```
@ -47,8 +47,8 @@ Page({
<image slot="icon" src="{{ icon.normal }}" class="icon" mode="aspectFit" />
<image slot="icon-active" src="{{ icon.active }}" mode="aspectFit" />
</van-tabbar-item>
<van-tabbar-item icon="chat">标签</van-tabbar-item>
<van-tabbar-item icon="records">标签</van-tabbar-item>
<van-tabbar-item icon="search">标签</van-tabbar-item>
<van-tabbar-item icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
```