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

2 lines
1.5 KiB
JavaScript

import{J as i,a as r,d1 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.90da037b.js";import{b as y}from"./index.5a51e5f8.js";import"./index.1659fc81.js";import"./index.8ae3c346.js";import"./ArrowLeftOutlined.d81f11fb.js";import"./index.d233f0c1.js";import"./index.5a33700f.js";import"./FullscreenOutlined.8b01061e.js";import"./index.b0d37896.js";import"./useWindowSizeFn.bb7ce060.js";import"./useContentViewHeight.8af6e3bb.js";import"./uniqBy.2bfac54c.js";import"./_baseIteratee.65dd9fdb.js";import"./get.b86e8352.js";import"./index.b1f9176c.js";import"./useRefs.8dda1daa.js";import"./PlusOutlined.fc498e7a.js";import"./RedoOutlined.a031b067.js";import"./index.5f38c7d8.js";import"./lock.6cdd5448.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};