中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
微信扫码分享
ForEach(this.pushNews, (item: PushNewsBean) => { if (item.Type == 1) { this.TestComponent({ pushNews: item, newsType: this.newsType }) } else { this.TestComponent({ pushNews: item, newsType: this.newsType }) } }, (item: PushNewsBean, index: number) => `${item?.Type}-${index}`) @Builder TestComponent(item: PushNewsPrams) { Text(item?.pushNews?.SharCount) } class PushNewsPrams { pushNews: Partial<PushNewsBean> = {} newsType: number = 0 }