From fe4184c6c49e34bd10f2e187b91c9437e7e6be56 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Wed, 16 Mar 2022 11:22:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9rule=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=EF=BC=8C=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=95=BF=E5=BA=A6=E4=B8=8D=E8=B6=B3=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/ContentEdit/components/EditRange/index.vue | 10 ---------- .../chart/ContentEdit/components/EditRule/index.vue | 11 ++++++++--- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/views/chart/ContentEdit/components/EditRange/index.vue b/src/views/chart/ContentEdit/components/EditRange/index.vue index 8c6dd3de..b2258fef 100644 --- a/src/views/chart/ContentEdit/components/EditRange/index.vue +++ b/src/views/chart/ContentEdit/components/EditRange/index.vue @@ -62,14 +62,4 @@ const rangeStyle = computed(() => { @include fetch-theme-custom('border-color', 'background-color4'); @include filter-bg-color('background-color2'); } -@include go(edit-range-model) { - z-index: -1; - position: absolute; - left: 0; - top: 0; - border-radius: 15px; - border: 1px solid rgba(0, 0, 0, 0); - background-color: greenyellow; - opacity: 0.2; -} diff --git a/src/views/chart/ContentEdit/components/EditRule/index.vue b/src/views/chart/ContentEdit/components/EditRule/index.vue index ee10b5c1..26b6d1a6 100644 --- a/src/views/chart/ContentEdit/components/EditRule/index.vue +++ b/src/views/chart/ContentEdit/components/EditRule/index.vue @@ -22,11 +22,11 @@ const themeColor = ref(designStore.getAppTheme) const { width, height } = toRefs(chartEditStore.getEditCanvasConfig) // 初始化标尺的缩放 -const scale = 2 +const scale = 1 // x轴标尺开始的坐标数值 -const startX = 0 +const startX = 20 // y轴标尺开始的坐标数值 -const startY = 0 +const startY = 20 // 标尺的厚度 const thick = 20 // 初始化水平标尺上的参考线 @@ -43,13 +43,18 @@ const lines = { /* 横线 */ #mb-ruler .v-container .lines .line { + /* 最大缩放 200% */ + height: 200vw!important; border-top: 1px dashed v-bind('themeColor') !important; + } #mb-ruler .v-container .indicator { border-bottom: 1px dashed v-bind('themeColor') !important; } /* 竖线 */ #mb-ruler .h-container .lines .line { + /* 最大缩放 200% */ + height: 200vh!important; border-left: 1px dashed v-bind('themeColor') !important; } #mb-ruler .h-container .indicator {