property-3c765e1b.js 4.9 KB

1
  1. import{_ as z}from"./ComponentContainerProperty-319aab40.js";import{d as B,o as c,j as V,w as d,i as e,a,k as h,m as C,l as k,_ as I,d3 as P,aR as j,ah as D,G as E,ac as G,cX as S,cY as X,H as q}from"./index-df709923.js";import{_ as H}from"./UploadImg-15376c0d.js";import{_ as L}from"./index-4c40d0be.js";import{E as Y}from"./el-card-91c2276d.js";import{u as A}from"./util-dd5f5ba0.js";import F 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 J={class:"flex gap-8px"},K={class:"flex gap-8px"},M=B({name:"ProductListProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(b,{emit:_}){const w=b,g=_,{formData:l}=A(w.modelValue,g);return(N,o)=>{const p=Y,r=I,s=P,u=j,U=D,m=E,n=L,f=G,x=S,R=H,i=X,v=q,T=z;return c(),V(T,{modelValue:a(l).style,"onUpdate:modelValue":o[11]||(o[11]=t=>a(l).style=t)},{default:d(()=>[e(v,{"label-width":"80px",model:a(l)},{default:d(()=>[e(p,{header:"\u5546\u54C1\u5217\u8868",class:"property-group",shadow:"never"},{default:d(()=>[e(F,{modelValue:a(l).spuIds,"onUpdate:modelValue":o[0]||(o[0]=t=>a(l).spuIds=t)},null,8,["modelValue"])]),_:1}),e(p,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:d(()=>[e(m,{label:"\u5E03\u5C40",prop:"type"},{default:d(()=>[e(U,{modelValue:a(l).layoutType,"onUpdate:modelValue":o[1]||(o[1]=t=>a(l).layoutType=t)},{default:d(()=>[e(u,{class:"item",content:"\u53CC\u5217",placement:"bottom"},{default:d(()=>[e(s,{label:"twoCol"},{default:d(()=>[e(r,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1}),e(u,{class:"item",content:"\u4E09\u5217",placement:"bottom"},{default:d(()=>[e(s,{label:"threeCol"},{default:d(()=>[e(r,{icon:"fluent:text-column-three-24-filled"})]),_:1})]),_:1}),e(u,{class:"item",content:"\u6C34\u5E73\u6ED1\u52A8",placement:"bottom"},{default:d(()=>[e(s,{label:"horizSwiper"},{default:d(()=>[e(r,{icon:"system-uicons:carousel"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"fields.name.show"},{default:d(()=>[h("div",J,[e(n,{modelValue:a(l).fields.name.color,"onUpdate:modelValue":o[2]||(o[2]=t=>a(l).fields.name.color=t)},null,8,["modelValue"]),e(f,{modelValue:a(l).fields.name.show,"onUpdate:modelValue":o[3]||(o[3]=t=>a(l).fields.name.show=t)},null,8,["modelValue"])])]),_:1}),e(m,{label:"\u5546\u54C1\u4EF7\u683C",prop:"fields.price.show"},{default:d(()=>[h("div",K,[e(n,{modelValue:a(l).fields.price.color,"onUpdate:modelValue":o[4]||(o[4]=t=>a(l).fields.price.color=t)},null,8,["modelValue"]),e(f,{modelValue:a(l).fields.price.show,"onUpdate:modelValue":o[5]||(o[5]=t=>a(l).fields.price.show=t)},null,8,["modelValue"])])]),_:1})]),_:1}),e(p,{header:"\u89D2\u6807",class:"property-group",shadow:"never"},{default:d(()=>[e(m,{label:"\u89D2\u6807",prop:"badge.show"},{default:d(()=>[e(x,{modelValue:a(l).badge.show,"onUpdate:modelValue":o[6]||(o[6]=t=>a(l).badge.show=t)},null,8,["modelValue"])]),_:1}),a(l).badge.show?(c(),V(m,{key:0,label:"\u89D2\u6807",prop:"badge.imgUrl"},{default:d(()=>[e(R,{modelValue:a(l).badge.imgUrl,"onUpdate:modelValue":o[7]||(o[7]=t=>a(l).badge.imgUrl=t),height:"44px",width:"72px"},{tip:d(()=>o[12]||(o[12]=[C(" \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A36 * 22 ")])),_:1},8,["modelValue"])]),_:1})):k("",!0)]),_:1}),e(p,{header:"\u5546\u54C1\u6837\u5F0F",class:"property-group",shadow:"never"},{default:d(()=>[e(m,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:d(()=>[e(i,{modelValue:a(l).borderRadiusTop,"onUpdate:modelValue":o[8]||(o[8]=t=>a(l).borderRadiusTop=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),e(m,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:d(()=>[e(i,{modelValue:a(l).borderRadiusBottom,"onUpdate:modelValue":o[9]||(o[9]=t=>a(l).borderRadiusBottom=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),e(m,{label:"\u95F4\u9694",prop:"space"},{default:d(()=>[e(i,{modelValue:a(l).space,"onUpdate:modelValue":o[10]||(o[10]=t=>a(l).space=t),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{M as default};