Skip to content

Commit

Permalink
fix: 修复跟字体不生效bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 22, 2022
1 parent 047af6f commit fe8c558
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/event/modules/core.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { installRoute } from '@/router';
import { installStore } from '@/store';
import { event, mitter } from '../index';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import { installIcon } from '@/icons';
import { installI18n } from '@/locales/i18n';
import nProgress from 'nprogress';
Expand Down
6 changes: 4 additions & 2 deletions src/styles/element-plus.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@import 'element-plus/dist/index.css';
@import 'element-plus/theme-chalk/dark/css-vars.css';
//自定义 element-ui 样式
.me-large {
.me-large:root {
//这里强制将font-size-base设置为large
--el-font-size-base: var(--el-font-size-large);
}
.me-small {
.me-small:root {
//这里强制将font-size-base设置为small
--el-font-size-base: var(--el-font-size-small);
}
Expand Down

0 comments on commit fe8c558

Please sign in to comment.