From b61f3a138d18613965dba12ad671809f8fd81c51 Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Tue, 28 Nov 2023 11:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=85=8D=E7=BD=AE=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89style=E5=8F=98=E9=87=8F=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 1 + src/styles/common.less | 12 ++++++++++++ src/styles/variables.less | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 src/styles/common.less create mode 100644 src/styles/variables.less diff --git a/src/main.js b/src/main.js index 4262294..d52bb28 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import app from '@/app'; import store from '@/stores'; import router from '@/router'; import TDesignVue from '@/plugins/TDesign-vue'; // TDesign按需引入 +import '@/styles/common.less'; // 自定义全局样式表 app.use(store); app.use(router); diff --git a/src/styles/common.less b/src/styles/common.less new file mode 100644 index 0000000..8a1b754 --- /dev/null +++ b/src/styles/common.less @@ -0,0 +1,12 @@ +/** + * 公共样式 + */ +@import "variables"; + +body, +html, +#app { + margin: 0; + padding: 0; + height: 100%; +} diff --git a/src/styles/variables.less b/src/styles/variables.less new file mode 100644 index 0000000..0c94a41 --- /dev/null +++ b/src/styles/variables.less @@ -0,0 +1,3 @@ +/** + * 变量表 + */