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-CLTv_5cP.js";import{J as i,K as f,f as v,g as _,r as u,o as l,i as r,w as g,c as V,F as k,h as M}from"./index-Dk5CK9SF.js";const B={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=f(t,"modelValue"),a=v([]),c=t;return _(()=>{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:g(()=>[(l(!0),V(k,null,M(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{B as default};