diff --git a/components-diy/diy-group.vue b/components-diy/diy-group.vue
index 8149d33..baaa1d8 100644
--- a/components-diy/diy-group.vue
+++ b/components-diy/diy-group.vue
@@ -317,7 +317,12 @@ export default {
this.diyGlobalData.value.forEach((item, index) => {
item.pageStyle = '';
// 给每个组件增加位置属性,用于定位,搜索、分类导航等定位
- item.moduleIndex = index + 1;
+ // 如果是Tab组件内部的子组件,添加tabIndex前缀避免moduleIndex冲突
+ if (this.diyData.tabIndex !== undefined) {
+ item.moduleIndex = `${this.diyData.tabIndex}-${index + 1}`;
+ } else {
+ item.moduleIndex = index + 1;
+ }
// 特殊处理搜索框 当显示位置为滚动至顶部固定时,只设置背景颜色
if (item.componentName == 'Search' && item.positionWay == 'fixed') {
diff --git a/components-diy/diy-tab.vue b/components-diy/diy-tab.vue
index f97588a..245c3dd 100644
--- a/components-diy/diy-tab.vue
+++ b/components-diy/diy-tab.vue
@@ -33,7 +33,7 @@
:style="[panelStyle, activeTab === idx ? panelActiveStyle : {}]">
-
@@ -49,7 +49,7 @@
:style="[panelStyle, activeTab === idx ? panelActiveStyle : {}]">
-