JVxeUserSelectCell-BFmGEi_7.js 2.0 KB

1
  1. var v=Object.defineProperty,x=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var m=(e,t,s)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,u=(e,t)=>{for(var s in t||(t={}))S.call(t,s)&&m(e,s,t[s]);if(c)for(var s of c(t))V.call(t,s)&&m(e,s,t[s]);return e},d=(e,t)=>x(e,J(t));import{d as _,e as r,ag as P,aq as E,ar as U,as as b,k,aE as T}from"./vue-vendor-Be68asQ6.js";import{l as $}from"./JSelectUser-DCwPqRxp.js";import{cf as w,cg as B,ch as y,i as A,R as D,Q as N,a as j}from"./index-BFfnEkVs.js";import"./index-CETWS1o0.js";import"./BasicModal-D4gc2R81.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";const q=_({name:"JVxeUserSelectCell",components:{JSelectUser:$},props:w(),setup(e){const{innerValue:t,cellProps:s,handleChangeCommon:n,useCellDesign:l,originColumn:i}=y(e),{prefixCls:o}=l("user-select"),p=r(()=>{let a=t.value;return a==null?a:A(a)?[]:D(a)?a:N(a)?a.split(","):[a]}),f=r(()=>s.value.multi!=!1),C=r(()=>{var a;return d(u({},s.value),{value:p.value,showButton:!1,showSearch:!1,maxTagCount:(a=i.value.maxTagCount)!=null?a:1,maxTagPlaceholder:({length:g})=>"+"+g,isDetailsMode:s.value.disabledTable})});function h(a){n(a.join(","))}return{prefixCls:o,selectedValue:p,multiple:f,cellProps:s,getProps:C,handleChange:h}},enhanced:{switches:{visible:!0},translate:{enabled:!1},aopEvents:{editActived({$event:e}){B({$event:e,props:this.props,className:".ant-select .ant-select-selection-search-input",isClick:!0})}}}});function z(e,t,s,n,l,i){const o=P("JSelectUser");return U(),E("div",{class:b([e.prefixCls])},[k(o,T(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const te=j(q,[["render",z]]);export{te as default};