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
705 B

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