陈剑华

feat: 滑动跳转更多,同步显示

@@ -25,7 +25,6 @@ export struct ZhSingleRow02 { @@ -25,7 +25,6 @@ export struct ZhSingleRow02 {
25 scroller: Scroller = new Scroller() 25 scroller: Scroller = new Scroller()
26 26
27 resetMoreTips() { 27 resetMoreTips() {
28 - console.log('resetMoreTips', this.moreWidth, this.initMoreWidth)  
29 if (this.moreWidth < this.initMoreWidth * 2) { 28 if (this.moreWidth < this.initMoreWidth * 2) {
30 this.moreTips = '查看更多'; 29 this.moreTips = '查看更多';
31 } 30 }
@@ -56,7 +55,6 @@ export struct ZhSingleRow02 { @@ -56,7 +55,6 @@ export struct ZhSingleRow02 {
56 if (this.moreWidth > this.initMoreWidth) { 55 if (this.moreWidth > this.initMoreWidth) {
57 this.moreWidth = 16 56 this.moreWidth = 16
58 } 57 }
59 - this.resetMoreTips()  
60 } 58 }
61 59
62 toMore() { 60 toMore() {
@@ -90,7 +88,7 @@ export struct ZhSingleRow02 { @@ -90,7 +88,7 @@ export struct ZhSingleRow02 {
90 .margin({ right: 8 }) 88 .margin({ right: 8 })
91 }) 89 })
92 } 90 }
93 - if (this.compDTO.operDataList.length >= 2 && (this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) { 91 + if (this.compDTO.operDataList.length >= 2 && !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) {
94 Row() { 92 Row() {
95 Ellipse() 93 Ellipse()
96 .width(2* (this.moreWidth - this.initMoreWidth - 1)) 94 .width(2* (this.moreWidth - this.initMoreWidth - 1))
@@ -165,7 +165,7 @@ export struct ZhSingleRow03 { @@ -165,7 +165,7 @@ export struct ZhSingleRow03 {
165 this.ItemCard(item) 165 this.ItemCard(item)
166 }) 166 })
167 } 167 }
168 - if (this.compDTO.operDataList.length >= 2 && (this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) { 168 + if (this.compDTO.operDataList.length >= 2 && !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) {
169 Row() { 169 Row() {
170 Ellipse() 170 Ellipse()
171 .width(2* (this.moreWidth - this.initMoreWidth - 1)) 171 .width(2* (this.moreWidth - this.initMoreWidth - 1))
@@ -141,7 +141,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { @@ -141,7 +141,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
141 }) 141 })
142 } 142 }
143 143
144 - if (this.compDTO.operDataList.length >= 2 && (this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) { 144 + if (this.compDTO.operDataList.length >= 2 && !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) {
145 Row() { 145 Row() {
146 Ellipse() 146 Ellipse()
147 .width(2* (this.moreWidth - this.initMoreWidth - 1)) 147 .width(2* (this.moreWidth - this.initMoreWidth - 1))