wangliang_wd

feat:调整人民号列表滑动

... ... @@ -52,13 +52,33 @@ export struct PeopleShipHomeListComponent {
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
ForEach(this.tabArr, (item: ArticleTypeData, index: number) => {
TabContent() {
PeopleShipHomeArticleListComponent({
typeModel: item,
creatorId: this.creatorId,
currentTopSelectedIndex: this.currentIndex,
currentIndex: index
})
if (index == 0){
TabContent() {
PeopleShipHomeArticleListComponent({
typeModel: item,
creatorId: this.creatorId,
currentTopSelectedIndex: this.currentIndex,
currentIndex: index
})
}.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right})))
}else if(index == this.tabArr.length - 1){
TabContent() {
PeopleShipHomeArticleListComponent({
typeModel: item,
creatorId: this.creatorId,
currentTopSelectedIndex: this.currentIndex,
currentIndex: index
})
}.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Left})))
}else{
TabContent() {
PeopleShipHomeArticleListComponent({
typeModel: item,
creatorId: this.creatorId,
currentTopSelectedIndex: this.currentIndex,
currentIndex: index
})
}
}
// .tabBar(this.Tab(index, item.name ?? ''))
})
... ...