接口:
// 福袋商品类型 interface IList{ luckyGoodsList: IGoodsList [] } interface IGoodsList { goods: string value : number }
const list= reactive({ goodsList:[ // 选择商品 { goods: "数据1", value: 1 }, { goods: "数据2", value: 2 } ] }); // 写法2 / * const list= reactive({ goodsList:([ // 选择商品 { goods: "数据1", value: 1 }, { goods: "数据2", value: 2 } ] as IGoodsList []) }); */
页面使用
{ {item.goods}} { {item.value}}
Copyright © 2023 leiyu.cn. All Rights Reserved. 磊宇云计算 版权所有 许可证编号:B1-20233142/B2-20230630 山东磊宇云计算有限公司 鲁ICP备2020045424号
磊宇云计算致力于以最 “绿色节能” 的方式,让每一位上云的客户成为全球绿色节能和降低碳排放的贡献者