From 9a24a79b22e6eb3a23574944ff49c72fe5623147 Mon Sep 17 00:00:00 2001 From: "Lyj@210615" <18050528999@163.com> Date: Tue, 29 Nov 2022 17:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E6=8E=A7=E6=8A=A5=E5=91=8A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/_base.scss | 90 ++++++++++ src/layouts/components/NavBar/index.vue | 17 +- src/layouts/index.vue | 36 ++-- src/styles/variables.scss | 8 +- src/views/qualitycontrol-report/index.vue | 200 +++++++++++++++++++++- vue.config.js | 4 +- 6 files changed, 311 insertions(+), 44 deletions(-) diff --git a/src/assets/style/_base.scss b/src/assets/style/_base.scss index a49fe3c..cfbef46 100644 --- a/src/assets/style/_base.scss +++ b/src/assets/style/_base.scss @@ -530,3 +530,93 @@ textarea:-ms-input-placeholder { page-break-before: avoid; } } + +//间距 +$size-map: ( + -2: -2px, + 4: 4px, + 5: 5px, + 8: 8px, + 10: 10px, + 12: 12px, + 15: 15px, + 16: 16px, + 20: 20px, + 24: 24px, + 25: 25px, + 30: 30px, + 32: 32px, + 40: 40px, + 50: 50px, + 80: 80px, + 140: 140px +); + +@each $name in map-keys($size-map) { + $value: map-get($size-map, $name); + + .mt-#{$name} { + margin-top: $value; + } + + .mr-#{$name} { + margin-right: $value; + } + + .mb-#{$name} { + margin-bottom: $value; + } + + .ml-#{$name} { + margin-left: $value; + } + + .margin-#{$name} { + margin: $value; + } + + .pt-#{$name} { + padding-top: $value !important; + } + + .pr-#{$name} { + padding-right: $value; + } + + .pb-#{$name} { + padding-bottom: $value; + } + + .pl-#{$name} { + padding-left: $value; + } + + .pd-#{$name} { + padding: $value; + } +} + +//字号 +$font-map: ( + 10: 10px, + 11: 11px, + 14: 14px, + 15: 15px, + 18: 18px, + 20: 20px, + 24: 24px, + 25: 25px, + 30: 30px, + 36: 36px, + 40: 40px, + 50: 50px, + 80: 80px, + 140: 140px +); +@each $size in map-keys($font-map) { + $value: map-get($font-map, $size); + + .font-#{$size} { + font-size: $value; + } +} diff --git a/src/layouts/components/NavBar/index.vue b/src/layouts/components/NavBar/index.vue index 0c89b44..1c2c935 100644 --- a/src/layouts/components/NavBar/index.vue +++ b/src/layouts/components/NavBar/index.vue @@ -14,27 +14,21 @@ :class="['font', index == fontIndex ? 'active' : '']" @click="changeFont(index)" > -