fix(ai-pick): 补充末行底部分隔线
This commit is contained in:
@@ -640,8 +640,11 @@ export struct AiPickNodeComponent {
|
|||||||
|
|
||||||
ForEach(
|
ForEach(
|
||||||
this.cardData.tabs[this.tabIdx].items,
|
this.cardData.tabs[this.tabIdx].items,
|
||||||
(item: PickContractItem) => {
|
(item: PickContractItem, index: number) => {
|
||||||
this.buildContractRow(item)
|
this.buildContractRow(
|
||||||
|
item,
|
||||||
|
index === this.cardData.tabs[this.tabIdx].items.length - 1,
|
||||||
|
)
|
||||||
},
|
},
|
||||||
(item: PickContractItem): string =>
|
(item: PickContractItem): string =>
|
||||||
`${item.contract}_${item.market}_${item.price ?? ''}_${item.priceChg ?? ''}`,
|
`${item.contract}_${item.market}_${item.price ?? ''}_${item.priceChg ?? ''}`,
|
||||||
@@ -651,7 +654,7 @@ export struct AiPickNodeComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
buildContractRow(item: PickContractItem) {
|
buildContractRow(item: PickContractItem, isLast: boolean) {
|
||||||
Row({ space: 8 }) {
|
Row({ space: 8 }) {
|
||||||
Row({ space: 5 }) {
|
Row({ space: 5 }) {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
@@ -715,7 +718,7 @@ export struct AiPickNodeComponent {
|
|||||||
.height(45)
|
.height(45)
|
||||||
.alignItems(VerticalAlign.Center)
|
.alignItems(VerticalAlign.Center)
|
||||||
.border({
|
.border({
|
||||||
width: { top: 1 },
|
width: { top: 1, bottom: isLast ? 1 : 0 },
|
||||||
color: $r('app.color.elements_others_divider_primary'),
|
color: $r('app.color.elements_others_divider_primary'),
|
||||||
})
|
})
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user