From e51c986957939b982cc2b251fab87f779b349e54 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 24 Apr 2024 16:20:41 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E6=8D=B7=E6=96=B9=E5=BC=8F=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A0=87=E9=A2=98=E5=90=8D=E7=A7=B0=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=B0=E8=BE=BE=E6=9C=80=E5=A4=A7=E9=99=90=E5=88=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/ChartTitleUpdate.vue | 5 +---- core/frontend/src/views/chart/view/ChartEdit.vue | 11 ++++------- .../src/views/chart/view/ChartTitleUpdate.vue | 15 +++++++-------- 3 files changed, 12 insertions(+), 19 deletions(-) diff --git a/core/frontend/src/views/chart/components/ChartTitleUpdate.vue b/core/frontend/src/views/chart/components/ChartTitleUpdate.vue index 499dfa9ca1..250e390096 100644 --- a/core/frontend/src/views/chart/components/ChartTitleUpdate.vue +++ b/core/frontend/src/views/chart/components/ChartTitleUpdate.vue @@ -8,6 +8,7 @@ ref="chartTitle" v-model.trim="chartTitleUpdate" type="text" + maxlength="50" :style="inputStyle" class="chart-input-title" @blur="changeEditStatus" @@ -91,10 +92,6 @@ export default { methods: { changeEditStatus() { this.lostFocus() - if (this.chartTitleUpdate.length > 50) { - this.$error(this.$t('chart.title_limit')) - return - } if (this.chartTitleUpdate.length < 1) { this.$error(this.$t('chart.title_cannot_empty')) this.chartTitleUpdate = this.chart.title diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index b1b56b574c..944b3a123b 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -37,8 +37,7 @@ /> @@ -19,18 +19,21 @@ @click="chartTitleUpdate = ''" /> -

{{ chart.title }}

+ >{{ chart.title }}
diff --git a/core/frontend/src/components/widget/deWidget/TabStyle.vue b/core/frontend/src/components/widget/deWidget/TabStyle.vue index db1e25ce23..c80b5f73d3 100644 --- a/core/frontend/src/components/widget/deWidget/TabStyle.vue +++ b/core/frontend/src/components/widget/deWidget/TabStyle.vue @@ -14,7 +14,12 @@ label="选项卡标题" prop="titleShow" > - 隐藏 + + 隐藏 + - - +} + - \ No newline at end of file diff --git a/core/frontend/src/layout/components/Topbar.vue b/core/frontend/src/layout/components/Topbar.vue index 57bbb690f1..60349c50a3 100644 --- a/core/frontend/src/layout/components/Topbar.vue +++ b/core/frontend/src/layout/components/Topbar.vue @@ -47,8 +47,8 @@ >
- + - + { state.arrowSide = arrowSide - }, + } } const actions = { diff --git a/core/frontend/src/utils/index.js b/core/frontend/src/utils/index.js index 6a01dce9e8..29fa97da2c 100644 --- a/core/frontend/src/utils/index.js +++ b/core/frontend/src/utils/index.js @@ -11,7 +11,7 @@ export function timeSection(date, type, labelFormat = 'yyyy-MM-dd') { return null } if (typeof date === 'string') { - date = parseInt(date); + date = parseInt(date) } if (!(date instanceof Date)) { date = new Date(date) diff --git a/core/frontend/src/views/background/index.vue b/core/frontend/src/views/background/index.vue index 80ffb48e98..bd8b82f583 100644 --- a/core/frontend/src/views/background/index.vue +++ b/core/frontend/src/views/background/index.vue @@ -236,74 +236,74 @@ -