From 5914e62869a82c59a105aaeed08a3d639dd0bf7a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 31 Oct 2022 13:55:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BB=84=E4=BB=B6):=20Tab=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=94=AF=E6=8C=81=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/SettingMenu.vue | 143 +++++++++++++----- .../widget/DeWidget/CustomTabsSort.vue | 121 +++++++++++++++ 2 files changed, 225 insertions(+), 39 deletions(-) create mode 100644 frontend/src/components/widget/DeWidget/CustomTabsSort.vue diff --git a/frontend/src/components/canvas/components/Editor/SettingMenu.vue b/frontend/src/components/canvas/components/Editor/SettingMenu.vue index 8c0b7cdf1e..2f34abf834 100644 --- a/frontend/src/components/canvas/components/Editor/SettingMenu.vue +++ b/frontend/src/components/canvas/components/Editor/SettingMenu.vue @@ -11,16 +11,25 @@ v-if="editFilter.includes(curComponent.type)" icon="el-icon-edit-outline" @click.native="edit" - >{{ $t('panel.edit') }} + >{{ $t('panel.edit') }} + {{ $t('panel.copy') }} + >{{ $t('panel.copy') }} + {{ $t('panel.delete') }} + >{{ $t('panel.delete') }} + + {{ $t('chart.sort') }} + @@ -30,19 +39,23 @@ {{ $t('panel.topComponent') }} + >{{ $t('panel.topComponent') }} + {{ $t('panel.bottomComponent') }} + >{{ $t('panel.bottomComponent') }} + {{ $t('panel.upComponent') }} + >{{ $t('panel.upComponent') }} + {{ $t('panel.downComponent') }} + >{{ $t('panel.downComponent') }} + @@ -50,22 +63,26 @@ v-if="linkageSettingShow" icon="el-icon-link" @click.native="linkageSetting" - >{{ $t('panel.linkage_setting') }} + >{{ $t('panel.linkage_setting') }} + {{ $t('panel.add_tab') }} + >{{ $t('panel.add_tab') }} + {{ $t('panel.setting_jump') }} + >{{ $t('panel.setting_jump') }} + {{ $t('panel.component_style') }} + >{{ $t('panel.component_style') }} + + + + + + @@ -100,11 +149,13 @@ import { mapState } from 'vuex' import bus from '@/utils/bus' import { getViewLinkageGather } from '@/api/panel/linkage' import HyperlinksDialog from '@/components/canvas/components/Editor/HyperlinksDialog' +import CustomTabsSort from '@/components/widget/DeWidget/CustomTabsSort' export default { - components: { HyperlinksDialog }, + components: { CustomTabsSort, HyperlinksDialog }, data() { return { + showCustomSort: false, jumpExcludeViewType: [ 'richTextView', 'liquid', @@ -150,6 +201,18 @@ export default { ]) }, methods: { + openCustomSort() { + this.showCustomSort = true + }, + closeCustomSort() { + this.showCustomSort = false + }, + saveCustomSort() { + this.$refs.customTabsSort.save() + this.$nextTick(() => { + this.showCustomSort = false + }) + }, edit() { if (this.curComponent.type === 'custom') { bus.$emit('component-dialog-edit', 'update') @@ -157,7 +220,9 @@ export default { bus.$emit('button-dialog-edit') } else if (this.curComponent.type === 'v-text' || this.curComponent.type === 'de-rich-text' || this.curComponent.type === 'rect-shape') { bus.$emit('component-dialog-style') - } else { bus.$emit('change_panel_right_draw', true) } + } else { + bus.$emit('change_panel_right_draw', true) + } }, lock() { this.$store.commit('lock') @@ -266,36 +331,36 @@ export default { diff --git a/frontend/src/components/widget/DeWidget/CustomTabsSort.vue b/frontend/src/components/widget/DeWidget/CustomTabsSort.vue new file mode 100644 index 0000000000..479501d77f --- /dev/null +++ b/frontend/src/components/widget/DeWidget/CustomTabsSort.vue @@ -0,0 +1,121 @@ + + + + +