var C=Object.defineProperty,g=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var c=(e,s,t)=>s in e?C(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))x.call(s,t)&&c(e,t,s[t]);if(p)for(var t of p(s))_.call(s,t)&&c(e,t,s[t]);return e},u=(e,s)=>g(e,v(s));import{d as J,e as a,U as P,a2 as S,a3 as V,k as U,ag as k,a6 as E}from"./vue-vendor-CxLCUzY4.js";import{u as $}from"./JSelectUser-CfAGgHjD.js";import{c2 as w,c3 as B,i as N,N as b,P as y,c5 as A,_ as T}from"./index-CLZzJyTP.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";const j=J({name:"JVxeUserSelectCell",components:{JSelectUser:$},props:A(),setup(e){const{innerValue:s,cellProps:t,handleChangeCommon:n,useCellDesign:l}=B(e),{prefixCls:i}=l("user-select"),o=a(()=>{let r=s.value;return r==null?r:N(r)?[]:b(r)?r:y(r)?r.split(","):[r]}),f=a(()=>t.value.multi!=!1),d=a(()=>u(m({},t.value),{value:o.value,showButton:!1,showSearch:!1,maxTagCount:1,maxTagPlaceholder:({length:r})=>"+"+r}));function h(r){n(r.join(","))}return{prefixCls:i,selectedValue:o,multiple:f,cellProps:t,getProps:d,handleChange:h}},enhanced:{switches:{visible:!0},translate:{enabled:!1},aopEvents:{editActived({$event:e}){w({$event:e,props:this.props,className:".ant-select .ant-select-selection-search-input",isClick:!0})}}}});function z(e,s,t,n,l,i){const o=P("JSelectUser");return S(),V("div",{class:E([e.prefixCls])},[U(o,k(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const te=T(j,[["render",z]]);export{te as default};
