var C=Object.defineProperty,g=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var c=(e,t,o)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))x.call(t,o)&&c(e,o,t[o]);if(i)for(var o of i(t))_.call(t,o)&&c(e,o,t[o]);return e},u=(e,t)=>g(e,v(t));import{d as J,e as a,U as P,a2 as S,a3 as V,k as D,ag as k,a6 as w}from"./vue-vendor-CxLCUzY4.js";import{i as E}from"./JSelectDept-DorRVguN.js";import{c2 as $,c3 as B,i as N,N as b,P as y,c5 as A,_ as T}from"./index-CYriLmQo.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./props-DoGpHXAD.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JSelectBiz-BW6f3e--.js";const j=J({name:"JVxeDepartSelectCell",components:{JSelectDept:E},props:A(),setup(e){const{innerValue:t,cellProps:o,handleChangeCommon:n,useCellDesign:p}=B(e),{prefixCls:l}=p("depart-select"),r=a(()=>{let s=t.value;return s==null?s:N(s)?[]:b(s)?s:y(s)?s.split(","):[s]}),d=a(()=>o.value.multi!=!1),f=a(()=>u(m({},o.value),{value:r.value,showButton:!1,showSearch:!1,maxTagCount:1,maxTagPlaceholder:({length:s})=>"+"+s}));function h(s){n(s.join(","))}return{prefixCls:l,selectedValue:r,multiple:d,cellProps:o,getProps:f,handleChange:h}},data(){return{}},computed:{},watch:{},methods:{},enhanced:{switches:{visible:!0},translate:{enabled:!1},aopEvents:{editActived({$event:e}){$({$event:e,props:this.props,className:".ant-select .ant-select-selection-search-input",isClick:!0})}}}});function z(e,t,o,n,p,l){const r=P("JSelectDept");return S(),V("div",{class:w([e.prefixCls])},[D(r,k(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const ne=T(j,[["render",z]]);export{ne as default};
