ProductCategorySelect-9ae4a8f8.js 1.3 KB

1
  1. import{d as i,dQ as _,ag as d,K as f,r as y,l as h,o as g,v as V,a as l,O as v,_ as w,__tla as b}from"./index-f8a6e22a.js";import{E as x,__tla as I}from"./el-tree-select-690c919f.js";import{h as P,d as k}from"./tree-0af4953a.js";import{g as C,__tla as S}from"./category-962b033a.js";let u,z=Promise.all([(()=>{try{return b}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{u=w(i({name:"ProductCategorySelect",__name:"ProductCategorySelect",props:{modelValue:_([Number,Array]),multiple:d.bool.def(!1),parentId:d.number.def(void 0)},emits:["update:modelValue"],setup(a,{emit:m}){const o=a,t=f({get:()=>o.modelValue,set:e=>{n("update:modelValue",e)}}),n=m,r=y([]);return h(async()=>{const e=await C({parentId:o.parentId});r.value=P(e,"id","parentId")}),(e,s)=>{const p=x;return g(),V(p,{modelValue:l(t),"onUpdate:modelValue":s[0]||(s[0]=c=>v(t)?t.value=c:null),data:l(r),props:l(k),multiple:a.multiple,"show-checkbox":a.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:/zhongxing/mall-newfeifan-zx-admin/src/views/mall/product/category/components/ProductCategorySelect.vue"]])});export{z as __tla,u as default};