feat(Icon): add delete-o、sort、font、font-o、revoke icon (#7760)

This commit is contained in:
neverland 2020-12-17 15:18:01 +08:00 committed by GitHub
parent 7a6e78fbf9
commit 7315b584d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 59 additions and 9 deletions

View File

@ -233,6 +233,11 @@ const map = {
F0E6: 'back-top', F0E6: 'back-top',
F0E7: 'share-o', F0E7: 'share-o',
F0E8: 'minus', F0E8: 'minus',
F0E9: 'delete-o',
F0EA: 'sort',
F0EB: 'font',
F0EC: 'font-o',
F0ED: 'revoke',
}; };
const reversedMap = {}; const reversedMap = {};

View File

@ -10,6 +10,7 @@ module.exports = {
'plus', 'plus',
'minus', 'minus',
'fail', 'fail',
'circle',
], ],
outline: [ outline: [
// has corresponding filled icon // has corresponding filled icon
@ -79,6 +80,8 @@ module.exports = {
'new-arrival-o', 'new-arrival-o',
'goods-collect-o', 'goods-collect-o',
'eye-o', 'eye-o',
'delete-o',
'font-o',
// without corresponding filled icon // without corresponding filled icon
'balance-o', 'balance-o',
'refund-o', 'refund-o',
@ -109,12 +112,12 @@ module.exports = {
'search', 'search',
'points', 'points',
'edit', 'edit',
'delete',
'qr', 'qr',
'qr-invalid', 'qr-invalid',
'closed-eye', 'closed-eye',
'down', 'down',
'scan', 'scan',
'revoke',
'free-postage', 'free-postage',
'certificate', 'certificate',
'logistics', 'logistics',
@ -124,7 +127,6 @@ module.exports = {
'exchange', 'exchange',
'upgrade', 'upgrade',
'ellipsis', 'ellipsis',
'circle',
'description', 'description',
'records', 'records',
'sign', 'sign',
@ -214,6 +216,8 @@ module.exports = {
'new-arrival', 'new-arrival',
'goods-collect', 'goods-collect',
'eye', 'eye',
'delete',
'font',
// without corresponding outline icon // without corresponding outline icon
'alipay', 'alipay',
'wechat', 'wechat',
@ -241,5 +245,6 @@ module.exports = {
'wap-nav', 'wap-nav',
'enlarge', 'enlarge',
'photo-fail', 'photo-fail',
'sort',
], ],
}; };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,9 +5,9 @@
font-family: 'vant-icon'; font-family: 'vant-icon';
font-style: normal; font-style: normal;
font-display: auto; font-display: auto;
src: url('https://img.yzcdn.cn/vant/vant-icon-96970a.woff2') format('woff2'), src: url('https://img.yzcdn.cn/vant/vant-icon-84f687.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-96970a.woff') format('woff'), url('https://img.yzcdn.cn/vant/vant-icon-84f687.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-96970a.ttf') format('truetype'); url('https://img.yzcdn.cn/vant/vant-icon-84f687.ttf') format('truetype');
} }
.van-icon { .van-icon {
@ -299,6 +299,10 @@
content: '\F043'; content: '\F043';
} }
.van-icon-delete-o::before {
content: '\F0E9';
}
.van-icon-delete::before { .van-icon-delete::before {
content: '\F044'; content: '\F044';
} }
@ -403,6 +407,14 @@
content: '\F05C'; content: '\F05C';
} }
.van-icon-font-o::before {
content: '\F0EC';
}
.van-icon-font::before {
content: '\F0EB';
}
.van-icon-free-postage::before { .van-icon-free-postage::before {
content: '\F05D'; content: '\F05D';
} }
@ -735,6 +747,10 @@
content: '\F0AD'; content: '\F0AD';
} }
.van-icon-revoke::before {
content: '\F0ED';
}
.van-icon-scan::before { .van-icon-scan::before {
content: '\F0AE'; content: '\F0AE';
} }
@ -823,6 +839,10 @@
content: '\F0C2'; content: '\F0C2';
} }
.van-icon-sort::before {
content: '\F0EA';
}
.van-icon-star-o::before { .van-icon-star-o::before {
content: '\F0C3'; content: '\F0C3';
} }