import{u as l,_ as i}from"./index.js";import{b as r}from"./index-505b5f6e.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{ah as S}from"./antd-835b28bf.js";import"./index-e9fd0db7.js";import"./index-12377682.js";import"./index-b4ea7fff.js";import"./index-a5c222af.js";import"./useContentViewHeight-91c9d265.js";import"./useWindowSizeFn-7c45a656.js";import"./lock-f3b41037.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};
