fix(ai-pick): 同步末行底部分隔线

This commit is contained in:
clz
2026-07-28 16:52:13 +08:00
parent adc8a1cfda
commit fe3a2e6cc0
@@ -540,7 +540,7 @@ export struct AiPickNodeComponent {
// ── 合约列表 ──────────────────────────────────────── // ── 合约列表 ────────────────────────────────────────
ForEach( ForEach(
this.cardData.tabs[this.tabIdx].items, this.cardData.tabs[this.tabIdx].items,
(item: PickContractItem) => { (item: PickContractItem, index: number) => {
Row({ space: 8 }) { Row({ space: 8 }) {
Row({ space: 5 }) { Row({ space: 5 }) {
Text(item.name) Text(item.name)
@@ -599,7 +599,13 @@ export struct AiPickNodeComponent {
.width('100%') .width('100%')
.height(45) .height(45)
.alignItems(VerticalAlign.Center) .alignItems(VerticalAlign.Center)
.border({ width: { top: 1 }, color: $r('app.color.divider_color') }) .border({
width: {
top: 1,
bottom: index === this.cardData.tabs[this.tabIdx].items.length - 1 ? 1 : 0,
},
color: $r('app.color.divider_color'),
})
.onClick(() => { .onClick(() => {
this.jumpToDetail(item); this.jumpToDetail(item);
}) })