提交
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user