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-BQIJUcBR.js";import{c2 as w,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"./JSelectBiz-CJyWq5s2.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};
