ProductCategorySelect-428a6467.js 1.3 KB

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