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-CwTXVJ2d-1723001953242.js";import{b as m}from"./index-LOWpC1qp.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-ejWszVAz.js";import"./index-C_2gaXeW.js";import"./useContentViewHeight-C-BEyhbS.js";import"./useWindowSizeFn-C93ItSr2.js";import"./useSortable-BAwH_r98.js";import"./index-BOCyr3zo.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};