1 |
- import{_ as R}from"./ComponentContainerProperty-319aab40.js";import{d as E,o as i,j as h,w as t,i as l,a,k as p,m as f,l as T,c as z,F as I,_ as S,d3 as j,aR as D,ah as F,G,ac as H,cX as X,V as Y,cY as q,H as A}from"./index-df709923.js";import{_ as M}from"./UploadImg-15376c0d.js";import{_ as Q}from"./index-4c40d0be.js";import{E as W}from"./el-card-91c2276d.js";import{u as Z}from"./util-dd5f5ba0.js";import J from"./SpuShowcase-d3dc23f0.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./index-54511734.js";import"./el-image-viewer-90ad41b7.js";import"./useMessage-89e9d1aa.js";import"./color-6e929987.js";import"./Dialog-2f8bd685.js";import"./Qrcode-dc43e394.js";import"./el-text-282afb9f.js";import"./IFrame.vue_vue_type_script_setup_true_lang-0abb60a1.js";import"./vuedraggable.umd-81e2c8c5.js";import"./el-collapse-item-ab99f940.js";import"./el-image-29d644a2.js";import"./spu-bd0a0feb.js";import"./SpuTableSelect.vue_vue_type_script_setup_true_lang-7d75633e.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import"./index.vue_vue_type_script_setup_true_lang-6fb625ff.js";import"./index-c8bd5ba7.js";import"./el-tree-select-880d8b15.js";import"./tree-fd3a041e.js";import"./category-d6126e80.js";const K={class:"flex gap-8px"},L={class:"flex gap-8px"},N={class:"flex gap-8px"},O={class:"flex gap-8px"},$={class:"flex gap-8px"},B={class:"flex gap-8px"},ee=E({name:"ProductCardProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(g,{emit:y}){const U=g,x=y,{formData:o}=Z(U.modelValue,x);return(le,e)=>{const r=W,V=S,n=j,c=D,_=F,u=G,m=Q,s=H,C=X,w=M,k=Y,b=q,v=A,P=R;return i(),h(P,{modelValue:a(o).style,"onUpdate:modelValue":e[24]||(e[24]=d=>a(o).style=d)},{default:t(()=>[l(v,{"label-width":"80px",model:a(o)},{default:t(()=>[l(r,{header:"\u5546\u54C1\u5217\u8868",class:"property-group",shadow:"never"},{default:t(()=>[l(J,{modelValue:a(o).spuIds,"onUpdate:modelValue":e[0]||(e[0]=d=>a(o).spuIds=d)},null,8,["modelValue"])]),_:1}),l(r,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:t(()=>[l(u,{label:"\u5E03\u5C40",prop:"type"},{default:t(()=>[l(_,{modelValue:a(o).layoutType,"onUpdate:modelValue":e[1]||(e[1]=d=>a(o).layoutType=d)},{default:t(()=>[l(c,{class:"item",content:"\u5355\u5217\u5927\u56FE",placement:"bottom"},{default:t(()=>[l(n,{label:"oneColBigImg"},{default:t(()=>[l(V,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),l(c,{class:"item",content:"\u5355\u5217\u5C0F\u56FE",placement:"bottom"},{default:t(()=>[l(n,{label:"oneColSmallImg"},{default:t(()=>[l(V,{icon:"fluent:text-column-two-left-24-filled"})]),_:1})]),_:1}),l(c,{class:"item",content:"\u53CC\u5217",placement:"bottom"},{default:t(()=>[l(n,{label:"twoCol"},{default:t(()=>[l(V,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"fields.name.show"},{default:t(()=>[p("div",K,[l(m,{modelValue:a(o).fields.name.color,"onUpdate:modelValue":e[2]||(e[2]=d=>a(o).fields.name.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.name.show,"onUpdate:modelValue":e[3]||(e[3]=d=>a(o).fields.name.show=d)},null,8,["modelValue"])])]),_:1}),l(u,{label:"\u5546\u54C1\u7B80\u4ECB",prop:"fields.introduction.show"},{default:t(()=>[p("div",L,[l(m,{modelValue:a(o).fields.introduction.color,"onUpdate:modelValue":e[4]||(e[4]=d=>a(o).fields.introduction.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.introduction.show,"onUpdate:modelValue":e[5]||(e[5]=d=>a(o).fields.introduction.show=d)},null,8,["modelValue"])])]),_:1}),l(u,{label:"\u5546\u54C1\u4EF7\u683C",prop:"fields.price.show"},{default:t(()=>[p("div",N,[l(m,{modelValue:a(o).fields.price.color,"onUpdate:modelValue":e[6]||(e[6]=d=>a(o).fields.price.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.price.show,"onUpdate:modelValue":e[7]||(e[7]=d=>a(o).fields.price.show=d)},null,8,["modelValue"])])]),_:1}),l(u,{label:"\u5E02\u573A\u4EF7",prop:"fields.marketPrice.show"},{default:t(()=>[p("div",O,[l(m,{modelValue:a(o).fields.marketPrice.color,"onUpdate:modelValue":e[8]||(e[8]=d=>a(o).fields.marketPrice.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.marketPrice.show,"onUpdate:modelValue":e[9]||(e[9]=d=>a(o).fields.marketPrice.show=d)},null,8,["modelValue"])])]),_:1}),l(u,{label:"\u5546\u54C1\u9500\u91CF",prop:"fields.salesCount.show"},{default:t(()=>[p("div",$,[l(m,{modelValue:a(o).fields.salesCount.color,"onUpdate:modelValue":e[10]||(e[10]=d=>a(o).fields.salesCount.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.salesCount.show,"onUpdate:modelValue":e[11]||(e[11]=d=>a(o).fields.salesCount.show=d)},null,8,["modelValue"])])]),_:1}),l(u,{label:"\u5546\u54C1\u5E93\u5B58",prop:"fields.stock.show"},{default:t(()=>[p("div",B,[l(m,{modelValue:a(o).fields.stock.color,"onUpdate:modelValue":e[12]||(e[12]=d=>a(o).fields.stock.color=d)},null,8,["modelValue"]),l(s,{modelValue:a(o).fields.stock.show,"onUpdate:modelValue":e[13]||(e[13]=d=>a(o).fields.stock.show=d)},null,8,["modelValue"])])]),_:1})]),_:1}),l(r,{header:"\u89D2\u6807",class:"property-group",shadow:"never"},{default:t(()=>[l(u,{label:"\u89D2\u6807",prop:"badge.show"},{default:t(()=>[l(C,{modelValue:a(o).badge.show,"onUpdate:modelValue":e[14]||(e[14]=d=>a(o).badge.show=d)},null,8,["modelValue"])]),_:1}),a(o).badge.show?(i(),h(u,{key:0,label:"\u89D2\u6807",prop:"badge.imgUrl"},{default:t(()=>[l(w,{modelValue:a(o).badge.imgUrl,"onUpdate:modelValue":e[15]||(e[15]=d=>a(o).badge.imgUrl=d),height:"44px",width:"72px"},{tip:t(()=>e[25]||(e[25]=[f(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A36 * 22 ")])),_:1},8,["modelValue"])]),_:1})):T("",!0)]),_:1}),l(r,{header:"\u6309\u94AE",class:"property-group",shadow:"never"},{default:t(()=>[l(u,{label:"\u6309\u94AE\u7C7B\u578B",prop:"btnBuy.type"},{default:t(()=>[l(_,{modelValue:a(o).btnBuy.type,"onUpdate:modelValue":e[16]||(e[16]=d=>a(o).btnBuy.type=d)},{default:t(()=>[l(n,{label:"text"},{default:t(()=>e[26]||(e[26]=[f("\u6587\u5B57")])),_:1}),l(n,{label:"img"},{default:t(()=>e[27]||(e[27]=[f("\u56FE\u7247")])),_:1})]),_:1},8,["modelValue"])]),_:1}),a(o).btnBuy.type==="text"?(i(),z(I,{key:0},[l(u,{label:"\u6309\u94AE\u6587\u5B57",prop:"btnBuy.text"},{default:t(()=>[l(k,{modelValue:a(o).btnBuy.text,"onUpdate:modelValue":e[17]||(e[17]=d=>a(o).btnBuy.text=d)},null,8,["modelValue"])]),_:1}),l(u,{label:"\u5DE6\u4FA7\u80CC\u666F",prop:"btnBuy.bgBeginColor"},{default:t(()=>[l(m,{modelValue:a(o).btnBuy.bgBeginColor,"onUpdate:modelValue":e[18]||(e[18]=d=>a(o).btnBuy.bgBeginColor=d)},null,8,["modelValue"])]),_:1}),l(u,{label:"\u53F3\u4FA7\u80CC\u666F",prop:"btnBuy.bgEndColor"},{default:t(()=>[l(m,{modelValue:a(o).btnBuy.bgEndColor,"onUpdate:modelValue":e[19]||(e[19]=d=>a(o).btnBuy.bgEndColor=d)},null,8,["modelValue"])]),_:1})],64)):(i(),h(u,{key:1,label:"\u56FE\u7247",prop:"btnBuy.imgUrl"},{default:t(()=>[l(w,{modelValue:a(o).btnBuy.imgUrl,"onUpdate:modelValue":e[20]||(e[20]=d=>a(o).btnBuy.imgUrl=d),height:"56px",width:"56px"},{tip:t(()=>e[28]||(e[28]=[f(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A56 * 56 ")])),_:1},8,["modelValue"])]),_:1}))]),_:1}),l(r,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:t(()=>[l(u,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:t(()=>[l(b,{modelValue:a(o).borderRadiusTop,"onUpdate:modelValue":e[21]||(e[21]=d=>a(o).borderRadiusTop=d),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(u,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:t(()=>[l(b,{modelValue:a(o).borderRadiusBottom,"onUpdate:modelValue":e[22]||(e[22]=d=>a(o).borderRadiusBottom=d),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(u,{label:"\u95F4\u9694",prop:"space"},{default:t(()=>[l(b,{modelValue:a(o).space,"onUpdate:modelValue":e[23]||(e[23]=d=>a(o).space=d),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{ee as default};
|