[improvement] adjust icon-font unicode (#330)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props * [fix] optimize clickoutside * [new feature] optimize find-parent * [new feature]: change document title accordinng to language * [new feature] Pagination code review * [improvement] adjust icon-font unicode
This commit is contained in:
@@ -25,7 +25,7 @@ function getCodePoints() {
|
||||
config.glyphs.forEach((icon, index) => {
|
||||
const svgPath = path.join(__dirname, './icons/', icon.css + '.svg');
|
||||
if (fs.existsSync(svgPath)) {
|
||||
codePoints[icon.css] = 0xe800 + index;
|
||||
codePoints[icon.css] = 0xf000 + index;
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -49,7 +49,7 @@ gulp.task('icon-font-ttf', () => {
|
||||
path: 'scripts/icon-template.css',
|
||||
targetPath: './icon.css',
|
||||
normalize: true,
|
||||
firstGlyph: 0xe800,
|
||||
firstGlyph: 0xf000,
|
||||
fixedCodepoints: getCodePoints()
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user