feat(Icon): add back-top icon (#6931)

This commit is contained in:
neverland 2020-08-03 21:26:23 +08:00 committed by GitHub
parent 26c754e2f6
commit 9e86cfbdd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 6 deletions

View File

@ -230,6 +230,7 @@ const map = {
F0E3: 'youzan-shield', F0E3: 'youzan-shield',
F0E4: 'enlarge', F0E4: 'enlarge',
F0E5: 'photo-fail', F0E5: 'photo-fail',
F0E6: 'back-top',
}; };
const reversedMap = {}; const reversedMap = {};

View File

@ -13,7 +13,7 @@
.van-icon { .van-icon {
position: relative; position: relative;
display: inline-block; display: inline-block;
font: normal normal normal 14px/1 "<%= fontName %>"; font: normal normal normal 14px/1 '<%= fontName %>';
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -24,7 +24,7 @@
} }
<% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>::before { <% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>::before {
content: "\<%= glyph.codePoint %>"; content: '\<%= glyph.codePoint %>';
} }
<% }); %> <% }); %>

View File

@ -103,6 +103,7 @@ module.exports = {
'desktop-o', 'desktop-o',
'apps-o', 'apps-o',
'home-o', 'home-o',
'back-top',
'search', 'search',
'points', 'points',
'edit', 'edit',

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-692d53.woff2') format('woff2'), src: url('https://img.yzcdn.cn/vant/vant-icon-eeb192.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-692d53.woff') format('woff'), url('https://img.yzcdn.cn/vant/vant-icon-eeb192.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-692d53.ttf') format('truetype'); url('https://img.yzcdn.cn/vant/vant-icon-eeb192.ttf') format('truetype');
} }
.van-icon { .van-icon {
@ -83,6 +83,10 @@
content: '\F00E'; content: '\F00E';
} }
.van-icon-back-top::before {
content: '\F0E6';
}
.van-icon-bag-o::before { .van-icon-bag-o::before {
content: '\F00F'; content: '\F00F';
} }