rayyy-vue-table-components 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -16968,7 +16968,7 @@ const yi = /* @__PURE__ */ BS(LO), kO = /* @__PURE__ */ J({
16968
16968
  a("updatePageSize", v);
16969
16969
  }, f = () => {
16970
16970
  a("click:back");
16971
- }, h = I(() => typeof r.showBack == "boolean" ? r.showPagination : r.pagination.totalCount > 0);
16971
+ }, h = I(() => r.showPagination ? r.showPagination : r.pagination.totalCount > 0);
16972
16972
  return (v, C) => {
16973
16973
  const m = ET;
16974
16974
  return $(), ie(w(nf), {
package/dist/index.umd.js CHANGED
@@ -41,4 +41,4 @@ __p += '`),Ie&&(Y+=`' +
41
41
  function print() { __p += __j.call(arguments, '') }
42
42
  `:`;
43
43
  `)+Y+`return __p
44
- }`;var Ee=bh(function(){return Fe(E,ie+"return "+Y).apply(o,A)});if(Ee.source=Y,Jc(Ee))throw Ee;return Ee}function jk(n){return De(n).toLowerCase()}function Gk(n){return De(n).toUpperCase()}function qk(n,l,s){if(n=De(n),n&&(s||l===o))return Bp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),E=xp(p,w),A=Tp(p,w)+1;return Or(p,E,A).join("")}function Yk(n,l,s){if(n=De(n),n&&(s||l===o))return n.slice(0,Np(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tp(p,Tn(l))+1;return Or(p,0,w).join("")}function Xk(n,l,s){if(n=De(n),n&&(s||l===o))return n.replace(Ao,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=xp(p,Tn(l));return Or(p,w).join("")}function Zk(n,l){var s=U,p=D;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?_e(l.length):s,p="omission"in l?nn(l.omission):p}n=De(n);var E=n.length;if(Mo(n)){var A=Tn(n);E=A.length}if(s>=E)return n;var R=s-$o(p);if(R<1)return p;var M=A?Or(A,0,R).join(""):n.slice(0,R);if(w===o)return M+p;if(A&&(R+=M.length-R),Qc(w)){if(n.slice(R).search(w)){var K,j=M;for(w.global||(w=mc(w.source,De(rt.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===o?R:Y)}}else if(n.indexOf(nn(w),R)!=R){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function Jk(n){return n=De(n),n&&Ds.test(n)?n.replace(Qn,xw):n}var Qk=Uo(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),nu=y2("toUpperCase");function gh(n,l,s){return n=De(n),l=s?o:l,l===o?_w(n)?Nw(n):pw(n):n.match(l)||[]}var bh=xe(function(n,l){try{return en(n,o,l)}catch(s){return Jc(s)?s:new me(s)}}),eB=or(function(n,l){return mn(l,function(s){s=Un(s),nr(n,s,Xc(n[s],n))}),n});function tB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],xe(function(p){for(var w=-1;++w<l;){var E=n[w];if(en(E[0],this,p))return en(E[1],this,p)}})}function nB(n){return xv(yn(n,m))}function ru(n){return function(){return n}}function rB(n,l){return n==null||n!==n?l:n}var oB=w2(),lB=w2(!0);function Gt(n){return n}function ou(n){return Xp(typeof n=="function"?n:yn(n,m))}function aB(n){return Jp(yn(n,m))}function iB(n,l){return Qp(n,yn(l,m))}var sB=xe(function(n,l){return function(s){return Ol(s,n,l)}}),cB=xe(function(n,l){return function(s){return Ol(n,s,l)}});function lu(n,l,s){var p=pt(l),w=Xa(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Xa(l,pt(l)));var E=!(tt(s)&&"chain"in s)||!!s.chain,A=ar(n);return mn(w,function(R){var M=l[R];n[R]=M,A&&(n.prototype[R]=function(){var K=this.__chain__;if(E||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Sr([this.value()],arguments))})}),n}function uB(){return Ct._===this&&(Ct._=Mw),this}function au(){}function fB(n){return n=_e(n),xe(function(l){return e2(l,n)})}var dB=$c(Qe),pB=$c(vp),hB=$c(sc);function yh(n){return Uc(n)?cc(Un(n)):Uv(n)}function mB(n){return function(l){return n==null?o:oo(n,l)}}var gB=_2(),bB=_2(!0);function iu(){return[]}function su(){return!1}function yB(){return{}}function CB(){return""}function wB(){return!0}function vB(n,l){if(n=_e(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=dc(p,l);++s<n;)l(s);return w}function _B(n){return be(n)?Qe(n,Un):rn(n)?[n]:Ut(V2(De(n)))}function SB(n){var l=++Iw;return De(n)+l}var EB=ni(function(n,l){return n+l},0),kB=Vc("ceil"),BB=ni(function(n,l){return n/l},1),xB=Vc("floor");function TB(n){return n&&n.length?Ya(n,Gt,Sc):o}function OB(n,l){return n&&n.length?Ya(n,ue(l,2),Sc):o}function NB(n){return Ep(n,Gt)}function AB(n,l){return Ep(n,ue(l,2))}function LB(n){return n&&n.length?Ya(n,Gt,xc):o}function RB(n,l){return n&&n.length?Ya(n,ue(l,2),xc):o}var IB=ni(function(n,l){return n*l},1),PB=Vc("round"),MB=ni(function(n,l){return n-l},0);function $B(n){return n&&n.length?fc(n,Gt):0}function VB(n,l){return n&&n.length?fc(n,ue(l,2)):0}return S.after=aE,S.ary=Y2,S.assign=GE,S.assignIn=ch,S.assignInWith=mi,S.assignWith=qE,S.at=YE,S.before=X2,S.bind=Xc,S.bindAll=eB,S.bindKey=Z2,S.castArray=yE,S.chain=j2,S.chunk=x_,S.compact=T_,S.concat=O_,S.cond=tB,S.conforms=nB,S.constant=ru,S.countBy=$S,S.create=XE,S.curry=J2,S.curryRight=Q2,S.debounce=eh,S.defaults=ZE,S.defaultsDeep=JE,S.defer=iE,S.delay=sE,S.difference=N_,S.differenceBy=A_,S.differenceWith=L_,S.drop=R_,S.dropRight=I_,S.dropRightWhile=P_,S.dropWhile=M_,S.fill=$_,S.filter=zS,S.flatMap=WS,S.flatMapDeep=HS,S.flatMapDepth=US,S.flatten=W2,S.flattenDeep=V_,S.flattenDepth=z_,S.flip=cE,S.flow=oB,S.flowRight=lB,S.fromPairs=F_,S.functions=lk,S.functionsIn=ak,S.groupBy=KS,S.initial=W_,S.intersection=H_,S.intersectionBy=U_,S.intersectionWith=K_,S.invert=sk,S.invertBy=ck,S.invokeMap=GS,S.iteratee=ou,S.keyBy=qS,S.keys=pt,S.keysIn=jt,S.map=ci,S.mapKeys=fk,S.mapValues=dk,S.matches=aB,S.matchesProperty=iB,S.memoize=fi,S.merge=pk,S.mergeWith=uh,S.method=sB,S.methodOf=cB,S.mixin=lu,S.negate=di,S.nthArg=fB,S.omit=hk,S.omitBy=mk,S.once=uE,S.orderBy=YS,S.over=dB,S.overArgs=fE,S.overEvery=pB,S.overSome=hB,S.partial=Zc,S.partialRight=th,S.partition=XS,S.pick=gk,S.pickBy=fh,S.property=yh,S.propertyOf=mB,S.pull=Y_,S.pullAll=U2,S.pullAllBy=X_,S.pullAllWith=Z_,S.pullAt=J_,S.range=gB,S.rangeRight=bB,S.rearg=dE,S.reject=QS,S.remove=Q_,S.rest=pE,S.reverse=qc,S.sampleSize=tE,S.set=yk,S.setWith=Ck,S.shuffle=nE,S.slice=eS,S.sortBy=lE,S.sortedUniq=iS,S.sortedUniqBy=sS,S.split=Wk,S.spread=hE,S.tail=cS,S.take=uS,S.takeRight=fS,S.takeRightWhile=dS,S.takeWhile=pS,S.tap=TS,S.throttle=mE,S.thru=si,S.toArray=ah,S.toPairs=dh,S.toPairsIn=ph,S.toPath=_B,S.toPlainObject=sh,S.transform=wk,S.unary=gE,S.union=hS,S.unionBy=mS,S.unionWith=gS,S.uniq=bS,S.uniqBy=yS,S.uniqWith=CS,S.unset=vk,S.unzip=Yc,S.unzipWith=K2,S.update=_k,S.updateWith=Sk,S.values=Go,S.valuesIn=Ek,S.without=wS,S.words=gh,S.wrap=bE,S.xor=vS,S.xorBy=_S,S.xorWith=SS,S.zip=ES,S.zipObject=kS,S.zipObjectDeep=BS,S.zipWith=xS,S.entries=dh,S.entriesIn=ph,S.extend=ch,S.extendWith=mi,lu(S,S),S.add=EB,S.attempt=bh,S.camelCase=Tk,S.capitalize=hh,S.ceil=kB,S.clamp=kk,S.clone=CE,S.cloneDeep=vE,S.cloneDeepWith=_E,S.cloneWith=wE,S.conformsTo=SE,S.deburr=mh,S.defaultTo=rB,S.divide=BB,S.endsWith=Ok,S.eq=Nn,S.escape=Nk,S.escapeRegExp=Ak,S.every=VS,S.find=FS,S.findIndex=F2,S.findKey=QE,S.findLast=DS,S.findLastIndex=D2,S.findLastKey=ek,S.floor=xB,S.forEach=G2,S.forEachRight=q2,S.forIn=tk,S.forInRight=nk,S.forOwn=rk,S.forOwnRight=ok,S.get=eu,S.gt=EE,S.gte=kE,S.has=ik,S.hasIn=tu,S.head=H2,S.identity=Gt,S.includes=jS,S.indexOf=D_,S.inRange=Bk,S.invoke=uk,S.isArguments=io,S.isArray=be,S.isArrayBuffer=BE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=xE,S.isBuffer=Nr,S.isDate=TE,S.isElement=OE,S.isEmpty=NE,S.isEqual=AE,S.isEqualWith=LE,S.isError=Jc,S.isFinite=RE,S.isFunction=ar,S.isInteger=nh,S.isLength=pi,S.isMap=rh,S.isMatch=IE,S.isMatchWith=PE,S.isNaN=ME,S.isNative=$E,S.isNil=zE,S.isNull=VE,S.isNumber=oh,S.isObject=tt,S.isObjectLike=ot,S.isPlainObject=Pl,S.isRegExp=Qc,S.isSafeInteger=FE,S.isSet=lh,S.isString=hi,S.isSymbol=rn,S.isTypedArray=jo,S.isUndefined=DE,S.isWeakMap=WE,S.isWeakSet=HE,S.join=j_,S.kebabCase=Lk,S.last=wn,S.lastIndexOf=G_,S.lowerCase=Rk,S.lowerFirst=Ik,S.lt=UE,S.lte=KE,S.max=TB,S.maxBy=OB,S.mean=NB,S.meanBy=AB,S.min=LB,S.minBy=RB,S.stubArray=iu,S.stubFalse=su,S.stubObject=yB,S.stubString=CB,S.stubTrue=wB,S.multiply=IB,S.nth=q_,S.noConflict=uB,S.noop=au,S.now=ui,S.pad=Pk,S.padEnd=Mk,S.padStart=$k,S.parseInt=Vk,S.random=xk,S.reduce=ZS,S.reduceRight=JS,S.repeat=zk,S.replace=Fk,S.result=bk,S.round=PB,S.runInContext=P,S.sample=eE,S.size=rE,S.snakeCase=Dk,S.some=oE,S.sortedIndex=tS,S.sortedIndexBy=nS,S.sortedIndexOf=rS,S.sortedLastIndex=oS,S.sortedLastIndexBy=lS,S.sortedLastIndexOf=aS,S.startCase=Hk,S.startsWith=Uk,S.subtract=MB,S.sum=$B,S.sumBy=VB,S.template=Kk,S.times=vB,S.toFinite=ir,S.toInteger=_e,S.toLength=ih,S.toLower=jk,S.toNumber=vn,S.toSafeInteger=jE,S.toString=De,S.toUpper=Gk,S.trim=qk,S.trimEnd=Yk,S.trimStart=Xk,S.truncate=Zk,S.unescape=Jk,S.uniqueId=SB,S.upperCase=Qk,S.upperFirst=nu,S.each=G2,S.eachRight=q2,S.first=H2,lu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Le.prototype[n]=function(s){s=s===o?1:ft(_e(s),0);var p=this.__filtered__&&!l?new Le(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Le.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==oe||s==re;Le.prototype[n]=function(w){var E=this.clone();return E.__iteratees__.push({iteratee:ue(w,3),type:s}),E.__filtered__=E.__filtered__||p,E}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Le.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Le.prototype[n]=function(){return this.__filtered__?new Le(this):this[s](1)}}),Le.prototype.compact=function(){return this.filter(Gt)},Le.prototype.find=function(n){return this.filter(n).head()},Le.prototype.findLast=function(n){return this.reverse().find(n)},Le.prototype.invokeMap=xe(function(n,l){return typeof n=="function"?new Le(this):this.map(function(s){return Ol(s,n,l)})}),Le.prototype.reject=function(n){return this.filter(di(ue(n)))},Le.prototype.slice=function(n,l){n=_e(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Le(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==o&&(l=_e(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Le.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Le.prototype.toArray=function(){return this.take(Q)},Wn(Le.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],E=p||/^find/.test(l);w&&(S.prototype[l]=function(){var A=this.__wrapped__,R=p?[1]:arguments,M=A instanceof Le,K=R[0],j=M||be(A),Y=function(Ae){var Ie=w.apply(S,Sr([Ae],R));return p&&ee?Ie[0]:Ie};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,ie=!!this.__actions__.length,fe=E&&!ee,Ee=M&&!ie;if(!E&&j){A=Ee?A:new Le(this);var de=n.apply(A,R);return de.__actions__.push({func:si,args:[Y],thisArg:o}),new bn(de,ee)}return fe&&Ee?n.apply(this,R):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Ia[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var E=this.value();return l.apply(be(E)?E:[],w)}return this[s](function(A){return l.apply(be(A)?A:[],w)})}}),Wn(Le.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Do,p)||(Do[p]=[]),Do[p].push({name:l,func:s})}}),Do[ti(o,B).name]=[{name:"wrapper",func:o}],Le.prototype.clone=Jw,Le.prototype.reverse=Qw,Le.prototype.value=ev,S.prototype.at=OS,S.prototype.chain=NS,S.prototype.commit=AS,S.prototype.next=LS,S.prototype.plant=IS,S.prototype.reverse=PS,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=MS,S.prototype.first=S.prototype.head,_l&&(S.prototype[_l]=RS),S}),Vo=Aw();Qr?((Qr.exports=Vo)._=Vo,oc._=Vo):Ct._=Vo}).call(t9)})(bl,bl.exports)),bl.exports}var r9=n9();const Ba=d7(r9),K0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:r}){const o=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=r,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,m=>{m||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!o.columnsValue.fixed),h=t.computed(()=>[{icon:r5,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:q3,emitKey:"update:toLock",isDisabled:f.value},{icon:t5,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:Kf,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:Fi,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:P3,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/h.value.length,g=m=>{i(m)};return(m,v)=>{const y=yr,b=P7,C=ly;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:v[0]||(v[0]=k=>a.itemOnHover=!0),onMouseleave:v[1]||(v[1]=k=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(y,{label:m.columnsValue.label,value:m.columnsValue.prop,key:m.columnsValue.prop},null,8,["label","value"])),t.createVNode(C,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,k=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:k.icon,disabled:k.isDisabled,link:"",type:"primary",onClick:B=>g(k.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),o9={class:"search-bar"},l9={class:"transfer-sort-wrapper"},a9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:r}){const o=e,a=r,i=t.computed({get:()=>o.modelValue,set:C=>a("update:modelValue",C)}),u=t.reactive({localColumns:Ba.cloneDeep(o.columnsValue),clickItemProp:"",checkList:o.columnsValue.map(C=>C.prop)}),c={toTop:C=>{if(C<=0)return;const k=u.localColumns.splice(C,1)[0];u.localColumns.unshift(k)},toBottom:C=>{if(C>=u.localColumns.length-1)return;const k=u.localColumns.splice(C,1)[0];u.localColumns.push(k)},toPre:C=>{if(C>0){const k=u.localColumns[C];u.localColumns[C]=u.localColumns[C-1],u.localColumns[C-1]=k}},toNext:C=>{if(C<u.localColumns.length-1){const k=u.localColumns[C];u.localColumns[C]=u.localColumns[C+1],u.localColumns[C+1]=k}},toLock:C=>{if(C<=0)return;const k=u.localColumns.splice(C,1)[0];k.fixed="left",u.localColumns.unshift(k)},toUnLock:C=>{if(C<u.localColumns.length-1){const k=u.localColumns[C];delete k.fixed}}},f=()=>{u.localColumns=Ba.cloneDeep(o.columnsValue),u.checkList=o.columnsValue.filter(C=>C.checkActive).map(C=>C.prop||"")};t.watch(()=>i.value,C=>{C?f():(u.clickItemProp="",u.localColumns=[],u.checkList=[])});const h=()=>{a("update:submit",u.localColumns)},d=C=>{const k=o.columnsValue.map(B=>B.prop);u.checkList=C?k:[],g(u.checkList)},g=C=>{const k=C.map(B=>String(B));u.localColumns.forEach(B=>{B.checkActive=k.includes(B.prop)}),a("update:checkChange",{columns:u.localColumns,checkList:u.checkList})},m=t.computed(()=>u.localColumns.length>0&&u.checkList.length===u.localColumns.length),v=t.computed({get:()=>m.value,set:C=>d(C)}),y=()=>{u.localColumns=Ba.cloneDeep(o.columnsValue)},b=C=>{if(C.length>0){const k=Ba.cloneDeep(u.localColumns);u.localColumns=k.filter(B=>B.label.includes(C))}else y()};return(C,k)=>{const B=yr,N=B7;return t.openBlock(),t.createBlock(qr,{modelValue:i.value,"onUpdate:modelValue":k[2]||(k[2]=x=>i.value=x),title:C.transferTitle,"onClick:submit":h},{default:t.withCtx(()=>[t.createElementVNode("div",o9,[t.createVNode(Yr,{"show-search":!0,"onUpdate:clear":y,"onKeydown:enter":b})]),t.createElementVNode("div",l9,[t.createVNode(B,{modelValue:v.value,"onUpdate:modelValue":k[0]||(k[0]=x=>v.value=x),class:"px-4",onChange:d},{default:t.withCtx(()=>[t.createTextVNode(" 欄 ("+t.toDisplayString(u.checkList.length)+"/"+t.toDisplayString(u.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(N,{modelValue:u.checkList,"onUpdate:modelValue":k[1]||(k[1]=x=>u.checkList=x),onChange:g},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"list-container",{columns:u.localColumns,clickItemProp:u.clickItemProp,handleItemEvents:c,handleMousedown:x=>u.clickItemProp=x},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.localColumns,(x,_)=>(t.openBlock(),t.createBlock(K0,{key:x.prop,"dialog-modal-visible":i.value,"columns-value":x,"columns-index":_,"columns-len":u.localColumns.length,class:t.normalizeClass({"transfer-active-bg":x.checkActive,"transfer-active-border":u.clickItemProp==x.prop}),onMousedown:T=>u.clickItemProp=x.prop||"","onUpdate:toTop":T=>c.toTop(_),"onUpdate:toBottom":T=>c.toBottom(_),"onUpdate:toPre":T=>c.toPre(_),"onUpdate:toNext":T=>c.toNext(_),"onUpdate:toLock":T=>c.toLock(_),"onUpdate:toUnLock":T=>c.toUnLock(_)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),i9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},s9={class:"flex items-center gap-2"},c9={key:0,class:"flex items-center text-black"},u9={class:"font-bold text-text text-xl md:text-2xl;"},f9={class:"flex items-center gap-3"},j0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{const u={};switch(typeof o.showBack){case"string":u.path=o.showBack;break;case"object":Object.assign(u,o.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",i9,[t.createElementVNode("div",s9,[e.showBack?(t.openBlock(),t.createElementBlock("div",c9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(O3))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",u9,t.toDisplayString(o.title),1)]),t.createElementVNode("div",f9,[t.renderSlot(u.$slots,"default")])])}}}),d9={key:0,class:"px-4 pt-1.5"},p9={key:1,class:"py-1.5 px-4"},h9={key:0,class:"flex justify-start pl-1.5 pt-0"},xa=To(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{a("click:back")};return(u,c)=>{const f=la;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(j0),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",d9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",p9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",h9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),m9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:r}){const o=e,{pagination:a}=t.toRefs(o),i=r,u=m=>{i("search",m)},c=()=>{i("search",null)},f=m=>{i("updatePage",m)},h=m=>{i("updatePageSize",m)},d=()=>{i("click:back")},g=t.computed(()=>typeof o.showBack=="boolean"?o.showPagination:o.pagination.totalCount>0);return(m,v)=>{const y=ey;return t.openBlock(),t.createBlock(t.unref(xa),{title:o.title,"show-back":m.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Yr),{"show-search":m.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(m.$slots,"firstButton"),t.renderSlot(m.$slots,"customButton"),t.renderSlot(m.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(m.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(m.$slots,"main")]),footer:t.withCtx(()=>[g.value?(t.openBlock(),t.createBlock(y,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":m.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),g9={class:"detail-container"},b9={class:"content-wrapper"},y9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},C9=To(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:r}){const o=r,a=()=>{o("update:saveEdit",!1)},i=()=>{o("update:cancelEdit")},u=()=>{o("click:back")};return(c,f)=>{const h=jr;return t.openBlock(),t.createBlock(t.unref(xa),{title:c.title,"show-back":c.showBack,"onClick:back":u},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",g9,[t.renderSlot(c.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",b9,[t.renderSlot(c.$slots,"main",{},void 0,!0)])])),[[h,c.pageLoading]])]),footer:t.withCtx(()=>[c.isEditable?(t.openBlock(),t.createElementBlock("div",y9,[t.createVNode(t.unref(Nt),{text:"儲存",type:"primary","is-fill":"",onClick:a}),t.createVNode(t.unref(Nt),{text:"捨棄",type:"primary",onClick:i})])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-9a6ea3c5"]]),w9={class:"filter-container"},v9={class:"filter-header"},_9={class:"submit-row"},S9=To(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:r}){const o=r,a=()=>{o("submitEmit")},i=()=>{o("resetEmit")},u=()=>{o("click:back")};return(c,f)=>(t.openBlock(),t.createBlock(t.unref(xa),{title:c.mainTitle,"show-back":c.showBack,"onClick:back":u},{main:t.withCtx(()=>[t.createElementVNode("div",w9,[t.createElementVNode("div",v9,t.toDisplayString(c.filterTitle),1),t.renderSlot(c.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",_9,[t.createVNode(t.unref(Nt),{text:"執行","is-fill":"",type:"primary",onClick:a}),t.createVNode(t.unref(Nt),{text:"重設",type:"primary",onClick:i})])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-84e37068"]]),E9={class:"w-full mb-4"},k9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},B9={class:"flex items-center mr-4"},x9={key:0,src:WC,alt:"Excel",class:"w-6 h-6"},T9={key:1,src:HC,alt:"Excel-active",class:"w-6 h-6"},yl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:r}){const o=r,a=()=>{o("open:transfer")},i=m=>{o("update:selectRow",m)},u=(m,v)=>{o("click:cell",m,v)},c=m=>{o("click:columnSort",m)},f=m=>{o("click:checkRow",m)},h=m=>{o("click:editRow",m)},d=()=>{o("click:downloadExcelFile")},g=t.reactive({itemOnHover:!1});return(m,v)=>{const y=st,b=jr;return t.openBlock(),t.createElementBlock("div",E9,[t.createElementVNode("div",k9,[t.createElementVNode("div",B9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Q3))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:v[0]||(v[0]=C=>g.itemOnHover=!0),onMouseleave:v[1]||(v[1]=C=>g.itemOnHover=!1),onClick:d},[g.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",x9)),g.itemOnHover?(t.openBlock(),t.createElementBlock("img",T9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(Gr),{"element-loading-text":"數據加載中...",data:m.data,columns:m.columns,"show-summary":m.showSummary,"show-over-flow-tooltip":m.showOverFlowTooltip,"summary-method":m.summaryMethod,"show-selection":m.showSelection,"base-table-row-class-name":m.sortTableRowClassName,"show-check-btn":m.showCheckBtn,"show-edit-btn":m.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,m.loading]])])}}});function O9(e){return e.map(r=>({...r,checkActive:!0}))}const G0=[Gr,Nt,Oo,qr,yl,gl,Yr];function q0(e,r){G0.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const N9={install:q0,...G0};Gr.install=e=>{e.component(Gr.name||"BaseTable",Gr)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},Oo.install=e=>{e.component(Oo.name||"BaseInput",Oo)},qr.install=e=>{e.component(qr.name||"BaseDialog",qr)},yl.install=e=>{e.component(yl.name||"SortTable",yl)},gl.install=e=>{e.component(gl.name||"TitleTable",gl)},Yr.install=e=>{e.component(Yr.name||"SearchBar",Yr)},Oe.BaseBtn=Nt,Oe.BaseDialog=qr,Oe.BaseInput=Oo,Oe.BaseMultipleInput=jC,Oe.BaseTable=Gr,Oe.BaseWaringDialog=KC,Oe.DetailLayout=C9,Oe.FilterLayout=S9,Oe.FunctionHeader=j0,Oe.MainPanel=xa,Oe.SearchBar=Yr,Oe.SearchableListPanel=m9,Oe.SortTable=yl,Oe.TitleTable=gl,Oe.TransferDialog=a9,Oe.TransferItem=K0,Oe.default=N9,Oe.install=q0,Oe.setActiveColumn=O9,Object.defineProperties(Oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
44
+ }`;var Ee=bh(function(){return Fe(E,ie+"return "+Y).apply(o,A)});if(Ee.source=Y,Jc(Ee))throw Ee;return Ee}function jk(n){return De(n).toLowerCase()}function Gk(n){return De(n).toUpperCase()}function qk(n,l,s){if(n=De(n),n&&(s||l===o))return Bp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),E=xp(p,w),A=Tp(p,w)+1;return Or(p,E,A).join("")}function Yk(n,l,s){if(n=De(n),n&&(s||l===o))return n.slice(0,Np(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tp(p,Tn(l))+1;return Or(p,0,w).join("")}function Xk(n,l,s){if(n=De(n),n&&(s||l===o))return n.replace(Ao,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=xp(p,Tn(l));return Or(p,w).join("")}function Zk(n,l){var s=U,p=D;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?_e(l.length):s,p="omission"in l?nn(l.omission):p}n=De(n);var E=n.length;if(Mo(n)){var A=Tn(n);E=A.length}if(s>=E)return n;var R=s-$o(p);if(R<1)return p;var M=A?Or(A,0,R).join(""):n.slice(0,R);if(w===o)return M+p;if(A&&(R+=M.length-R),Qc(w)){if(n.slice(R).search(w)){var K,j=M;for(w.global||(w=mc(w.source,De(rt.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===o?R:Y)}}else if(n.indexOf(nn(w),R)!=R){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function Jk(n){return n=De(n),n&&Ds.test(n)?n.replace(Qn,xw):n}var Qk=Uo(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),nu=y2("toUpperCase");function gh(n,l,s){return n=De(n),l=s?o:l,l===o?_w(n)?Nw(n):pw(n):n.match(l)||[]}var bh=xe(function(n,l){try{return en(n,o,l)}catch(s){return Jc(s)?s:new me(s)}}),eB=or(function(n,l){return mn(l,function(s){s=Un(s),nr(n,s,Xc(n[s],n))}),n});function tB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],xe(function(p){for(var w=-1;++w<l;){var E=n[w];if(en(E[0],this,p))return en(E[1],this,p)}})}function nB(n){return xv(yn(n,m))}function ru(n){return function(){return n}}function rB(n,l){return n==null||n!==n?l:n}var oB=w2(),lB=w2(!0);function Gt(n){return n}function ou(n){return Xp(typeof n=="function"?n:yn(n,m))}function aB(n){return Jp(yn(n,m))}function iB(n,l){return Qp(n,yn(l,m))}var sB=xe(function(n,l){return function(s){return Ol(s,n,l)}}),cB=xe(function(n,l){return function(s){return Ol(n,s,l)}});function lu(n,l,s){var p=pt(l),w=Xa(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Xa(l,pt(l)));var E=!(tt(s)&&"chain"in s)||!!s.chain,A=ar(n);return mn(w,function(R){var M=l[R];n[R]=M,A&&(n.prototype[R]=function(){var K=this.__chain__;if(E||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Sr([this.value()],arguments))})}),n}function uB(){return Ct._===this&&(Ct._=Mw),this}function au(){}function fB(n){return n=_e(n),xe(function(l){return e2(l,n)})}var dB=$c(Qe),pB=$c(vp),hB=$c(sc);function yh(n){return Uc(n)?cc(Un(n)):Uv(n)}function mB(n){return function(l){return n==null?o:oo(n,l)}}var gB=_2(),bB=_2(!0);function iu(){return[]}function su(){return!1}function yB(){return{}}function CB(){return""}function wB(){return!0}function vB(n,l){if(n=_e(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=dc(p,l);++s<n;)l(s);return w}function _B(n){return be(n)?Qe(n,Un):rn(n)?[n]:Ut(V2(De(n)))}function SB(n){var l=++Iw;return De(n)+l}var EB=ni(function(n,l){return n+l},0),kB=Vc("ceil"),BB=ni(function(n,l){return n/l},1),xB=Vc("floor");function TB(n){return n&&n.length?Ya(n,Gt,Sc):o}function OB(n,l){return n&&n.length?Ya(n,ue(l,2),Sc):o}function NB(n){return Ep(n,Gt)}function AB(n,l){return Ep(n,ue(l,2))}function LB(n){return n&&n.length?Ya(n,Gt,xc):o}function RB(n,l){return n&&n.length?Ya(n,ue(l,2),xc):o}var IB=ni(function(n,l){return n*l},1),PB=Vc("round"),MB=ni(function(n,l){return n-l},0);function $B(n){return n&&n.length?fc(n,Gt):0}function VB(n,l){return n&&n.length?fc(n,ue(l,2)):0}return S.after=aE,S.ary=Y2,S.assign=GE,S.assignIn=ch,S.assignInWith=mi,S.assignWith=qE,S.at=YE,S.before=X2,S.bind=Xc,S.bindAll=eB,S.bindKey=Z2,S.castArray=yE,S.chain=j2,S.chunk=x_,S.compact=T_,S.concat=O_,S.cond=tB,S.conforms=nB,S.constant=ru,S.countBy=$S,S.create=XE,S.curry=J2,S.curryRight=Q2,S.debounce=eh,S.defaults=ZE,S.defaultsDeep=JE,S.defer=iE,S.delay=sE,S.difference=N_,S.differenceBy=A_,S.differenceWith=L_,S.drop=R_,S.dropRight=I_,S.dropRightWhile=P_,S.dropWhile=M_,S.fill=$_,S.filter=zS,S.flatMap=WS,S.flatMapDeep=HS,S.flatMapDepth=US,S.flatten=W2,S.flattenDeep=V_,S.flattenDepth=z_,S.flip=cE,S.flow=oB,S.flowRight=lB,S.fromPairs=F_,S.functions=lk,S.functionsIn=ak,S.groupBy=KS,S.initial=W_,S.intersection=H_,S.intersectionBy=U_,S.intersectionWith=K_,S.invert=sk,S.invertBy=ck,S.invokeMap=GS,S.iteratee=ou,S.keyBy=qS,S.keys=pt,S.keysIn=jt,S.map=ci,S.mapKeys=fk,S.mapValues=dk,S.matches=aB,S.matchesProperty=iB,S.memoize=fi,S.merge=pk,S.mergeWith=uh,S.method=sB,S.methodOf=cB,S.mixin=lu,S.negate=di,S.nthArg=fB,S.omit=hk,S.omitBy=mk,S.once=uE,S.orderBy=YS,S.over=dB,S.overArgs=fE,S.overEvery=pB,S.overSome=hB,S.partial=Zc,S.partialRight=th,S.partition=XS,S.pick=gk,S.pickBy=fh,S.property=yh,S.propertyOf=mB,S.pull=Y_,S.pullAll=U2,S.pullAllBy=X_,S.pullAllWith=Z_,S.pullAt=J_,S.range=gB,S.rangeRight=bB,S.rearg=dE,S.reject=QS,S.remove=Q_,S.rest=pE,S.reverse=qc,S.sampleSize=tE,S.set=yk,S.setWith=Ck,S.shuffle=nE,S.slice=eS,S.sortBy=lE,S.sortedUniq=iS,S.sortedUniqBy=sS,S.split=Wk,S.spread=hE,S.tail=cS,S.take=uS,S.takeRight=fS,S.takeRightWhile=dS,S.takeWhile=pS,S.tap=TS,S.throttle=mE,S.thru=si,S.toArray=ah,S.toPairs=dh,S.toPairsIn=ph,S.toPath=_B,S.toPlainObject=sh,S.transform=wk,S.unary=gE,S.union=hS,S.unionBy=mS,S.unionWith=gS,S.uniq=bS,S.uniqBy=yS,S.uniqWith=CS,S.unset=vk,S.unzip=Yc,S.unzipWith=K2,S.update=_k,S.updateWith=Sk,S.values=Go,S.valuesIn=Ek,S.without=wS,S.words=gh,S.wrap=bE,S.xor=vS,S.xorBy=_S,S.xorWith=SS,S.zip=ES,S.zipObject=kS,S.zipObjectDeep=BS,S.zipWith=xS,S.entries=dh,S.entriesIn=ph,S.extend=ch,S.extendWith=mi,lu(S,S),S.add=EB,S.attempt=bh,S.camelCase=Tk,S.capitalize=hh,S.ceil=kB,S.clamp=kk,S.clone=CE,S.cloneDeep=vE,S.cloneDeepWith=_E,S.cloneWith=wE,S.conformsTo=SE,S.deburr=mh,S.defaultTo=rB,S.divide=BB,S.endsWith=Ok,S.eq=Nn,S.escape=Nk,S.escapeRegExp=Ak,S.every=VS,S.find=FS,S.findIndex=F2,S.findKey=QE,S.findLast=DS,S.findLastIndex=D2,S.findLastKey=ek,S.floor=xB,S.forEach=G2,S.forEachRight=q2,S.forIn=tk,S.forInRight=nk,S.forOwn=rk,S.forOwnRight=ok,S.get=eu,S.gt=EE,S.gte=kE,S.has=ik,S.hasIn=tu,S.head=H2,S.identity=Gt,S.includes=jS,S.indexOf=D_,S.inRange=Bk,S.invoke=uk,S.isArguments=io,S.isArray=be,S.isArrayBuffer=BE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=xE,S.isBuffer=Nr,S.isDate=TE,S.isElement=OE,S.isEmpty=NE,S.isEqual=AE,S.isEqualWith=LE,S.isError=Jc,S.isFinite=RE,S.isFunction=ar,S.isInteger=nh,S.isLength=pi,S.isMap=rh,S.isMatch=IE,S.isMatchWith=PE,S.isNaN=ME,S.isNative=$E,S.isNil=zE,S.isNull=VE,S.isNumber=oh,S.isObject=tt,S.isObjectLike=ot,S.isPlainObject=Pl,S.isRegExp=Qc,S.isSafeInteger=FE,S.isSet=lh,S.isString=hi,S.isSymbol=rn,S.isTypedArray=jo,S.isUndefined=DE,S.isWeakMap=WE,S.isWeakSet=HE,S.join=j_,S.kebabCase=Lk,S.last=wn,S.lastIndexOf=G_,S.lowerCase=Rk,S.lowerFirst=Ik,S.lt=UE,S.lte=KE,S.max=TB,S.maxBy=OB,S.mean=NB,S.meanBy=AB,S.min=LB,S.minBy=RB,S.stubArray=iu,S.stubFalse=su,S.stubObject=yB,S.stubString=CB,S.stubTrue=wB,S.multiply=IB,S.nth=q_,S.noConflict=uB,S.noop=au,S.now=ui,S.pad=Pk,S.padEnd=Mk,S.padStart=$k,S.parseInt=Vk,S.random=xk,S.reduce=ZS,S.reduceRight=JS,S.repeat=zk,S.replace=Fk,S.result=bk,S.round=PB,S.runInContext=P,S.sample=eE,S.size=rE,S.snakeCase=Dk,S.some=oE,S.sortedIndex=tS,S.sortedIndexBy=nS,S.sortedIndexOf=rS,S.sortedLastIndex=oS,S.sortedLastIndexBy=lS,S.sortedLastIndexOf=aS,S.startCase=Hk,S.startsWith=Uk,S.subtract=MB,S.sum=$B,S.sumBy=VB,S.template=Kk,S.times=vB,S.toFinite=ir,S.toInteger=_e,S.toLength=ih,S.toLower=jk,S.toNumber=vn,S.toSafeInteger=jE,S.toString=De,S.toUpper=Gk,S.trim=qk,S.trimEnd=Yk,S.trimStart=Xk,S.truncate=Zk,S.unescape=Jk,S.uniqueId=SB,S.upperCase=Qk,S.upperFirst=nu,S.each=G2,S.eachRight=q2,S.first=H2,lu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Le.prototype[n]=function(s){s=s===o?1:ft(_e(s),0);var p=this.__filtered__&&!l?new Le(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Le.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==oe||s==re;Le.prototype[n]=function(w){var E=this.clone();return E.__iteratees__.push({iteratee:ue(w,3),type:s}),E.__filtered__=E.__filtered__||p,E}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Le.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Le.prototype[n]=function(){return this.__filtered__?new Le(this):this[s](1)}}),Le.prototype.compact=function(){return this.filter(Gt)},Le.prototype.find=function(n){return this.filter(n).head()},Le.prototype.findLast=function(n){return this.reverse().find(n)},Le.prototype.invokeMap=xe(function(n,l){return typeof n=="function"?new Le(this):this.map(function(s){return Ol(s,n,l)})}),Le.prototype.reject=function(n){return this.filter(di(ue(n)))},Le.prototype.slice=function(n,l){n=_e(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Le(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==o&&(l=_e(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Le.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Le.prototype.toArray=function(){return this.take(Q)},Wn(Le.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],E=p||/^find/.test(l);w&&(S.prototype[l]=function(){var A=this.__wrapped__,R=p?[1]:arguments,M=A instanceof Le,K=R[0],j=M||be(A),Y=function(Ae){var Ie=w.apply(S,Sr([Ae],R));return p&&ee?Ie[0]:Ie};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,ie=!!this.__actions__.length,fe=E&&!ee,Ee=M&&!ie;if(!E&&j){A=Ee?A:new Le(this);var de=n.apply(A,R);return de.__actions__.push({func:si,args:[Y],thisArg:o}),new bn(de,ee)}return fe&&Ee?n.apply(this,R):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Ia[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var E=this.value();return l.apply(be(E)?E:[],w)}return this[s](function(A){return l.apply(be(A)?A:[],w)})}}),Wn(Le.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Do,p)||(Do[p]=[]),Do[p].push({name:l,func:s})}}),Do[ti(o,B).name]=[{name:"wrapper",func:o}],Le.prototype.clone=Jw,Le.prototype.reverse=Qw,Le.prototype.value=ev,S.prototype.at=OS,S.prototype.chain=NS,S.prototype.commit=AS,S.prototype.next=LS,S.prototype.plant=IS,S.prototype.reverse=PS,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=MS,S.prototype.first=S.prototype.head,_l&&(S.prototype[_l]=RS),S}),Vo=Aw();Qr?((Qr.exports=Vo)._=Vo,oc._=Vo):Ct._=Vo}).call(t9)})(bl,bl.exports)),bl.exports}var r9=n9();const Ba=d7(r9),K0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:r}){const o=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=r,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,m=>{m||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!o.columnsValue.fixed),h=t.computed(()=>[{icon:r5,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:q3,emitKey:"update:toLock",isDisabled:f.value},{icon:t5,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:Kf,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:Fi,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:P3,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/h.value.length,g=m=>{i(m)};return(m,v)=>{const y=yr,b=P7,C=ly;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:v[0]||(v[0]=k=>a.itemOnHover=!0),onMouseleave:v[1]||(v[1]=k=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(y,{label:m.columnsValue.label,value:m.columnsValue.prop,key:m.columnsValue.prop},null,8,["label","value"])),t.createVNode(C,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,k=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:k.icon,disabled:k.isDisabled,link:"",type:"primary",onClick:B=>g(k.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),o9={class:"search-bar"},l9={class:"transfer-sort-wrapper"},a9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:r}){const o=e,a=r,i=t.computed({get:()=>o.modelValue,set:C=>a("update:modelValue",C)}),u=t.reactive({localColumns:Ba.cloneDeep(o.columnsValue),clickItemProp:"",checkList:o.columnsValue.map(C=>C.prop)}),c={toTop:C=>{if(C<=0)return;const k=u.localColumns.splice(C,1)[0];u.localColumns.unshift(k)},toBottom:C=>{if(C>=u.localColumns.length-1)return;const k=u.localColumns.splice(C,1)[0];u.localColumns.push(k)},toPre:C=>{if(C>0){const k=u.localColumns[C];u.localColumns[C]=u.localColumns[C-1],u.localColumns[C-1]=k}},toNext:C=>{if(C<u.localColumns.length-1){const k=u.localColumns[C];u.localColumns[C]=u.localColumns[C+1],u.localColumns[C+1]=k}},toLock:C=>{if(C<=0)return;const k=u.localColumns.splice(C,1)[0];k.fixed="left",u.localColumns.unshift(k)},toUnLock:C=>{if(C<u.localColumns.length-1){const k=u.localColumns[C];delete k.fixed}}},f=()=>{u.localColumns=Ba.cloneDeep(o.columnsValue),u.checkList=o.columnsValue.filter(C=>C.checkActive).map(C=>C.prop||"")};t.watch(()=>i.value,C=>{C?f():(u.clickItemProp="",u.localColumns=[],u.checkList=[])});const h=()=>{a("update:submit",u.localColumns)},d=C=>{const k=o.columnsValue.map(B=>B.prop);u.checkList=C?k:[],g(u.checkList)},g=C=>{const k=C.map(B=>String(B));u.localColumns.forEach(B=>{B.checkActive=k.includes(B.prop)}),a("update:checkChange",{columns:u.localColumns,checkList:u.checkList})},m=t.computed(()=>u.localColumns.length>0&&u.checkList.length===u.localColumns.length),v=t.computed({get:()=>m.value,set:C=>d(C)}),y=()=>{u.localColumns=Ba.cloneDeep(o.columnsValue)},b=C=>{if(C.length>0){const k=Ba.cloneDeep(u.localColumns);u.localColumns=k.filter(B=>B.label.includes(C))}else y()};return(C,k)=>{const B=yr,N=B7;return t.openBlock(),t.createBlock(qr,{modelValue:i.value,"onUpdate:modelValue":k[2]||(k[2]=x=>i.value=x),title:C.transferTitle,"onClick:submit":h},{default:t.withCtx(()=>[t.createElementVNode("div",o9,[t.createVNode(Yr,{"show-search":!0,"onUpdate:clear":y,"onKeydown:enter":b})]),t.createElementVNode("div",l9,[t.createVNode(B,{modelValue:v.value,"onUpdate:modelValue":k[0]||(k[0]=x=>v.value=x),class:"px-4",onChange:d},{default:t.withCtx(()=>[t.createTextVNode(" 欄 ("+t.toDisplayString(u.checkList.length)+"/"+t.toDisplayString(u.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(N,{modelValue:u.checkList,"onUpdate:modelValue":k[1]||(k[1]=x=>u.checkList=x),onChange:g},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"list-container",{columns:u.localColumns,clickItemProp:u.clickItemProp,handleItemEvents:c,handleMousedown:x=>u.clickItemProp=x},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.localColumns,(x,_)=>(t.openBlock(),t.createBlock(K0,{key:x.prop,"dialog-modal-visible":i.value,"columns-value":x,"columns-index":_,"columns-len":u.localColumns.length,class:t.normalizeClass({"transfer-active-bg":x.checkActive,"transfer-active-border":u.clickItemProp==x.prop}),onMousedown:T=>u.clickItemProp=x.prop||"","onUpdate:toTop":T=>c.toTop(_),"onUpdate:toBottom":T=>c.toBottom(_),"onUpdate:toPre":T=>c.toPre(_),"onUpdate:toNext":T=>c.toNext(_),"onUpdate:toLock":T=>c.toLock(_),"onUpdate:toUnLock":T=>c.toUnLock(_)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),i9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},s9={class:"flex items-center gap-2"},c9={key:0,class:"flex items-center text-black"},u9={class:"font-bold text-text text-xl md:text-2xl;"},f9={class:"flex items-center gap-3"},j0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{const u={};switch(typeof o.showBack){case"string":u.path=o.showBack;break;case"object":Object.assign(u,o.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",i9,[t.createElementVNode("div",s9,[e.showBack?(t.openBlock(),t.createElementBlock("div",c9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(O3))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",u9,t.toDisplayString(o.title),1)]),t.createElementVNode("div",f9,[t.renderSlot(u.$slots,"default")])])}}}),d9={key:0,class:"px-4 pt-1.5"},p9={key:1,class:"py-1.5 px-4"},h9={key:0,class:"flex justify-start pl-1.5 pt-0"},xa=To(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{a("click:back")};return(u,c)=>{const f=la;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(j0),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",d9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",p9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",h9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),m9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:r}){const o=e,{pagination:a}=t.toRefs(o),i=r,u=m=>{i("search",m)},c=()=>{i("search",null)},f=m=>{i("updatePage",m)},h=m=>{i("updatePageSize",m)},d=()=>{i("click:back")},g=t.computed(()=>o.showPagination?o.showPagination:o.pagination.totalCount>0);return(m,v)=>{const y=ey;return t.openBlock(),t.createBlock(t.unref(xa),{title:o.title,"show-back":m.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Yr),{"show-search":m.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(m.$slots,"firstButton"),t.renderSlot(m.$slots,"customButton"),t.renderSlot(m.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(m.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(m.$slots,"main")]),footer:t.withCtx(()=>[g.value?(t.openBlock(),t.createBlock(y,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":m.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),g9={class:"detail-container"},b9={class:"content-wrapper"},y9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},C9=To(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:r}){const o=r,a=()=>{o("update:saveEdit",!1)},i=()=>{o("update:cancelEdit")},u=()=>{o("click:back")};return(c,f)=>{const h=jr;return t.openBlock(),t.createBlock(t.unref(xa),{title:c.title,"show-back":c.showBack,"onClick:back":u},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",g9,[t.renderSlot(c.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",b9,[t.renderSlot(c.$slots,"main",{},void 0,!0)])])),[[h,c.pageLoading]])]),footer:t.withCtx(()=>[c.isEditable?(t.openBlock(),t.createElementBlock("div",y9,[t.createVNode(t.unref(Nt),{text:"儲存",type:"primary","is-fill":"",onClick:a}),t.createVNode(t.unref(Nt),{text:"捨棄",type:"primary",onClick:i})])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-9a6ea3c5"]]),w9={class:"filter-container"},v9={class:"filter-header"},_9={class:"submit-row"},S9=To(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:r}){const o=r,a=()=>{o("submitEmit")},i=()=>{o("resetEmit")},u=()=>{o("click:back")};return(c,f)=>(t.openBlock(),t.createBlock(t.unref(xa),{title:c.mainTitle,"show-back":c.showBack,"onClick:back":u},{main:t.withCtx(()=>[t.createElementVNode("div",w9,[t.createElementVNode("div",v9,t.toDisplayString(c.filterTitle),1),t.renderSlot(c.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",_9,[t.createVNode(t.unref(Nt),{text:"執行","is-fill":"",type:"primary",onClick:a}),t.createVNode(t.unref(Nt),{text:"重設",type:"primary",onClick:i})])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-84e37068"]]),E9={class:"w-full mb-4"},k9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},B9={class:"flex items-center mr-4"},x9={key:0,src:WC,alt:"Excel",class:"w-6 h-6"},T9={key:1,src:HC,alt:"Excel-active",class:"w-6 h-6"},yl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:r}){const o=r,a=()=>{o("open:transfer")},i=m=>{o("update:selectRow",m)},u=(m,v)=>{o("click:cell",m,v)},c=m=>{o("click:columnSort",m)},f=m=>{o("click:checkRow",m)},h=m=>{o("click:editRow",m)},d=()=>{o("click:downloadExcelFile")},g=t.reactive({itemOnHover:!1});return(m,v)=>{const y=st,b=jr;return t.openBlock(),t.createElementBlock("div",E9,[t.createElementVNode("div",k9,[t.createElementVNode("div",B9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Q3))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:v[0]||(v[0]=C=>g.itemOnHover=!0),onMouseleave:v[1]||(v[1]=C=>g.itemOnHover=!1),onClick:d},[g.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",x9)),g.itemOnHover?(t.openBlock(),t.createElementBlock("img",T9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(Gr),{"element-loading-text":"數據加載中...",data:m.data,columns:m.columns,"show-summary":m.showSummary,"show-over-flow-tooltip":m.showOverFlowTooltip,"summary-method":m.summaryMethod,"show-selection":m.showSelection,"base-table-row-class-name":m.sortTableRowClassName,"show-check-btn":m.showCheckBtn,"show-edit-btn":m.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,m.loading]])])}}});function O9(e){return e.map(r=>({...r,checkActive:!0}))}const G0=[Gr,Nt,Oo,qr,yl,gl,Yr];function q0(e,r){G0.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const N9={install:q0,...G0};Gr.install=e=>{e.component(Gr.name||"BaseTable",Gr)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},Oo.install=e=>{e.component(Oo.name||"BaseInput",Oo)},qr.install=e=>{e.component(qr.name||"BaseDialog",qr)},yl.install=e=>{e.component(yl.name||"SortTable",yl)},gl.install=e=>{e.component(gl.name||"TitleTable",gl)},Yr.install=e=>{e.component(Yr.name||"SearchBar",Yr)},Oe.BaseBtn=Nt,Oe.BaseDialog=qr,Oe.BaseInput=Oo,Oe.BaseMultipleInput=jC,Oe.BaseTable=Gr,Oe.BaseWaringDialog=KC,Oe.DetailLayout=C9,Oe.FilterLayout=S9,Oe.FunctionHeader=j0,Oe.MainPanel=xa,Oe.SearchBar=Yr,Oe.SearchableListPanel=m9,Oe.SortTable=yl,Oe.TitleTable=gl,Oe.TransferDialog=a9,Oe.TransferItem=K0,Oe.default=N9,Oe.install=q0,Oe.setActiveColumn=O9,Object.defineProperties(Oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -45,7 +45,7 @@ const onBackClick = () => {
45
45
  emits('click:back')
46
46
  }
47
47
  const showPager = computed(() => {
48
- if (typeof props.showBack === 'boolean') {
48
+ if (props.showPagination) {
49
49
  return props.showPagination
50
50
  } else {
51
51
  return props.pagination.totalCount > 0