From 50ba73d7ad1a2b3143936fedcc6fd73cb2085465 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 1 Mar 2022 14:46:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=B6=E9=92=9F=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE=E6=9C=AA?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/DateFormat.vue | 8 ++++++++ .../src/components/canvas/components/TextAttr.vue | 9 +++++++++ frontend/src/views/panel/edit/index.vue | 14 +++++++------- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/DateFormat.vue b/frontend/src/components/canvas/components/Editor/DateFormat.vue index 97e0d45673..3c5b9642f8 100644 --- a/frontend/src/components/canvas/components/Editor/DateFormat.vue +++ b/frontend/src/components/canvas/components/Editor/DateFormat.vue @@ -119,6 +119,14 @@ export default { 'curCanvasScale' ]) }, + watch: { + formatInfo: { + handler(newVal, oldVla) { + this.$store.state.styleChangeTimes++ + }, + deep: true + } + }, created() { }, diff --git a/frontend/src/components/canvas/components/TextAttr.vue b/frontend/src/components/canvas/components/TextAttr.vue index 511ee8c81d..25bf2e313d 100644 --- a/frontend/src/components/canvas/components/TextAttr.vue +++ b/frontend/src/components/canvas/components/TextAttr.vue @@ -447,4 +447,13 @@ export default { ::v-deep .el-color-dropdown__link-btn { display: inline!important; } + + ::v-deep input::-webkit-outer-spin-button, + ::v-deep input::-webkit-inner-spin-button { + /*-webkit-appearance: none !important;*/ + } + ::v-deep input[type='number'] { + /*-moz-appearance: textfield !important;*/ + } + diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 19ebf68fa4..a88ae63a8b 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -621,7 +621,6 @@ export default { this.currentFilterCom.mobileStyle = BASE_MOBILE_STYLE this.currentFilterCom.commonBackground || deepCopy(COMMON_BACKGROUND) - if (this.currentWidget.filterDialog) { this.show = false this.openFilterDialog(true) @@ -870,13 +869,14 @@ export default { // 如果内部样式有变化 1秒钟后保存一个镜像 recordStyleChange(index) { - this.timeMachine = setTimeout(() => { - if (index === this.$store.state.styleChangeTimes) { - this.$store.commit('recordSnapshot', 'recordStyleChange') + if (index === this.$store.state.styleChangeTimes) { + this.timeMachine = setTimeout(() => { + // console.log('recordSnapshot') + this.$store.commit('recordSnapshot') this.$store.state.styleChangeTimes = 0 - } - this.destroyTimeMachine() - }, 1000) + this.destroyTimeMachine() + }, 1000) + } }, handleDragOver(e) { e.preventDefault()