JVxeDepartSelectCell-CrzIZBE2.js 2.2 KB

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