From 5298b8267fc4f908b423fa3621a0428a9f6c7c74 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Thu, 3 Mar 2022 09:57:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94=E6=AF=94=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EditBottom/index.vue | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/src/views/chart/ContentEdit/components/EditBottom/index.vue b/src/views/chart/ContentEdit/components/EditBottom/index.vue index 3a805f56..29a6b210 100644 --- a/src/views/chart/ContentEdit/components/EditBottom/index.vue +++ b/src/views/chart/ContentEdit/components/EditBottom/index.vue @@ -80,24 +80,24 @@ const { lockScale, scale } = toRefs(chartEditStore.getEditCanvas) // 缩放选项 let filterOptions = [ { - label: '自适应', - value: 0 - }, - { - label: '50%', - value: 50 - }, - { - label: '100%', - value: 100 + label: '200%', + value: 200 }, { label: '150%', value: 150 }, { - label: '200%', - value: 200 + label: '100%', + value: 100 + }, + { + label: '50%', + value: 50 + }, + { + label: '自适应', + value: 0 } ] @@ -115,17 +115,14 @@ const selectHandle = (v: number) => { // 点击锁处理 const lockHandle = () => { - chartEditStore.setEditCanvas( - ChartEditStoreEnum.LOCK_SCALE, - !lockScale.value - ) + chartEditStore.setEditCanvas(ChartEditStoreEnum.LOCK_SCALE, !lockScale.value) } // 拖动 const sliderValue = ref(100) // 拖动格式化 -const sliderFormatTooltip = (v: string) => `${v}%` +const sliderFormatTooltip = (v: string) => `${v}%` // 拖动处理 const sliderHandle = (v: number) => { @@ -161,7 +158,7 @@ const shortcutKeyOptions = [ { label: 'Ctrl + Shift + Z 前进', value: '6' - }, + } ] // 监听 scale 变化