lcny-vue3-antd-admin/dist/assets/SelectItem.baea35e4.js

2 lines
1.5 KiB
JavaScript

import{J as i,a as r,d5 as l,b as p,f as m,aA as d,o as c,h as u,i as f,t as g,p as _,aB as b,n as v}from"./index.306321d2.js";import{b as y}from"./index.62e5d7d5.js";import"./index.7b454bb6.js";import"./index.e6092d3f.js";import"./ArrowLeftOutlined.c14fe59c.js";import"./index.33dfdb53.js";import"./index.46215238.js";import"./FullscreenOutlined.396255d0.js";import"./index.c423de09.js";import"./useWindowSizeFn.668d8f3f.js";import"./useContentViewHeight.f87aedee.js";import"./uniqBy.478b26b1.js";import"./_baseIteratee.b182c69f.js";import"./get.6e8fe047.js";import"./index.521276ea.js";import"./useRefs.de5b6c9d.js";import"./PlusOutlined.b7bc7711.js";import"./RedoOutlined.83034399.js";import"./index.938587e8.js";import"./lock.960222b1.js";const C=r({name:"SelectItem",components:{Select:l},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}=p("setting-select-item"),a=m(()=>e.def?{value:e.def,defaultValue:e.initValue||e.def}:{});function o(n){e.event&&y(e.event,n)}return{prefixCls:t,handleChange:o,getBindValue:a}}});function S(e,t,a,o,n,h){const s=d("Select");return c(),u("div",{class:v(e.prefixCls)},[f("span",null,g(e.title),1),_(s,b(e.getBindValue,{class:`${e.prefixCls}-select`,onChange:e.handleChange,disabled:e.disabled,size:"small",options:e.options}),null,16,["class","onChange","disabled","options"])],2)}var L=i(C,[["render",S],["__scopeId","data-v-6707e46b"]]);export{L as default};