import{u as l,_ as i}from"./index.js";import{b as r}from"./index-ddf909b2.js";import{d,c as p,Z as m,_ as c,$ as u,a0 as f,k as _,a9 as g,a1 as y,a6 as C}from"./vue-72a104e4.js";import{aj as S}from"./antd-0679333d.js";import"./index-679d8a0a.js";import"./index-fb041426.js";import"./index-263734bb.js";import"./index-0a75e8e4.js";import"./useContentViewHeight-1771cd5b.js";import"./useWindowSizeFn-1db11f4f.js";import"./lock-a170f962.js";const b=d({name:"SelectItem",components:{Select:S},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:[String,Number]},initValue:{type:[String,Number]},options:{type:Array,default:()=>[]}},setup(e){const{prefixCls:t}=l("setting-select-item"),a=p(()=>e.def?{value:e.def,defaultValue:e.initValue||e.def}:{});function n(s){e.event&&r(e.event,s)}return{prefixCls:t,handleChange:n,getBindValue:a}}});function v(e,t,a,n,s,h){const o=C("Select");return m(),c("div",{class:y(e.prefixCls)},[u("span",null,f(e.title),1),_(o,g(e.getBindValue,{class:`${e.prefixCls}-select`,onChange:e.handleChange,disabled:e.disabled,size:"small",options:e.options}),null,16,["class","onChange","disabled","options"])],2)}const H=i(b,[["render",v],["__scopeId","data-v-d811fa90"]]);export{H as default};
