acdr-ui/dist/build/mp-weixin/modules/mall/goods/components/detail/detail-cell-sku.js

2 lines
478 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";const e=require("../../../../../common/vendor.js");Math||t();const t=()=>"./detail-cell.js",r={__name:"detail-cell-sku",props:{modelValue:{type:Array,default:()=>[]},sku:{type:Object}},setup(t){const r=t,a=e.computed((()=>{var e;if(!(null==(e=r.sku)?void 0:e.id))return"请选择商品规格";let t="";return r.sku.properties.forEach((e=>{t+=e.propertyName+":"+e.valueName+" "})),t}));return(t,r)=>({a:e.p({label:"选择",value:a.value})})}};wx.createComponent(r);