diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue
index 90ae30000c..e2cae86e6e 100644
--- a/core/core-frontend/src/custom-component/de-tabs/Component.vue
+++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue
@@ -63,8 +63,10 @@
@@ -214,12 +216,20 @@ const {
searchCount
} = toRefs(props)
+const handleMouseEnter = () => {
+ state.hoverFlag = true
+}
+
+const handleMouseLeave = () => {
+ state.hoverFlag = false
+}
const state = reactive({
activeTabName: '',
curItem: {},
textarea: '',
dialogVisible: false,
- tabShow: true
+ tabShow: true,
+ hoverFlag: false
})
const tabsAreaScroll = ref(false)
const editableTabsValue = ref(null)
@@ -512,11 +522,14 @@ const initCarousel = () => {
let switchCount = 1
// 轮播定时器
carouselTimer = setInterval(() => {
- const nowIndex = switchCount % element.value.propValue.length
- switchCount++
- nextTick(() => {
- editableTabsValue.value = element.value.propValue[nowIndex].name
- })
+ // 鼠标移入时 停止轮播
+ if (!state.hoverFlag) {
+ const nowIndex = switchCount % element.value.propValue.length
+ switchCount++
+ nextTick(() => {
+ editableTabsValue.value = element.value.propValue[nowIndex].name
+ })
+ }
}, switchTime)
}
}
@@ -611,4 +624,10 @@ onBeforeMount(() => {
opacity: 0;
z-index: -1;
}
+
+.tab-content-custom {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+}