ProductCategorySelect-3aaa9ec5.js 1.2 KB

1
  1. import{d as _,dT as i,ah as d,L as y,r as f,l as h,o as g,x as V,a as l,P as w,_ as x,__tla as b}from"./index-13e4c38a.js";import{E as v,__tla as P}from"./el-tree-select-e29ea55b.js";import{h as I,d as k}from"./tree-0af4953a.js";import{g as C,__tla as S}from"./category-e64e4592.js";let u,z=Promise.all([(()=>{try{return b}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{u=x(_({name:"ProductCategorySelect",__name:"ProductCategorySelect",props:{modelValue:i([Number,Array]),multiple:d.bool.def(!1),parentId:d.number.def(void 0)},emits:["update:modelValue"],setup(e,{emit:m}){const r=e,t=y({get:()=>r.modelValue,set:a=>{p("update:modelValue",a)}}),p=m,o=f([]);return h(async()=>{const a=await C({parentId:r.parentId});o.value=I(a,"id","parentId")}),(a,s)=>{const c=v;return g(),V(c,{modelValue:l(t),"onUpdate:modelValue":s[0]||(s[0]=n=>w(t)?t.value=n:null),data:l(o),props:l(k),multiple:e.multiple,"show-checkbox":e.multiple,class:"w-1/1","node-key":"id",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","data","props","multiple","show-checkbox"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/category/components/ProductCategorySelect.vue"]])});export{z as __tla,u as default};