You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
741 B

import{l as p,B as i,C as v,z as _,h as f,r as u,o as t,k as r,w as k,c as V,F as g,m as y}from"./index-CsSGZIOI.js";function B(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const h={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{B(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{h as default};