Files
qhmes/web-dist/js/JVxeUserSelectCell-CIm2dKb7.js
2026-06-16 18:19:57 +08:00

2 lines
3.1 KiB
Java

var v=Object.defineProperty,x=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var c=(e,o,t)=>o in e?v(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,u=(e,o)=>{for(var t in o||(o={}))P.call(o,t)&&c(e,t,o[t]);if(l)for(var t of l(o))S.call(o,t)&&c(e,t,o[t]);return e},d=(e,o)=>x(e,J(o));import V from"./JSelectUser-Dg8SJP_z.js";import{d as _,e as U,g as b}from"./registerUtils-DUDaVJ9g.js";import{w,aP as B,ag as E,au as T}from"./index-X7Y8jykP.js";import{e as $,c as s,K as k,C as y,z,f as A,B as D,J as N}from"./vue-vendor-DNhG1Cve.js";import"./UserSelectModal-RTq67Ki6.js";import"./index-BDvqZ5j4.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useTimeout-D5AmIBZw.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./index-BzChaRPg.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./useSelectBiz-C58pZLPQ.js";import"./props-BWd0f6uH.js";import"./useModal-DaJ3Bflg.js";import"./JSelectBiz-CRkPo6gN.js";import"./index-J2mOtM3w.js";import"./JVxeTypes-C-gX5UoZ.js";import"./JDictSelectUtil-DwVTEDM5.js";import"./index-Cq6YxX27.js";import"./Area-CONPDlNK.js";import"./pcaUtils-DD1r5iUJ.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./dayjs-ALi1pEeb.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./Checkbox-Dbxs4we4.js";import"./RadioButton-DRBix2Fq.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./index-BuONesFs.js";import"./JInputPop.vue_vue_type_style_index_0_lang-BSkWBPP5.js";import"./index-COZPPMBf.js";import"./index-Cl-8Hzo4.js";import"./useMaxLevel-DE205ncc.js";import"./eagerComputed-BTlOruLW.js";const j=$({name:"JVxeUserSelectCell",components:{JSelectUser:V},props:_(),setup(e){const{innerValue:o,cellProps:t,handleChangeCommon:p,useCellDesign:m,originColumn:a}=b(e),{prefixCls:i}=m("user-select"),n=s(()=>{let r=o.value;return r==null?r:w(r)?[]:B(r)?r:E(r)?r.split(","):[r]}),f=s(()=>t.value.multi!=!1),C=s(()=>{var r;return d(u({},t.value),{value:n.value,showButton:!1,showSearch:!1,maxTagCount:(r=a.value.maxTagCount)!=null?r:1,maxTagPlaceholder:({length:g})=>"+"+g,isDetailsMode:t.value.disabledTable})});function h(r){p(r.join(","))}return{prefixCls:i,selectedValue:n,multiple:f,cellProps:t,getProps:C,handleChange:h}},enhanced:{switches:{visible:!0},translate:{enabled:!1},aopEvents:{editActived({$event:e}){U({$event:e,props:this.props,className:".ant-select .ant-select-selection-search-input",isClick:!0})}}}});function K(e,o,t,p,m,a){const i=k("JSelectUser");return z(),y("div",{class:N([e.prefixCls])},[A(i,D(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const Ne=T(j,[["render",K]]);export{Ne as default};