detail-cell-sku.js 475 B

1
  1. "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);