| 1 |
- import{_ as R}from"./ComponentContainerProperty-ba19a0b4.js";import{d as T,o as f,A as h,B as t,f as l,a,G as i,D as E,C as p,E as I,c as z,F,_ as D,cN as G,bc as S,ar as A,S as N,am as j,cF as q,a6 as H,cG as K,U as M}from"./index-10ee4acf.js";import{_ as O}from"./UploadImg-5414659a.js";import{_ as Q}from"./index-42ab4a67.js";import{E as W}from"./el-card-6629f46c.js";import{u as Y}from"./util-14ddf528.js";import J from"./SpuShowcase-7f648889.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./index-2e149b3d.js";import"./el-image-viewer-1a9420b3.js";import"./useMessage-d9b0f740.js";import"./color-6e929987.js";import"./Dialog-a1497c1f.js";import"./Qrcode-663f3356.js";import"./el-text-464e94c7.js";import"./IFrame.vue_vue_type_script_setup_true_lang-cfa62938.js";import"./vuedraggable.umd-c9b1f838.js";import"./el-collapse-item-df32a624.js";import"./el-image-512ad7d4.js";import"./spu-66d992eb.js";import"./SpuTableSelect.vue_vue_type_script_setup_true_lang-06bd45f6.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-831ae73f.js";import"./index.vue_vue_type_script_setup_true_lang-4507d01e.js";import"./index-de4cc79b.js";import"./el-tree-select-44adbde0.js";import"./tree-fd3a041e.js";import"./category-aaeb8af1.js";const L={class:"flex gap-8px"},X={class:"flex gap-8px"},Z={class:"flex gap-8px"},$={class:"flex gap-8px"},B={class:"flex gap-8px"},ee={class:"flex gap-8px"},le=T({name:"ProductCardProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(w,{emit:y}){const U=w,x=y,{formData:o}=Y(U.modelValue,x);return(oe,e)=>{const r=W,V=D,n=G,c=S,_=A,u=N,s=Q,m=j,C=q,g=O,k=H,b=K,v=M,P=R;return f(),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(()=>[i(E(a(o).spuIds)+" ",1),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",L,[l(s,{modelValue:a(o).fields.name.color,"onUpdate:modelValue":e[2]||(e[2]=d=>a(o).fields.name.color=d)},null,8,["modelValue"]),l(m,{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",X,[l(s,{modelValue:a(o).fields.introduction.color,"onUpdate:modelValue":e[4]||(e[4]=d=>a(o).fields.introduction.color=d)},null,8,["modelValue"]),l(m,{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",Z,[l(s,{modelValue:a(o).fields.price.color,"onUpdate:modelValue":e[6]||(e[6]=d=>a(o).fields.price.color=d)},null,8,["modelValue"]),l(m,{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",$,[l(s,{modelValue:a(o).fields.marketPrice.color,"onUpdate:modelValue":e[8]||(e[8]=d=>a(o).fields.marketPrice.color=d)},null,8,["modelValue"]),l(m,{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",B,[l(s,{modelValue:a(o).fields.salesCount.color,"onUpdate:modelValue":e[10]||(e[10]=d=>a(o).fields.salesCount.color=d)},null,8,["modelValue"]),l(m,{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",ee,[l(s,{modelValue:a(o).fields.stock.color,"onUpdate:modelValue":e[12]||(e[12]=d=>a(o).fields.stock.color=d)},null,8,["modelValue"]),l(m,{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?(f(),h(u,{key:0,label:"\u89D2\u6807",prop:"badge.imgUrl"},{default:t(()=>[l(g,{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]=[i(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A36 * 22 ")])),_:1},8,["modelValue"])]),_:1})):I("",!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]=[i("\u6587\u5B57")])),_:1}),l(n,{label:"img"},{default:t(()=>e[27]||(e[27]=[i("\u56FE\u7247")])),_:1})]),_:1},8,["modelValue"])]),_:1}),a(o).btnBuy.type==="text"?(f(),z(F,{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(s,{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(s,{modelValue:a(o).btnBuy.bgEndColor,"onUpdate:modelValue":e[19]||(e[19]=d=>a(o).btnBuy.bgEndColor=d)},null,8,["modelValue"])]),_:1})],64)):(f(),h(u,{key:1,label:"\u56FE\u7247",prop:"btnBuy.imgUrl"},{default:t(()=>[l(g,{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]=[i(" \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{le as default};
|