This commit is contained in:
liuyuan
2025-10-15 16:31:26 +08:00
parent 3f5804d2b8
commit 1aebb888d6
2 changed files with 140 additions and 33 deletions

View File

@@ -16,7 +16,7 @@
<slot name="otherContent" :showTabs="showTabs"></slot>
<view class="section_box" v-if="allDataList&&allDataList.length>0">
<view class="section" v-for="(v, i) in allDataList"
<view class="section" v-for="(v, i) in allDataList"
:style="`${i == 0 ? `padding-top:${Number(baseHeight)}px;` : ''}`">
<view class="section">
<view :id="v[titleKey]" style="padding: 20rpx"
@@ -25,7 +25,8 @@
</view>
<view class="content section_content_progress">
<view class="content_list">
<slot :name="slotName ? slotName + '_' + v.slotName : 'contentList'" :showTabs="showTabs"
<slot :name="slotName ? slotName + '_' + v.slotName : 'contentList'" :showTabs="showTabs"
:dataList="v[dataListKey]" :data="v" :index="i"></slot>
</view>
</view>
@@ -49,6 +50,8 @@
"allTabList",
"slotName",
"defaultShowTabs",
"data",
],
data() {
return {
@@ -107,6 +110,7 @@
async onShow() {},
methods: {
pageScroll(event) {
// console.log("event at line 213:", event);
// const _this = this;
if (this.isTabChange) {
@@ -152,6 +156,7 @@
// 获取所有元素在当前页面所处的位置信息
getDistanceArr() {
this.distanceArr = [];
if (this.allTabList && this.allTabList.length > 0) {
this.tabList = [...this.allTabList];