From 7359568d758f689981809ac7c035f9223d2c7086 Mon Sep 17 00:00:00 2001
From: Wangjiahao <1522128093@qq.com>
Date: Thu, 6 Apr 2023 11:50:49 +0800
Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9Tab=E8=BD=AE=E6=92=AD=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../canvas/components/editor/SettingMenu.vue | 33 ++++-
.../components/editor/TabCarouselDialog.vue | 127 ++++++++++++++++++
.../components/widget/deWidget/TabStyle.vue | 41 ------
frontend/src/lang/en.js | 1 +
frontend/src/lang/tw.js | 1 +
frontend/src/lang/zh.js | 1 +
6 files changed, 162 insertions(+), 42 deletions(-)
create mode 100644 frontend/src/components/canvas/components/editor/TabCarouselDialog.vue
diff --git a/frontend/src/components/canvas/components/editor/SettingMenu.vue b/frontend/src/components/canvas/components/editor/SettingMenu.vue
index 89f330fbd3..6b1380bf0b 100644
--- a/frontend/src/components/canvas/components/editor/SettingMenu.vue
+++ b/frontend/src/components/canvas/components/editor/SettingMenu.vue
@@ -66,6 +66,12 @@
@click.native="linkageSetting"
>{{ $t('panel.linkage_setting') }}
+ {{ $t('panel.carousel') }}
+
+
+
+
+
+
diff --git a/frontend/src/components/canvas/components/editor/TabCarouselDialog.vue b/frontend/src/components/canvas/components/editor/TabCarouselDialog.vue
new file mode 100644
index 0000000000..4cc284efe9
--- /dev/null
+++ b/frontend/src/components/canvas/components/editor/TabCarouselDialog.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+ S
+
+
+
+ {{ $t('panel.confirm') }}
+ {{ $t('panel.cancel') }}
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/widget/deWidget/TabStyle.vue b/frontend/src/components/widget/deWidget/TabStyle.vue
index 3b0c522199..27d44b66e2 100644
--- a/frontend/src/components/widget/deWidget/TabStyle.vue
+++ b/frontend/src/components/widget/deWidget/TabStyle.vue
@@ -112,39 +112,6 @@
{{ $t('chart.text_pos_right') }}
-
-
-
- {{ $t('commons.enable') }}
-
-
-
- {{ $t('panel.switch_time') }}
-
-
-
- S
-
-
-
-
-
3600) {
- this.styleInfo.switchTime = 3600
- }
- this.styleChange()
- },
styleChange() {
this.$store.commit('canvasChange')
}
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 4c0098245a..4b96813d7f 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -2001,6 +2001,7 @@ export default {
position_adjust_component: 'Position adjust',
active_font_size: 'Selected font size',
carousel: 'Carousel',
+ enable_carousel: 'Enable Carousel',
switch_time: 'Switch time',
position_adjust: 'Position',
space_top: 'Top',
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 8e0db8d908..33d9d8adb8 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -1995,6 +1995,7 @@ export default {
position_adjust_component: '位置調整',
active_font_size: '选中字體大小',
carousel: '輪播',
+ enable_carousel: '啟用輪播',
switch_time: '切換時間',
position_adjust: '位置',
space_top: '上',
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index f9a60cbd36..94d0b27d51 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -2012,6 +2012,7 @@ export default {
position_adjust_component: '位置调整',
active_font_size: '选中字体大小',
carousel: '轮播',
+ enable_carousel: '启用轮播',
switch_time: '切换时间',
position_adjust: '位置',
space_top: '上',