property-77e7040c.js 7.9 KB

1
  1. import{_ as E}from"./ComponentContainerProperty-7fd44449.js";import{d as R,o as i,A as h,B as t,f as l,a,C as p,G as f,E as T,c as I,F as z,_ as F,cN as G,bc as S,ar as A,S as D,am as N,cF as j,a6 as q,cG as K,U as M}from"./index-24b5bd0d.js";import{_ as O}from"./UploadImg-66af34d1.js";import{_ as Q}from"./index-7b022a35.js";import{E as W}from"./el-card-0b237923.js";import{u as Y}from"./util-186f09dd.js";import H from"./SpuShowcase-c2da7174.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./index-bcdfd5b5.js";import"./el-image-viewer-d766f6eb.js";import"./useMessage-6f610bbd.js";import"./color-6e929987.js";import"./Dialog-23d56afa.js";import"./Qrcode-963fe952.js";import"./el-text-001f38cd.js";import"./IFrame.vue_vue_type_script_setup_true_lang-eddb2687.js";import"./vuedraggable.umd-d537df3c.js";import"./el-collapse-item-3214070f.js";import"./el-image-614d8096.js";import"./spu-25b62903.js";import"./SpuTableSelect.vue_vue_type_script_setup_true_lang-d6932d99.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-1e5dab5a.js";import"./index.vue_vue_type_script_setup_true_lang-d8bf5c47.js";import"./index-15201e14.js";import"./el-tree-select-b8ff7591.js";import"./tree-fd3a041e.js";import"./category-46918f2f.js";const J={class:"flex gap-8px"},L={class:"flex gap-8px"},X={class:"flex gap-8px"},Z={class:"flex gap-8px"},$={class:"flex gap-8px"},v={class:"flex gap-8px"},ee=R({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(le,e)=>{const r=W,V=F,n=G,c=S,_=A,u=D,m=Q,s=N,B=j,g=O,C=q,b=K,k=M,P=E;return i(),h(P,{modelValue:a(o).style,"onUpdate:modelValue":e[24]||(e[24]=d=>a(o).style=d)},{default:t(()=>[l(k,{"label-width":"80px",model:a(o)},{default:t(()=>[l(r,{header:"\u5546\u54C1\u5217\u8868",class:"property-group",shadow:"never"},{default:t(()=>[l(H,{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",J,[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",X,[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",Z,[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",v,[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(B,{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(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]=[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(),I(z,{key:0},[l(u,{label:"\u6309\u94AE\u6587\u5B57",prop:"btnBuy.text"},{default:t(()=>[l(C,{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(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]=[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};