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-D-TUaHvK.js";import{c2 as $,c3 as B,i as N,N as b,P as y,c5 as A,_ as T}from"./index-Cy4uayzW.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./props-CtlWAg-s.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JSelectBiz-vYDBA0SK.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};
