Files
qhmes/deploy-qhmes/frontend/js/JVxeUserSelectCell-B6rIXMzk.js
2026-05-15 11:34:12 +08:00

2 lines
2.1 KiB
Java

var g=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?g(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,ah as P,ar as U,as as b,at as k,k as B,aG as E}from"./vue-vendor-C7Zq48Yl.js";import{n as T}from"./JSelectUser-B71zikzw.js";import{cA as $,cB as w,cC as A,v as y,a0 as D,i as N,d as j}from"./index-BI6CMai0.js";import"./index-Du0A3ksf.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";const z=_({name:"JVxeUserSelectCell",components:{JSelectUser:T},props:$(),setup(e){const{innerValue:t,cellProps:s,handleChangeCommon:n,useCellDesign:l,originColumn:i}=A(e),{prefixCls:o}=l("user-select"),p=r(()=>{let a=t.value;return a==null?a:y(a)?[]:D(a)?a:N(a)?a.split(","):[a]}),C=r(()=>s.value.multi!=!1),f=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:v})=>"+"+v,isDetailsMode:s.value.disabledTable})});function h(a){n(a.join(","))}return{prefixCls:o,selectedValue:p,multiple:C,cellProps:s,getProps:f,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 G(e,t,s,n,l,i){const o=P("JSelectUser");return b(),U("div",{class:k([e.prefixCls])},[B(o,E(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const oe=j(z,[["render",G]]);export{oe as default};