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-CT6MIz2g.js";import{n as i,u as v,i as _,j as f,r as u,o as l,h as r,w as V,c as g,F as k,p as M}from"./index-CL0IOL6c.js";const B={__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,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};