You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.1 KiB
JavaScript

import{p as i,_ as r}from"./entry/index-CT2bBVPU-1724922878694.js";import{b as m}from"./index-ZD06e9lr.js";import{V as p}from"./antd-BY-1PcYE.js";import{d as c,c as d,_ as u,$ as f,a0 as g,a1 as b,k as y,ad as S,u as a,a2 as v}from"./vue-aEZWZQSa.js";import"./createAsyncComponent-Dl2h30KC.js";import"./index-CO3IhE4b.js";import"./useContentViewHeight-CLqhWZ1e.js";import"./useWindowSizeFn-BWwSyuoE.js";import"./useSortable-CKONboZ0.js";import"./index-K-u5o1y2.js";const V=c({name:"SelectItem",__name:"SelectItem",props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:[String,Number]},initValue:{type:[String,Number]},options:{type:Array,default:()=>[]}},setup(t){const e=t,{prefixCls:s}=i("setting-select-item"),o=d(()=>e.def?{value:e.def,defaultValue:e.initValue||e.def}:{}),l=n=>{e.event&&m(e.event,n)};return(n,_)=>(u(),f("div",{class:v(a(s))},[g("span",null,b(t.title),1),y(a(p),S(o.value,{class:`${a(s)}-select`,onChange:l,disabled:t.disabled,size:"small",options:t.options}),null,16,["class","disabled","options"])],2))}}),A=r(V,[["__scopeId","data-v-cf1163e4"]]);export{A as default};