import{u as l,_ as i}from"./index.js";import{b as r}from"./index-1adf9d7f.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-08ef39cb.js";import{aa as S}from"./antd-fb8ca017.js";import"./index-922f0b14.js";import"./index-094bd341.js";import"./index-5222460c.js";import"./index-be3bd629.js";import"./useContentViewHeight-3410df66.js";import"./useWindowSizeFn-40274562.js";import"./lock-4bf6aa77.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 P=i(b,[["render",v],["__scopeId","data-v-d811fa90"]]);export{P as default};
