1 |
- import{_ as c,d as p,bs as f,w as b,x as _,bU as v,r,o as s,G as d,C as y,c as g,F as C,D as V,l as k,aq as q}from"./index.js";const x=p({__name:"platform-query",props:{modelValue:{type:String,required:!1},disabled:{type:Boolean,required:!1}},emits:["change"],setup(t,{emit:u}){const l=f(t,"modelValue"),o=b([]);return _(async()=>{const{data:n}=await v({size:1e4});o.value=n.list}),(n,a)=>{const i=r("ElOption"),m=r("ElSelect");return s(),d(m,{style:{width:"100%"},modelValue:k(l),"onUpdate:modelValue":a[0]||(a[0]=e=>q(l)?l.value=e:null),disabled:t.disabled,onChange:a[1]||(a[1]=e=>u("change",e)),clearable:""},{default:y(()=>[(s(!0),g(C,null,V(o.value,e=>(s(),d(i,{key:e.id,value:e.id,label:e.platform_name,disabled:String(e.status)==="0"},null,8,["value","label","disabled"]))),128))]),_:1},8,["modelValue","disabled"])}}});var h=c(x,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/components/BasicForm/src/fields/platform-query.vue"]]);export{h as P};
|