diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index 9b93b0b825..720d407b60 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -13,6 +13,7 @@ import CarouselSetting from '@/custom-component/common/CarouselSetting.vue' import CommonBorderSetting from '@/custom-component/common/CommonBorderSetting.vue' import CollapseSwitchItem from '../../components/collapse-switch-item/src/CollapseSwitchItem.vue' import TabBackgroundOverall from '@/custom-component/de-tabs/TabBackgroundOverall.vue' +import CustomTabsSortSide from '@/custom-component/de-tabs/CustomTabsSortSide.vue' const snapshotStore = snapshotStoreWithOut() const { t } = useI18n() @@ -204,6 +205,7 @@ onMounted(() => { :themes="themes" :element="element" > + @@ -90,33 +91,35 @@ v-for="(tabItem, index) in element.propValue" :class="{ 'switch-hidden': element.editableTabsValue !== tabItem.name }" > - - + + + + { eventBus.on('onTabMoveIn-' + element.value.id, componentMoveIn) eventBus.on('onTabMoveOut-' + element.value.id, componentMoveOut) eventBus.on('onTabSortChange-' + element.value.id, reShow) + eventBus.on('onTabDelete-' + element.value.id, deleteCur) + eventBus.on('onTabCopy-' + element.value.id, copyCur) } currentInstance = getCurrentInstance() initCarousel() @@ -749,6 +755,8 @@ onBeforeUnmount(() => { eventBus.off('onTabMoveIn-' + element.value.id, componentMoveIn) eventBus.off('onTabMoveOut-' + element.value.id, componentMoveOut) eventBus.off('onTabSortChange-' + element.value.id, reShow) + eventBus.off('onTabDelete-' + element.value.id, deleteCur) + eventBus.off('onTabCopy-' + element.value.id, copyCur) } }) onBeforeMount(() => { diff --git a/core/core-frontend/src/custom-component/de-tabs/CustomTabsSortSide.vue b/core/core-frontend/src/custom-component/de-tabs/CustomTabsSortSide.vue new file mode 100644 index 0000000000..63288b80e8 --- /dev/null +++ b/core/core-frontend/src/custom-component/de-tabs/CustomTabsSortSide.vue @@ -0,0 +1,187 @@ + + + + + + + + + + + {{ element.title }} + + + + + + + + + + + (item['hidden'] = false)" + > + + + (item['hidden'] = true)" + > + + + + + + + + + + + + + +