[new feature] Icon: 增加新 icon 图标 (#253)

* 增加新 icon

* icon: 更新英文文档
This commit is contained in:
Yao 2017-10-26 15:44:20 +08:00 committed by GitHub
parent 3c12a426ca
commit 47d625a827
5 changed files with 54 additions and 14 deletions

View File

@ -46,7 +46,7 @@ const icons = [
'credit-pay',
'debit-pay',
'other-pay',
'cart',
'shopping-cart',
'browsing-history',
'goods-collect',
'shop-collect',
@ -78,7 +78,12 @@ const icons = [
'gift-card',
'coupon',
'completed',
'value-card'
'value-card',
'certificate',
'tosend',
'sign',
'home',
'phone'
];
const IconListConstructor = Vue.extend({

View File

@ -78,7 +78,7 @@ const icons = [
'credit-pay',
'debit-pay',
'other-pay',
'cart',
'shopping-cart',
'browsing-history',
'goods-collect',
'shop-collect',
@ -110,7 +110,12 @@ const icons = [
'gift-card',
'coupon',
'completed',
'value-card'
'value-card',
'certificate',
'tosend',
'sign',
'home',
'phone'
];
const IconListConstructor = Vue.extend({

View File

@ -214,9 +214,9 @@ module.exports = {
css: 'other-pay'
},
{
keywords: ['cart'],
src: '购物车.svg',
css: 'cart'
keywords: ['shopping-cart'],
src: '购物车2.svg',
css: 'shopping-cart'
},
{
keywords: ['browsing', 'history'],
@ -403,6 +403,31 @@ module.exports = {
keywords: ['value-card'],
src: '会员余额.svg',
css: 'value-card'
},
{
keywords: ['certificate'],
src: '认证.svg',
css: 'certificate'
},
{
keywords: ['tosend'],
src: '待发货2.svg',
css: 'tosend'
},
{
keywords: ['sign'],
src: '已完成2.svg',
css: 'sign'
},
{
keywords: ['home'],
src: '首页.svg',
css: 'home'
},
{
keywords: ['phone'],
src: '电话.svg',
css: 'phone'
}
]
};

View File

@ -2,11 +2,11 @@
@font-face {
font-family: 'vant-icon';
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-6b495bd63f.eot');
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-6b495bd63f.eot?#iefix') format('embedded-opentype'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-6b495bd63f.woff2') format('woff2'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-6b495bd63f.woff') format('woff'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-6b495bd63f.ttf') format('truetype')
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-860d24a3c1.eot');
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-860d24a3c1.eot?#iefix') format('embedded-opentype'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-860d24a3c1.woff2') format('woff2'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-860d24a3c1.woff') format('woff'),
url('https://b.yzcdn.cn/zanui/icon/vant-icon-860d24a3c1.ttf') format('truetype')
}
.van-icon {
@ -85,7 +85,7 @@
.van-icon-credit-pay:before { content: '\e824'; } /* '' */
.van-icon-debit-pay:before { content: '\e825'; } /* '' */
.van-icon-other-pay:before { content: '\e826'; } /* '' */
.van-icon-cart:before { content: '\e827'; } /* '' */
.van-icon-shopping-cart:before { content: '\e827'; } /* '' */
.van-icon-browsing-history:before { content: '\e828'; } /* '' */
.van-icon-goods-collect:before { content: '\e829'; } /* '' */
.van-icon-shop-collect:before { content: '\e82a'; } /* '' */
@ -122,4 +122,9 @@
.van-icon-clock:before { content: '\e849'; } /* '' */
.van-icon-gold-coin:before { content: '\e84a'; } /* '' */
.van-icon-completed:before { content: '\e84b'; } /* '' */
.van-icon-value-card:before { content: '\e84c'; } /* '' */
.van-icon-value-card:before { content: '\e84c'; } /* '' */
.van-icon-certificate:before { content: '\e84d'; } /* '' */
.van-icon-tosend:before { content: '\e84e'; } /* '' */
.van-icon-sign:before { content: '\e84f'; } /* '' */
.van-icon-home:before { content: '\e850'; } /* '' */
.van-icon-phone:before { content: '\e851'; } /* '' */