feat(Icon): add font-display auto property (#4831)

This commit is contained in:
neverland 2019-10-24 21:20:43 +08:00 committed by GitHub
parent fe6b12f8c2
commit 38a6080803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View File

@ -54,7 +54,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "7.x",
"@vant/icons": "1.1.14",
"@vant/icons": "1.1.15",
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"vue-lazyload": "1.2.3"
},

View File

@ -3,6 +3,7 @@
font-weight: normal;
font-family: '<%= fontName %>';
font-style: normal;
font-display: auto;
src: url('https://img.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
url('https://img.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');

View File

@ -1,6 +1,6 @@
{
"name": "@vant/icons",
"version": "1.1.14",
"version": "1.1.15",
"description": "vant icons",
"main": "./src/config.js",
"files": [

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
font-weight: normal;
font-family: 'vant-icon';
font-style: normal;
font-display: auto;
src: url('https://img.yzcdn.cn/vant/vant-icon-0bc654.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-0bc654.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-0bc654.ttf') format('truetype');

View File

@ -1323,10 +1323,10 @@
eslint-plugin-import "^2.18.2"
eslint-plugin-vue "^5.2.3"
"@vant/icons@1.1.14":
version "1.1.14"
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.1.14.tgz#76dfb7be055f98875d703af59a6216539c32a8cd"
integrity sha512-KfH33dwTHZY1NDU2hTEwCUAcbkNuqvrY36hedVhWFZbQfGPV1Aywg3v/txh7+7NsACi5IOd4MD9S2ymFB7dUAg==
"@vant/icons@1.1.15":
version "1.1.15"
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.1.15.tgz#53c51ace21e9992bfeeb2e1ad9094fbf6506d116"
integrity sha512-96tbJotfofrKpOrUGWKkiGLJsCFc0OX5pikWLW5yarD+EMhi0zCrQSDb95xGrp/HETAFm+nSTQu2e1zGsWN/7A==
"@vant/markdown-loader@^2.2.0":
version "2.2.0"