property-60754f87.js 9.1 KB

1
  1. import{_ as A,__tla as F}from"./ComponentContainerProperty-7f76930d.js";import{d as K,o as p,C as h,A as r,f as l,a,B as m,D as i,a2 as j,c as q,F as H,_ as J,cK as M,bf as N,at as Q,U as W,ao as X,cC as G,a8 as L,cD as O,V as Y,__tla as Z}from"./index-6e0fa573.js";import{_ as $,__tla as B}from"./UploadImg-db85e21f.js";import{_ as ll,__tla as el}from"./index-87d5b1b4.js";import{E as al,__tla as tl}from"./el-card-f999e23d.js";import{u as ol,__tla as rl}from"./util-b990a0f0.js";import dl,{__tla as ul}from"./SpuShowcase-ea30a807.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as sl}from"./index-f34352a4.js";import{__tla as ml}from"./el-image-viewer-bd37a3c0.js";import{__tla as _l}from"./useMessage-7f978edc.js";import"./color-6e929987.js";import{__tla as nl}from"./Dialog-a16029e3.js";import{__tla as pl}from"./Qrcode-ab9df244.js";import{__tla as il}from"./el-text-2f236ec9.js";import{__tla as cl}from"./IFrame.vue_vue_type_script_setup_true_lang-3796c387.js";import{__tla as fl}from"./vuedraggable.umd-eaa236f5.js";import{__tla as Vl}from"./el-collapse-item-0400a39e.js";import{__tla as hl}from"./el-image-f27c893c.js";import{__tla as bl}from"./spu-d1310ca3.js";import{__tla as yl}from"./SpuTableSelect.vue_vue_type_script_setup_true_lang-1d1c37ca.js";import{__tla as gl}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{__tla as wl}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{__tla as Ul}from"./index-99c4720b.js";import{__tla as xl}from"./el-tree-select-490c6b16.js";import"./tree-0af4953a.js";import{__tla as Cl}from"./category-cf27cb18.js";let v,kl=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return el}catch{}})(),(()=>{try{return tl}catch{}})(),(()=>{try{return rl}catch{}})(),(()=>{try{return ul}catch{}})(),(()=>{try{return sl}catch{}})(),(()=>{try{return ml}catch{}})(),(()=>{try{return _l}catch{}})(),(()=>{try{return nl}catch{}})(),(()=>{try{return pl}catch{}})(),(()=>{try{return il}catch{}})(),(()=>{try{return cl}catch{}})(),(()=>{try{return fl}catch{}})(),(()=>{try{return Vl}catch{}})(),(()=>{try{return hl}catch{}})(),(()=>{try{return bl}catch{}})(),(()=>{try{return yl}catch{}})(),(()=>{try{return gl}catch{}})(),(()=>{try{return wl}catch{}})(),(()=>{try{return Ul}catch{}})(),(()=>{try{return xl}catch{}})(),(()=>{try{return Cl}catch{}})()]).then(async()=>{let b,y,g,w,U,x;b={class:"flex gap-8px"},y={class:"flex gap-8px"},g={class:"flex gap-8px"},w={class:"flex gap-8px"},U={class:"flex gap-8px"},x={class:"flex gap-8px"},v=K({name:"ProductCardProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(P,{emit:R}){const T=P,z=R,{formData:e}=ol(T.modelValue,z);return(vl,t)=>{const _=al,c=J,n=M,f=N,C=Q,d=W,u=ll,s=X,D=G,k=$,E=L,V=O,I=Y,S=A;return p(),h(S,{modelValue:a(e).style,"onUpdate:modelValue":t[24]||(t[24]=o=>a(e).style=o)},{default:r(()=>[l(I,{"label-width":"80px",model:a(e)},{default:r(()=>[l(_,{header:"\u5546\u54C1\u5217\u8868",class:"property-group",shadow:"never"},{default:r(()=>[l(dl,{modelValue:a(e).spuIds,"onUpdate:modelValue":t[0]||(t[0]=o=>a(e).spuIds=o)},null,8,["modelValue"])]),_:1}),l(_,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:r(()=>[l(d,{label:"\u5E03\u5C40",prop:"type"},{default:r(()=>[l(C,{modelValue:a(e).layoutType,"onUpdate:modelValue":t[1]||(t[1]=o=>a(e).layoutType=o)},{default:r(()=>[l(f,{class:"item",content:"\u5355\u5217\u5927\u56FE",placement:"bottom"},{default:r(()=>[l(n,{label:"oneColBigImg"},{default:r(()=>[l(c,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),l(f,{class:"item",content:"\u5355\u5217\u5C0F\u56FE",placement:"bottom"},{default:r(()=>[l(n,{label:"oneColSmallImg"},{default:r(()=>[l(c,{icon:"fluent:text-column-two-left-24-filled"})]),_:1})]),_:1}),l(f,{class:"item",content:"\u53CC\u5217",placement:"bottom"},{default:r(()=>[l(n,{label:"twoCol"},{default:r(()=>[l(c,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"fields.name.show"},{default:r(()=>[m("div",b,[l(u,{modelValue:a(e).fields.name.color,"onUpdate:modelValue":t[2]||(t[2]=o=>a(e).fields.name.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.name.show,"onUpdate:modelValue":t[3]||(t[3]=o=>a(e).fields.name.show=o)},null,8,["modelValue"])])]),_:1}),l(d,{label:"\u5546\u54C1\u7B80\u4ECB",prop:"fields.introduction.show"},{default:r(()=>[m("div",y,[l(u,{modelValue:a(e).fields.introduction.color,"onUpdate:modelValue":t[4]||(t[4]=o=>a(e).fields.introduction.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.introduction.show,"onUpdate:modelValue":t[5]||(t[5]=o=>a(e).fields.introduction.show=o)},null,8,["modelValue"])])]),_:1}),l(d,{label:"\u5546\u54C1\u4EF7\u683C",prop:"fields.price.show"},{default:r(()=>[m("div",g,[l(u,{modelValue:a(e).fields.price.color,"onUpdate:modelValue":t[6]||(t[6]=o=>a(e).fields.price.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.price.show,"onUpdate:modelValue":t[7]||(t[7]=o=>a(e).fields.price.show=o)},null,8,["modelValue"])])]),_:1}),l(d,{label:"\u5E02\u573A\u4EF7",prop:"fields.marketPrice.show"},{default:r(()=>[m("div",w,[l(u,{modelValue:a(e).fields.marketPrice.color,"onUpdate:modelValue":t[8]||(t[8]=o=>a(e).fields.marketPrice.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.marketPrice.show,"onUpdate:modelValue":t[9]||(t[9]=o=>a(e).fields.marketPrice.show=o)},null,8,["modelValue"])])]),_:1}),l(d,{label:"\u5546\u54C1\u9500\u91CF",prop:"fields.salesCount.show"},{default:r(()=>[m("div",U,[l(u,{modelValue:a(e).fields.salesCount.color,"onUpdate:modelValue":t[10]||(t[10]=o=>a(e).fields.salesCount.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.salesCount.show,"onUpdate:modelValue":t[11]||(t[11]=o=>a(e).fields.salesCount.show=o)},null,8,["modelValue"])])]),_:1}),l(d,{label:"\u5546\u54C1\u5E93\u5B58",prop:"fields.stock.show"},{default:r(()=>[m("div",x,[l(u,{modelValue:a(e).fields.stock.color,"onUpdate:modelValue":t[12]||(t[12]=o=>a(e).fields.stock.color=o)},null,8,["modelValue"]),l(s,{modelValue:a(e).fields.stock.show,"onUpdate:modelValue":t[13]||(t[13]=o=>a(e).fields.stock.show=o)},null,8,["modelValue"])])]),_:1})]),_:1}),l(_,{header:"\u89D2\u6807",class:"property-group",shadow:"never"},{default:r(()=>[l(d,{label:"\u89D2\u6807",prop:"badge.show"},{default:r(()=>[l(D,{modelValue:a(e).badge.show,"onUpdate:modelValue":t[14]||(t[14]=o=>a(e).badge.show=o)},null,8,["modelValue"])]),_:1}),a(e).badge.show?(p(),h(d,{key:0,label:"\u89D2\u6807",prop:"badge.imgUrl"},{default:r(()=>[l(k,{modelValue:a(e).badge.imgUrl,"onUpdate:modelValue":t[15]||(t[15]=o=>a(e).badge.imgUrl=o),height:"44px",width:"72px"},{tip:r(()=>[i(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A36 * 22 ")]),_:1},8,["modelValue"])]),_:1})):j("",!0)]),_:1}),l(_,{header:"\u6309\u94AE",class:"property-group",shadow:"never"},{default:r(()=>[l(d,{label:"\u6309\u94AE\u7C7B\u578B",prop:"btnBuy.type"},{default:r(()=>[l(C,{modelValue:a(e).btnBuy.type,"onUpdate:modelValue":t[16]||(t[16]=o=>a(e).btnBuy.type=o)},{default:r(()=>[l(n,{label:"text"},{default:r(()=>[i("\u6587\u5B57")]),_:1}),l(n,{label:"img"},{default:r(()=>[i("\u56FE\u7247")]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(e).btnBuy.type==="text"?(p(),q(H,{key:0},[l(d,{label:"\u6309\u94AE\u6587\u5B57",prop:"btnBuy.text"},{default:r(()=>[l(E,{modelValue:a(e).btnBuy.text,"onUpdate:modelValue":t[17]||(t[17]=o=>a(e).btnBuy.text=o)},null,8,["modelValue"])]),_:1}),l(d,{label:"\u5DE6\u4FA7\u80CC\u666F",prop:"btnBuy.bgBeginColor"},{default:r(()=>[l(u,{modelValue:a(e).btnBuy.bgBeginColor,"onUpdate:modelValue":t[18]||(t[18]=o=>a(e).btnBuy.bgBeginColor=o)},null,8,["modelValue"])]),_:1}),l(d,{label:"\u53F3\u4FA7\u80CC\u666F",prop:"btnBuy.bgEndColor"},{default:r(()=>[l(u,{modelValue:a(e).btnBuy.bgEndColor,"onUpdate:modelValue":t[19]||(t[19]=o=>a(e).btnBuy.bgEndColor=o)},null,8,["modelValue"])]),_:1})],64)):(p(),h(d,{key:1,label:"\u56FE\u7247",prop:"btnBuy.imgUrl"},{default:r(()=>[l(k,{modelValue:a(e).btnBuy.imgUrl,"onUpdate:modelValue":t[20]||(t[20]=o=>a(e).btnBuy.imgUrl=o),height:"56px",width:"56px"},{tip:r(()=>[i(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A56 * 56 ")]),_:1},8,["modelValue"])]),_:1}))]),_:1}),l(_,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:r(()=>[l(d,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:r(()=>[l(V,{modelValue:a(e).borderRadiusTop,"onUpdate:modelValue":t[21]||(t[21]=o=>a(e).borderRadiusTop=o),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(d,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:r(()=>[l(V,{modelValue:a(e).borderRadiusBottom,"onUpdate:modelValue":t[22]||(t[22]=o=>a(e).borderRadiusBottom=o),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(d,{label:"\u95F4\u9694",prop:"space"},{default:r(()=>[l(V,{modelValue:a(e).space,"onUpdate:modelValue":t[23]||(t[23]=o=>a(e).space=o),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}})});export{kl as __tla,v as default};