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-wKz_Qtmc.js";import{c2 as $,c3 as B,i as N,N as b,P as y,c5 as A,_ as T}from"./index-B_2CoVdl.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./props-BCVPj-bG.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JSelectBiz-CJyWq5s2.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};
