From d7ee0ddeb46de0cb9db2b0882df43ac261d43bfa Mon Sep 17 00:00:00 2001 From: yuntian001 <479820787@qq.com> Date: Sat, 27 Aug 2022 19:36:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A0=B7=E5=BC=8F=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 全局样式文件规范化 font-size改为自动换算rem 不同size下的elment base font-size变更 --- package.json | 2 + .../header/components/tagBar/index.vue | 6 +- .../components/topBar/components/left.vue | 2 +- .../right/components/messageBox.vue | 2 +- .../topBar/components/right/index.vue | 2 +- .../header/components/topBar/index.vue | 2 +- src/layout/index.vue | 5 +- src/main.ts | 2 +- src/styles/common.scss | 77 ------------------- src/styles/element-plus.scss | 21 +++++ src/styles/index.scss | 77 +++++++++++++++++++ src/styles/transition.scss | 17 ++++ src/styles/variables.scss | 3 + src/views/login/index.vue | 2 +- vite.config.ts | 27 ++++++- 15 files changed, 156 insertions(+), 91 deletions(-) delete mode 100644 src/styles/common.scss create mode 100644 src/styles/element-plus.scss create mode 100644 src/styles/index.scss create mode 100644 src/styles/transition.scss create mode 100644 src/styles/variables.scss diff --git a/package.json b/package.json index cfa2b650..7db8200a 100644 --- a/package.json +++ b/package.json @@ -51,11 +51,13 @@ "@typescript-eslint/parser": "^5.33.1", "@vitejs/plugin-vue": "^3.0.0", "@vue/eslint-config-typescript": "^11.0.0", + "autoprefixer": "^10.4.8", "eslint": "^8.22.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-vue": "^9.3.0", "husky": "^8.0.1", "lint-staged": "^13.0.3", + "postcss-plugin-px2rem": "^0.8.1", "prettier": "2.7.1", "release-it": "^15.1.1", "rollup-plugin-visualizer": "^5.7.1", diff --git a/src/layout/components/header/components/tagBar/index.vue b/src/layout/components/header/components/tagBar/index.vue index 29026c32..7bcda19f 100644 --- a/src/layout/components/header/components/tagBar/index.vue +++ b/src/layout/components/header/components/tagBar/index.vue @@ -1,5 +1,5 @@