Skip to content

Commit

Permalink
feat(Icon): add delete-o、sort、font、font-o、revoke icon (#7760)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Dec 17, 2020
1 parent 7a6e78f commit 7315b58
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 9 deletions.
Binary file modified packages/vant-icons/assets/icons.sketch
Binary file not shown.
5 changes: 5 additions & 0 deletions packages/vant-icons/build/codepoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ const map = {
F0E6: 'back-top',
F0E7: 'share-o',
F0E8: 'minus',
F0E9: 'delete-o',
F0EA: 'sort',
F0EB: 'font',
F0EC: 'font-o',
F0ED: 'revoke',
};

const reversedMap = {};
Expand Down
9 changes: 7 additions & 2 deletions packages/vant-icons/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'plus',
'minus',
'fail',
'circle',
],
outline: [
// has corresponding filled icon
Expand Down Expand Up @@ -79,6 +80,8 @@ module.exports = {
'new-arrival-o',
'goods-collect-o',
'eye-o',
'delete-o',
'font-o',
// without corresponding filled icon
'balance-o',
'refund-o',
Expand Down Expand Up @@ -109,12 +112,12 @@ module.exports = {
'search',
'points',
'edit',
'delete',
'qr',
'qr-invalid',
'closed-eye',
'down',
'scan',
'revoke',
'free-postage',
'certificate',
'logistics',
Expand All @@ -124,7 +127,6 @@ module.exports = {
'exchange',
'upgrade',
'ellipsis',
'circle',
'description',
'records',
'sign',
Expand Down Expand Up @@ -214,6 +216,8 @@ module.exports = {
'new-arrival',
'goods-collect',
'eye',
'delete',
'font',
// without corresponding outline icon
'alipay',
'wechat',
Expand Down Expand Up @@ -241,5 +245,6 @@ module.exports = {
'wap-nav',
'enlarge',
'photo-fail',
'sort',
],
};
26 changes: 23 additions & 3 deletions packages/vant-icons/src/encode-woff2.less

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/vant-icons/src/encode.less

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions packages/vant-icons/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
font-family: 'vant-icon';
font-style: normal;
font-display: auto;
src: url('https://img.yzcdn.cn/vant/vant-icon-96970a.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-96970a.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-96970a.ttf') format('truetype');
src: url('https://img.yzcdn.cn/vant/vant-icon-84f687.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-84f687.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-84f687.ttf') format('truetype');
}

.van-icon {
Expand Down Expand Up @@ -299,6 +299,10 @@
content: '\F043';
}

.van-icon-delete-o::before {
content: '\F0E9';
}

.van-icon-delete::before {
content: '\F044';
}
Expand Down Expand Up @@ -403,6 +407,14 @@
content: '\F05C';
}

.van-icon-font-o::before {
content: '\F0EC';
}

.van-icon-font::before {
content: '\F0EB';
}

.van-icon-free-postage::before {
content: '\F05D';
}
Expand Down Expand Up @@ -735,6 +747,10 @@
content: '\F0AD';
}

.van-icon-revoke::before {
content: '\F0ED';
}

.van-icon-scan::before {
content: '\F0AE';
}
Expand Down Expand Up @@ -823,6 +839,10 @@
content: '\F0C2';
}

.van-icon-sort::before {
content: '\F0EA';
}

.van-icon-star-o::before {
content: '\F0C3';
}
Expand Down

0 comments on commit 7315b58

Please sign in to comment.