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

2 lines
2.3 KiB
Java

var C=Object.defineProperty,v=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var m=(e,s,t)=>s in e?C(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,c=(e,s)=>{for(var t in s||(s={}))x.call(s,t)&&m(e,t,s[t]);if(i)for(var t of i(s))D.call(s,t)&&m(e,t,s[t]);return e},u=(e,s)=>v(e,g(s));import{d as J,e as r,ah as S,ar as V,as as _,at as P,k as b,aG as k}from"./vue-vendor-C7Zq48Yl.js";import{t as w}from"./JSelectDept-DRDVeruW.js";import{cA as B,cB as E,cC as $,v as A,a0 as T,i as y,d as N}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"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./TreeIcon-DE4jdeZV.js";import"./JSelectBiz-CnEaVMUF.js";const j=J({name:"JVxeDepartSelectCell",components:{JSelectDept:w},props:B(),setup(e){const{innerValue:s,cellProps:t,handleChangeCommon:n,useCellDesign:l}=$(e),{prefixCls:p}=l("depart-select"),o=r(()=>{let a=s.value;return a==null?a:A(a)?[]:T(a)?a:y(a)?a.split(","):[a]}),d=r(()=>t.value.multi!=!1),h=r(()=>u(c({},t.value),{value:o.value,showButton:!1,showSearch:!1,maxTagCount:1,maxTagPlaceholder:({length:a})=>"+"+a,isDetailsMode:t.value.disabledTable}));function f(a){n(a.join(","))}return{prefixCls:p,selectedValue:o,multiple:d,cellProps:t,getProps:h,handleChange:f}},data(){return{}},computed:{},watch:{},methods:{},enhanced:{switches:{visible:!0},translate:{enabled:!1},aopEvents:{editActived({$event:e}){E({$event:e,props:this.props,className:".ant-select .ant-select-selection-search-input",isClick:!0})}}}});function z(e,s,t,n,l,p){const o=S("JSelectDept");return _(),V("div",{class:P([e.prefixCls])},[b(o,k(e.getProps,{onChange:e.handleChange}),null,16,["onChange"])],2)}const le=N(j,[["render",z]]);export{le as default};