@gx-design-vue/pro-table 0.0.20 → 0.0.22
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/ProTable.d.ts +52 -32
- package/dist/pro-table.mjs +1 -1
- package/dist/pro-table.umd.js +1 -1
- package/package.json +3 -4
package/dist/ProTable.d.ts
CHANGED
|
@@ -79,7 +79,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
79
79
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType | undefined>;
|
|
80
80
|
};
|
|
81
81
|
optionsExtra: {
|
|
82
|
-
type: import("vue").PropType<OptionsExtraRender>;
|
|
82
|
+
type: import("vue").PropType<OptionsExtraRender>; /**
|
|
83
|
+
* @Author gx12358
|
|
84
|
+
* @DateTime 2022/1/21
|
|
85
|
+
* @lastTime 2022/1/21
|
|
86
|
+
* @description Tabel-loading hooks 方法
|
|
87
|
+
*/
|
|
83
88
|
default: () => undefined;
|
|
84
89
|
};
|
|
85
90
|
settingExtra: {
|
|
@@ -88,8 +93,18 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
88
93
|
};
|
|
89
94
|
showIndex: {
|
|
90
95
|
type: import("vue").PropType<boolean | undefined>;
|
|
91
|
-
default: boolean;
|
|
92
|
-
|
|
96
|
+
default: boolean; /**
|
|
97
|
+
* @Author gx12358
|
|
98
|
+
* @DateTime 2022/1/21
|
|
99
|
+
* @lastTime 2022/1/21
|
|
100
|
+
* @description Tabel-pagetion hooks 方法
|
|
101
|
+
*/
|
|
102
|
+
}; /**
|
|
103
|
+
* @Author gx12358
|
|
104
|
+
* @DateTime 2022/1/21
|
|
105
|
+
* @lastTime 2022/1/21
|
|
106
|
+
* @description Tabel-pagetion hooks 方法
|
|
107
|
+
*/
|
|
93
108
|
pageItemRender: {
|
|
94
109
|
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender | undefined>;
|
|
95
110
|
default: () => undefined;
|
|
@@ -100,12 +115,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
100
115
|
};
|
|
101
116
|
align: {
|
|
102
117
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
|
|
103
|
-
default: string;
|
|
104
|
-
* @Author gx12358
|
|
105
|
-
* @DateTime 2022/1/21
|
|
106
|
-
* @lastTime 2022/1/21
|
|
107
|
-
* @description Tabel-colums hooks 方法
|
|
108
|
-
*/
|
|
118
|
+
default: string;
|
|
109
119
|
};
|
|
110
120
|
bordered: {
|
|
111
121
|
type: import("vue").PropType<boolean | undefined>;
|
|
@@ -120,7 +130,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
120
130
|
modalScroll: import("vue").PropType<boolean | undefined>;
|
|
121
131
|
neverScroll: import("vue").PropType<boolean | undefined>;
|
|
122
132
|
columnEmptyText: {
|
|
123
|
-
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
|
|
133
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>; /**
|
|
134
|
+
* @Author gx12358
|
|
135
|
+
* @DateTime 2022/1/21
|
|
136
|
+
* @lastTime 2022/1/21
|
|
137
|
+
* @description Tabel-datasource hooks 方法
|
|
138
|
+
*/
|
|
124
139
|
default: boolean;
|
|
125
140
|
};
|
|
126
141
|
onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
@@ -221,12 +236,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
221
236
|
};
|
|
222
237
|
indentSize: {
|
|
223
238
|
type: import("vue").PropType<number>;
|
|
224
|
-
default: any;
|
|
225
|
-
* @Author gx12358
|
|
226
|
-
* @DateTime 2022/1/21
|
|
227
|
-
* @lastTime 2022/1/21
|
|
228
|
-
* @description Tabel-scroll hooks 方法
|
|
229
|
-
*/
|
|
239
|
+
default: any;
|
|
230
240
|
};
|
|
231
241
|
expandIconColumnIndex: {
|
|
232
242
|
type: import("vue").PropType<number>;
|
|
@@ -434,7 +444,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
434
444
|
type: import("vue").PropType<import("./hooks/useColumnSetting").ColumnsStateType | undefined>;
|
|
435
445
|
};
|
|
436
446
|
optionsExtra: {
|
|
437
|
-
type: import("vue").PropType<OptionsExtraRender>;
|
|
447
|
+
type: import("vue").PropType<OptionsExtraRender>; /**
|
|
448
|
+
* @Author gx12358
|
|
449
|
+
* @DateTime 2022/1/21
|
|
450
|
+
* @lastTime 2022/1/21
|
|
451
|
+
* @description Tabel-loading hooks 方法
|
|
452
|
+
*/
|
|
438
453
|
default: () => undefined;
|
|
439
454
|
};
|
|
440
455
|
settingExtra: {
|
|
@@ -443,8 +458,18 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
443
458
|
};
|
|
444
459
|
showIndex: {
|
|
445
460
|
type: import("vue").PropType<boolean | undefined>;
|
|
446
|
-
default: boolean;
|
|
447
|
-
|
|
461
|
+
default: boolean; /**
|
|
462
|
+
* @Author gx12358
|
|
463
|
+
* @DateTime 2022/1/21
|
|
464
|
+
* @lastTime 2022/1/21
|
|
465
|
+
* @description Tabel-pagetion hooks 方法
|
|
466
|
+
*/
|
|
467
|
+
}; /**
|
|
468
|
+
* @Author gx12358
|
|
469
|
+
* @DateTime 2022/1/21
|
|
470
|
+
* @lastTime 2022/1/21
|
|
471
|
+
* @description Tabel-pagetion hooks 方法
|
|
472
|
+
*/
|
|
448
473
|
pageItemRender: {
|
|
449
474
|
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender | undefined>;
|
|
450
475
|
default: () => undefined;
|
|
@@ -455,12 +480,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
455
480
|
};
|
|
456
481
|
align: {
|
|
457
482
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
|
|
458
|
-
default: string;
|
|
459
|
-
* @Author gx12358
|
|
460
|
-
* @DateTime 2022/1/21
|
|
461
|
-
* @lastTime 2022/1/21
|
|
462
|
-
* @description Tabel-colums hooks 方法
|
|
463
|
-
*/
|
|
483
|
+
default: string;
|
|
464
484
|
};
|
|
465
485
|
bordered: {
|
|
466
486
|
type: import("vue").PropType<boolean | undefined>;
|
|
@@ -475,7 +495,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
475
495
|
modalScroll: import("vue").PropType<boolean | undefined>;
|
|
476
496
|
neverScroll: import("vue").PropType<boolean | undefined>;
|
|
477
497
|
columnEmptyText: {
|
|
478
|
-
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
|
|
498
|
+
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>; /**
|
|
499
|
+
* @Author gx12358
|
|
500
|
+
* @DateTime 2022/1/21
|
|
501
|
+
* @lastTime 2022/1/21
|
|
502
|
+
* @description Tabel-datasource hooks 方法
|
|
503
|
+
*/
|
|
479
504
|
default: boolean;
|
|
480
505
|
};
|
|
481
506
|
onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
@@ -576,12 +601,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
576
601
|
};
|
|
577
602
|
indentSize: {
|
|
578
603
|
type: import("vue").PropType<number>;
|
|
579
|
-
default: any;
|
|
580
|
-
* @Author gx12358
|
|
581
|
-
* @DateTime 2022/1/21
|
|
582
|
-
* @lastTime 2022/1/21
|
|
583
|
-
* @description Tabel-scroll hooks 方法
|
|
584
|
-
*/
|
|
604
|
+
default: any;
|
|
585
605
|
};
|
|
586
606
|
expandIconColumnIndex: {
|
|
587
607
|
type: import("vue").PropType<number>;
|
package/dist/pro-table.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as E, Fragment as st, isVNode as Ot, Comment as Jp, Text as Zi, provide as at, inject as Je, ref as z, onMounted as nt, shallowRef as qe, watchEffect as ze, defineComponent as le, renderSlot as el, createVNode as p, onUnmounted as yn, getCurrentInstance as Zt, reactive as ot, onUpdated as Nn, watch as Se, createTextVNode as Jt, toRef as He, onBeforeUnmount as dt, onActivated as Qp, nextTick as et, toRefs as Sr, unref as Ce, Transition as ma, Teleport as tl, TransitionGroup as Zp, render as vu, h as pu, cloneVNode as va, withDirectives as bn, resolveDirective as eh, withModifiers as hu, vShow as nl, onBeforeMount as th, isRef as nh, toRaw as Ht, camelize as Td, onDeactivated as ah, mergeProps as jt } from "vue";
|
|
2
2
|
import { isBoolean as Hn, getSlot as Ed, isFunction as wr, arrayRepeat as rh, runFunction as oh, handleCurrentPage as ih, isObject as al, getSortIndex as lh, isDeepEqualReact as Id, genColumnKey as kd, compareArray as uh, isNumber as Md, isString as sh, isArray as Uo, getRandomNumber as Go, getPrefixCls as rl, handleShowIndex as ch, getSlotVNode as Ta, hanndleField as dh } from "@gx-design-vue/pro-utils";
|
|
3
3
|
import { createTypes as fh } from "vue-types";
|
|
4
|
-
import { cloneDeep as zt, omit as gu } from "lodash-
|
|
4
|
+
import { cloneDeep as zt, omit as gu } from "lodash-es";
|
|
5
5
|
import { useFullscreen as Nd } from "@vueuse/core";
|
|
6
6
|
import { Form as mu, Grid as ol, Space as Tn, Button as yu, Input as bu, TimePicker as vh, DatePicker as _d, TreeSelect as ph, Spin as Yo, Select as hh, Tree as gh, Popover as mh, Checkbox as yh, Tooltip as on, Dropdown as bh, Menu as or, Pagination as Ch, Table as xh, Typography as Sh } from "ant-design-vue";
|
|
7
7
|
import { tryOnUnmounted as wh, useMemo as Or } from "@gx-design-vue/pro-hooks";
|
package/dist/pro-table.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Qe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@gx-design-vue/pro-utils"),require("vue-types"),require("lodash-
|
|
1
|
+
(function(Qe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@gx-design-vue/pro-utils"),require("vue-types"),require("lodash-es"),require("@vueuse/core"),require("ant-design-vue"),require("@gx-design-vue/pro-hooks"),require("dayjs"),require("@ant-design/icons-vue")):typeof define=="function"&&define.amd?define(["exports","vue","@gx-design-vue/pro-utils","vue-types","lodash-es","@vueuse/core","ant-design-vue","@gx-design-vue/pro-hooks","dayjs","@ant-design/icons-vue"],r):(Qe=typeof globalThis<"u"?globalThis:Qe||self,r(Qe.GProTable={},Qe.vue,Qe.proUtils,Qe.vueTypes,Qe.lodashEs,Qe.core,Qe.antDesignVue$1,Qe.proHooks,Qe.dayjs,Qe.iconsVue))})(this,function(Qe,r,De,Zv,mt,Il,Ve,ta,ep,Ot){"use strict";const bt=(t=>t&&typeof t=="object"&&"default"in t?t:{default:t})(ep),XP="",JP="",QP="",ZP="",eT="",tT="";function tp(t){const e=r.computed(()=>{var c;return(c=t.value)==null?void 0:c.actionRef()}),n=r.computed(()=>{var c;return(c=t.value)==null?void 0:c.formRef()}),a=r.computed(()=>{var d,s,f;return{...De.isBoolean((d=e.value)==null?void 0:d.pageParams)?{}:((s=e.value)==null?void 0:s.pageParams)||{},...((f=n.value)==null?void 0:f.formParams)||{}}}),o=r.computed(()=>{var c;return((c=e.value)==null?void 0:c.getLoadingStatus)||!1});return{formRef:n,actionRef:e,params:a,loading:o,setPage:(c,d,s)=>{var f,v;return(v=(f=e.value)==null?void 0:f.changePageInfo)==null?void 0:v.call(f,c,d,s)},mutate:c=>{var d,s;return(s=(d=e.value)==null?void 0:d.reSetDataList)==null?void 0:s.call(d,c)},changeLoading:c=>{var d,s;return(s=(d=e.value)==null?void 0:d.loadingOperation)==null?void 0:s.call(d,c)},reload:c=>{var d,s;return(s=(d=e.value)==null?void 0:d.reload)==null?void 0:s.call(d,c)}}}function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Je.apply(this,arguments)}function kl(t){if(Array.isArray(t))return t}function np(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],o=!0,i=!1,u,l;try{for(n=n.call(t);!(o=(u=n.next()).done)&&(a.push(u.value),!(e&&a.length===e));o=!0);}catch(c){i=!0,l=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function kr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function Va(t,e){if(!!t){if(typeof t=="string")return kr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kr(t,e)}}function Ml(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(t,e){return kl(t)||np(t,e)||Va(t,e)||Ml()}function ap(t){if(Array.isArray(t))return kr(t)}function Rl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(t){return ap(t)||Rl(t)||Va(t)||rp()}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_l(Object(n),!0).forEach(function(a){F(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Re(t){return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(t)}var op=typeof global=="object"&&global&&global.Object===Object&&global;const Al=op;var ip=typeof self=="object"&&self&&self.Object===Object&&self,lp=Al||ip||Function("return this")();const $t=lp;var up=$t.Symbol;const kn=up;var Vl=Object.prototype,cp=Vl.hasOwnProperty,sp=Vl.toString,na=kn?kn.toStringTag:void 0;function dp(t){var e=cp.call(t,na),n=t[na];try{t[na]=void 0;var a=!0}catch{}var o=sp.call(t);return a&&(e?t[na]=n:delete t[na]),o}var fp=Object.prototype,vp=fp.toString;function pp(t){return vp.call(t)}var hp="[object Null]",mp="[object Undefined]",Dl=kn?kn.toStringTag:void 0;function fn(t){return t==null?t===void 0?mp:hp:Dl&&Dl in Object(t)?dp(t):pp(t)}function Fl(t,e){return function(n){return t(e(n))}}var gp=Fl(Object.getPrototypeOf,Object);const yp=gp;function vn(t){return t!=null&&typeof t=="object"}var bp="[object Object]",Cp=Function.prototype,xp=Object.prototype,$l=Cp.toString,wp=xp.hasOwnProperty,Sp=$l.call(Object);function Np(t){if(!vn(t)||fn(t)!=bp)return!1;var e=yp(t);if(e===null)return!0;var n=wp.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&$l.call(n)==Sp}var Op=function(e){return typeof e=="function"},Pp=Array.isArray,Tp=function(e){return typeof e=="string"},Ep=function(e){return e!==null&&Re(e)==="object"},Ip=/^on[^a-z]/,kp=function(e){return Ip.test(e)},Kl=function(e){var n=Object.create(null);return function(a){var o=n[a];return o||(n[a]=e(a))}},Mp=/-(\w)/g,Mr=Kl(function(t){return t.replace(Mp,function(e,n){return n?n.toUpperCase():""})}),Rp=/\B([A-Z])/g,_p=Kl(function(t){return t.replace(Rp,"-$1").toLowerCase()}),Ap=Object.prototype.hasOwnProperty,Ll=function(e,n){return Ap.call(e,n)};function Vp(t,e,n,a){var o=t[n];if(o!=null){var i=Ll(o,"default");if(i&&a===void 0){var u=o.default;a=o.type!==Function&&Op(u)?u():u}o.type===Boolean&&(!Ll(e,n)&&!i?a=!1:a===""&&(a=!0))}return a}function Bl(t){return typeof t=="number"?"".concat(t,"px"):t}function aa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t!=null?t:n}function fe(){for(var t=[],e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];if(!!n){if(Tp(n))t.push(n);else if(Pp(n))for(var a=0;a<n.length;a++){var o=fe(n[a]);o&&t.push(o)}else if(Ep(n))for(var i in n)n[i]&&t.push(i)}}return t.join(" ")}var Dp=function(e){return e!=null&&e!==""};const Rr=Dp;var Fp=function(e,n){var a=x({},e);return Object.keys(n).forEach(function(o){var i=a[o];if(i)i.type||i.default?i.default=n[o]:i.def?i.def(n[o]):a[o]={type:i,default:n[o]};else throw new Error("not have ".concat(o," prop"))}),a};const Ct=Fp;var jl=function(e){for(var n=Object.keys(e),a={},o={},i={},u=0,l=n.length;u<l;u++){var c=n[u];kp(c)?(a[c[2].toLowerCase()+c.slice(3)]=e[c],o[c]=e[c]):i[c]=e[c]}return{onEvents:o,events:a,extraAttrs:i}},_r=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a={},o=/;(?![^(]*\))/g,i=/:(.+)/;return Re(e)==="object"?e:(e.split(o).forEach(function(u){if(u){var l=u.split(i);if(l.length>1){var c=n?Mr(l[0].trim()):l[0].trim();a[c]=l[1].trim()}}}),a)},Mn=function(e,n){return e[n]!==void 0},ft=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=Array.isArray(e)?e:[e],o=[];return a.forEach(function(i){Array.isArray(i)?o.push.apply(o,we(t(i,n))):i&&i.type===r.Fragment?o.push.apply(o,we(t(i.children,n))):i&&r.isVNode(i)?n&&!Wl(i)?o.push(i):n||o.push(i):Rr(i)&&o.push(i)}),o},zl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.isVNode(e))return e.type===r.Fragment?n==="default"?ft(e.children):[]:e.children&&e.children[n]?ft(e.children[n](a)):[];var o=e.$slots[n]&&e.$slots[n](a);return ft(o)},pn=function(e){for(var n,a=(e==null||(n=e.vnode)===null||n===void 0?void 0:n.el)||e&&(e.$el||e);a&&!a.tagName;)a=a.nextSibling;return a},$p=function(e){var n={};if(e.$&&e.$.vnode){var a=e.$.vnode.props||{};Object.keys(e.$props).forEach(function(l){var c=e.$props[l],d=_p(l);(c!==void 0||d in a)&&(n[l]=c)})}else if(r.isVNode(e)&&Re(e.type)==="object"){var o=e.props||{},i={};Object.keys(o).forEach(function(l){i[Mr(l)]=o[l]});var u=e.type.props||{};Object.keys(u).forEach(function(l){var c=Vp(u,i,l,i[l]);(c!==void 0||l in i)&&(n[l]=c)})}return n},Ar=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(e.$){var u=e[n];if(u!==void 0)return typeof u=="function"&&o?u(a):u;i=e.$slots[n],i=o&&i?i(a):i}else if(r.isVNode(e)){var l=e.props&&e.props[n];if(l!==void 0&&e.props!==null)return typeof l=="function"&&o?l(a):l;e.type===r.Fragment?i=e.children:e.children&&e.children[n]&&(i=e.children[n],i=o&&i?i(a):i)}return Array.isArray(i)&&(i=ft(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function Hl(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=x(x({},n),t.$attrs):n=x(x({},n),t.props),jl(n)[e?"onEvents":"events"]}function Kp(t,e){var n=(r.isVNode(t)?t.props:t.$attrs)||{},a=n.style||{};if(typeof a=="string")a=_r(a,e);else if(e&&a){var o={};return Object.keys(a).forEach(function(i){return o[Mr(i)]=a[i]}),o}return a}function Wl(t){return t&&(t.type===r.Comment||t.type===r.Fragment&&t.children.length===0||t.type===r.Text&&t.children.trim()==="")}function Rt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,we(n)):(n==null?void 0:n.type)===r.Fragment?e.push.apply(e,we(Rt(n.children))):e.push(n)}),e.filter(function(n){return!Wl(n)})}function vt(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&Re(t.type)!=="symbol"}function ra(t,e){var n,a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=e[o])!==null&&n!==void 0?n:(a=t[o])===null||a===void 0?void 0:a.call(t)}var Ul={};function nt(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(e))}function Gl(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn("Note: ".concat(e))}function Yl(t,e,n){!e&&!Ul[n]&&(t(!1,n),Ul[n]=!0)}function _t(t,e){Yl(nt,t,e)}function ql(t,e){Yl(Gl,t,e)}var Xl=Symbol("TableContextProps"),Lp=function(e){r.provide(Xl,e)},Kt=function(){return r.inject(Xl,{})};function Bp(t,e){if(t==null)return{};var n={},a=Object.keys(t),o,i;for(i=0;i<a.length;i++)o=a[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function We(t,e){if(t==null)return{};var n=Bp(t,e),a,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)a=i[o],!(e.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(n[a]=t[a]))}return n}var jp="RC_TABLE_KEY";function Jl(t){return t==null?[]:Array.isArray(t)?t:[t]}function Ql(t,e){if(!e&&typeof e!="number")return t;for(var n=Jl(e),a=t,o=0;o<n.length;o+=1){if(!a)return null;var i=n[o];a=a[i]}return a}function Da(t){var e=[],n={};return t.forEach(function(a){for(var o=a||{},i=o.key,u=o.dataIndex,l=i||Jl(u).join("-")||jp;n[l];)l="".concat(l,"_next");n[l]=!0,e.push(l)}),e}function zp(){var t={};function e(i,u){u&&Object.keys(u).forEach(function(l){var c=u[l];c&&Re(c)==="object"?(i[l]=i[l]||{},e(i[l],c)):i[l]=c})}for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return a.forEach(function(i){e(t,i)}),t}function Vr(t){return t!=null}var Zl=Symbol("SlotsContextProps"),Hp=function(e){r.provide(Zl,e)},eu=function(){return r.inject(Zl,r.computed(function(){return{}}))},tu=Symbol("ContextProps"),Wp=function(e){r.provide(tu,e)},Up=function(){return r.inject(tu,{onResizeColumn:function(){}})},Rn="RC_TABLE_INTERNAL_COL_DEFINE",nu=Symbol("HoverContextProps"),Gp=function(e){r.provide(nu,e)},Yp=function(){return r.inject(nu,{startRow:r.ref(-1),endRow:r.ref(-1),onHover:function(){}})};function oa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var au=function(e){if(oa()&&window.document.documentElement){var n=Array.isArray(e)?e:[e],a=window.document.documentElement;return n.some(function(o){return o in a.style})}return!1},qp=function(e,n){if(!au(e))return!1;var a=document.createElement("div"),o=a.style[e];return a.style[e]=n,a.style[e]!==o};function Xp(t,e){return!Array.isArray(t)&&e!==void 0?qp(t,e):au(t)}var Dr=r.ref(!1),Jp=function(){r.onMounted(function(){Dr.value=Dr.value||Xp("position","sticky")})},Qp=function(){return Dr};function At(t){var e=r.shallowRef();return r.watchEffect(function(){e.value=t()},{flush:"sync"}),e}var Zp=["colSpan","rowSpan","style","class"];function eh(t,e,n,a){var o=t+e-1;return t<=a&&o>=n}function th(t){return t&&Re(t)==="object"&&!Array.isArray(t)&&!r.isVNode(t)}const Fa=r.defineComponent({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(e,n){var a=n.slots,o=eu(),i=Yp(),u=i.onHover,l=i.startRow,c=i.endRow,d=r.computed(function(){var h,y,b,S;return(h=(y=e.colSpan)!==null&&y!==void 0?y:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&h!==void 0?h:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=r.computed(function(){var h,y,b,S;return(h=(y=e.rowSpan)!==null&&y!==void 0?y:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&h!==void 0?h:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),f=At(function(){var h=e.index;return eh(h,s.value||1,l.value,c.value)}),v=Qp(),p=function(y,b){var S,N=e.record,O=e.index,w=e.additionalProps;N&&u(O,O+b-1),w==null||(S=w.onMouseenter)===null||S===void 0||S.call(w,y)},m=function(y){var b,S=e.record,N=e.additionalProps;S&&u(-1,-1),N==null||(b=N.onMouseleave)===null||b===void 0||b.call(N,y)},g=function h(y){var b=Rt(y)[0];return r.isVNode(b)?b.type===r.Text?b.children:Array.isArray(b.children)?h(b.children):void 0:b};return function(){var h,y,b,S,N,O,w=e.prefixCls,P=e.record,k=e.index,C=e.renderIndex,T=e.dataIndex,M=e.customRender,_=e.component,I=_===void 0?"td":_,E=e.fixLeft,D=e.fixRight,R=e.firstFixLeft,A=e.lastFixLeft,V=e.firstFixRight,B=e.lastFixRight,J=e.appendNode,z=J===void 0?(h=a.appendNode)===null||h===void 0?void 0:h.call(a):J,j=e.additionalProps,K=j===void 0?{}:j,$=e.ellipsis,U=e.align,Q=e.rowType,ee=e.isSticky,he=e.column,re=he===void 0?{}:he,ye=e.cellType,oe="".concat(w,"-cell"),ne,G,pe=(y=a.default)===null||y===void 0?void 0:y.call(a);if(Vr(pe)||ye==="header")G=pe;else{var Ie,Oe=Ql(P,T);if(G=Oe,M){var Pe=M({text:Oe,value:Oe,record:P,index:k,renderIndex:C,column:re.__originColumn__});th(Pe)?(process.env.NODE_ENV!=="production"&&nt(!1,"`columns.customRender` return cell props is deprecated with perf issue, please use `customCell` instead."),G=Pe.children,ne=Pe.props):G=Pe}if(!(Rn in re)&&ye==="body"&&o.value.bodyCell&&!((Ie=re.slots)!==null&&Ie!==void 0&&Ie.customRender)){var Te=r.renderSlot(o.value,"bodyCell",{text:Oe,value:Oe,record:P,index:k,column:re.__originColumn__},function(){var L=G===void 0?Oe:G;return[Re(L)==="object"&&vt(L)||Re(L)!=="object"?L:null]});G=ft(Te)}e.transformCellText&&(G=e.transformCellText({text:G,record:P,index:k,column:re.__originColumn__}))}Re(G)==="object"&&!Array.isArray(G)&&!r.isVNode(G)&&(G=null),$&&(A||V)&&(G=r.createVNode("span",{class:"".concat(oe,"-content")},[G])),Array.isArray(G)&&G.length===1&&(G=G[0]);var Ne=ne||{},ge=Ne.colSpan,ie=Ne.rowSpan,ue=Ne.style,de=Ne.class,be=We(Ne,Zp),xe=(b=ge!==void 0?ge:d.value)!==null&&b!==void 0?b:1,Ke=(S=ie!==void 0?ie:s.value)!==null&&S!==void 0?S:1;if(xe===0||Ke===0)return null;var Le={},me=typeof E=="number"&&v.value,Z=typeof D=="number"&&v.value;me&&(Le.position="sticky",Le.left="".concat(E,"px")),Z&&(Le.position="sticky",Le.right="".concat(D,"px"));var ve={};U&&(ve.textAlign=U);var Se,ae=$===!0?{showTitle:!0}:$;ae&&(ae.showTitle||Q==="header")&&(typeof G=="string"||typeof G=="number"?Se=G.toString():r.isVNode(G)&&(Se=g([G])));var X=x(x(x({title:Se},be),K),{},{colSpan:xe!==1?xe:null,rowSpan:Ke!==1?Ke:null,class:fe(oe,(N={},F(N,"".concat(oe,"-fix-left"),me&&v.value),F(N,"".concat(oe,"-fix-left-first"),R&&v.value),F(N,"".concat(oe,"-fix-left-last"),A&&v.value),F(N,"".concat(oe,"-fix-right"),Z&&v.value),F(N,"".concat(oe,"-fix-right-first"),V&&v.value),F(N,"".concat(oe,"-fix-right-last"),B&&v.value),F(N,"".concat(oe,"-ellipsis"),$),F(N,"".concat(oe,"-with-append"),z),F(N,"".concat(oe,"-fix-sticky"),(me||Z)&&ee&&v.value),F(N,"".concat(oe,"-row-hover"),!ne&&f.value),N),K.class,de),onMouseenter:function(H){p(H,Ke)},onMouseleave:m,style:x(x(x(x({},_r(K.style)),ve),Le),ue)});return r.createVNode(I,X,{default:function(){return[z,G,(O=a.dragHandle)===null||O===void 0?void 0:O.call(a)]}})}}});function Fr(t,e,n,a,o){var i=n[t]||{},u=n[e]||{},l,c;i.fixed==="left"?l=a.left[t]:u.fixed==="right"&&(c=a.right[e]);var d=!1,s=!1,f=!1,v=!1,p=n[e+1],m=n[t-1];if(o==="rtl"){if(l!==void 0){var g=m&&m.fixed==="left";v=!g}else if(c!==void 0){var h=p&&p.fixed==="right";f=!h}}else if(l!==void 0){var y=p&&p.fixed==="left";d=!y}else if(c!==void 0){var b=m&&m.fixed==="right";s=!b}return{fixLeft:l,fixRight:c,lastFixLeft:d,firstFixRight:s,lastFixRight:f,firstFixLeft:v,isSticky:a.isSticky}}var ru=!1;try{var ou=Object.defineProperty({},"passive",{get:function(){ru=!0}});window.addEventListener("testPassive",null,ou),window.removeEventListener("testPassive",null,ou)}catch{}const pt=ru;function Pt(t,e,n,a){if(t&&t.addEventListener){var o=a;o===void 0&&pt&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(o={passive:!1}),t.addEventListener(e,n,o)}return{remove:function(){t&&t.removeEventListener&&t.removeEventListener(e,n)}}}var iu=function(e){return setTimeout(e,16)},lu=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(iu=function(e){return window.requestAnimationFrame(e)},lu=function(e){return window.cancelAnimationFrame(e)});var uu=0,$r=new Map;function cu(t){$r.delete(t)}function ze(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;uu+=1;var n=uu;function a(o){if(o===0)cu(n),t();else{var i=iu(function(){a(o-1)});$r.set(n,i)}}return a(e),n}ze.cancel=function(t){var e=$r.get(t);return cu(e),lu(e)};const at=function(t,e,n){_t(t,"[ant-design-vue: ".concat(e,"] ").concat(n))};var su={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},du=50;const nh=r.defineComponent({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:du},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(e){var n=0,a={remove:function(){}},o={remove:function(){}},i=function(){a.remove(),o.remove()};r.onUnmounted(function(){i()}),r.watchEffect(function(){at(!isNaN(e.width),"Table","width must be a number when use resizable")});var u=Up(),l=u.onResizeColumn,c=r.computed(function(){return typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:du}),d=r.computed(function(){return typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0}),s=r.getCurrentInstance(),f=0,v=r.ref(!1),p,m=function(w){var P=0;w.touches?w.touches.length?P=w.touches[0].pageX:P=w.changedTouches[0].pageX:P=w.pageX;var k=n-P,C=Math.max(f-k,c.value);C=Math.min(C,d.value),ze.cancel(p),p=ze(function(){l(C,e.column.__originColumn__)})},g=function(w){m(w)},h=function(w){v.value=!1,m(w),i()},y=function(w,P){v.value=!0,i(),f=s.vnode.el.parentNode.getBoundingClientRect().width,!(w instanceof MouseEvent&&w.which!==1)&&(w.stopPropagation&&w.stopPropagation(),n=w.touches?w.touches[0].pageX:w.pageX,a=Pt(document.documentElement,P.move,g),o=Pt(document.documentElement,P.stop,h))},b=function(w){w.stopPropagation(),w.preventDefault(),y(w,su.mouse)},S=function(w){w.stopPropagation(),w.preventDefault(),y(w,su.touch)},N=function(w){w.stopPropagation(),w.preventDefault()};return function(){var O=e.prefixCls,w=F({},pt?"onTouchstartPassive":"onTouchstart",function(P){return S(P)});return r.createVNode("div",x(x({class:"".concat(O,"-resize-handle ").concat(v.value?"dragging":""),onMousedown:b},w),{},{onClick:N}),[r.createVNode("div",{class:"".concat(O,"-resize-handle-line")},null)])}}}),ah=r.defineComponent({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(e){var n=Kt();return function(){var a=n.prefixCls,o=n.direction,i=e.cells,u=e.stickyOffsets,l=e.flattenColumns,c=e.rowComponent,d=e.cellComponent,s=e.customHeaderRow,f=e.index,v;s&&(v=s(i.map(function(m){return m.column}),f));var p=Da(i.map(function(m){return m.column}));return r.createVNode(c,v,{default:function(){return[i.map(function(g,h){var y=g.column,b=Fr(g.colStart,g.colEnd,l,u,o),S;y&&y.customHeaderCell&&(S=g.column.customHeaderCell(y));var N=y;return r.createVNode(Fa,x(x(x({},g),{},{cellType:"header",ellipsis:y.ellipsis,align:y.align,component:d,prefixCls:a,key:p[h]},b),{},{additionalProps:S,rowType:"header",column:y}),{default:function(){return y.title},dragHandle:function(){return N.resizable?r.createVNode(nh,{prefixCls:a,width:N.width,minWidth:N.minWidth,maxWidth:N.maxWidth,column:N},null):null}})})]}})}}});function rh(t){var e=[];function n(u,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;e[c]=e[c]||[];var d=l,s=u.filter(Boolean).map(function(f){var v={key:f.key,class:fe(f.className,f.class),column:f,colStart:d},p=1,m=f.children;return m&&m.length>0&&(p=n(m,d,c+1).reduce(function(g,h){return g+h},0),v.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(v.rowSpan=f.rowSpan),v.colSpan=p,v.colEnd=v.colStart+p-1,e[c].push(v),d+=p,p});return s}n(t,0);for(var a=e.length,o=function(l){e[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=a-l)})},i=0;i<a;i+=1)o(i);return e}const fu=r.defineComponent({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup:function(e){var n=Kt(),a=r.computed(function(){return rh(e.columns)});return function(){var o=n.prefixCls,i=n.getComponent,u=e.stickyOffsets,l=e.flattenColumns,c=e.customHeaderRow,d=i(["header","wrapper"],"thead"),s=i(["header","row"],"tr"),f=i(["header","cell"],"th");return r.createVNode(d,{class:"".concat(o,"-thead")},{default:function(){return[a.value.map(function(p,m){var g=r.createVNode(ah,{key:m,flattenColumns:l,cells:p,stickyOffsets:u,rowComponent:s,cellComponent:f,customHeaderRow:c,index:m},null);return g})]}})}}});var vu=Symbol("ExpandedRowProps"),oh=function(e){r.provide(vu,e)},ih=function(){return r.inject(vu,{})};const pu=r.defineComponent({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup:function(e,n){var a=n.slots,o=n.attrs,i=Kt(),u=ih(),l=u.fixHeader,c=u.fixColumn,d=u.componentWidth,s=u.horizonScroll;return function(){var f=e.prefixCls,v=e.component,p=e.cellComponent,m=e.expanded,g=e.colSpan,h=e.isEmpty;return r.createVNode(v,{class:o.class,style:{display:m?null:"none"}},{default:function(){return[r.createVNode(Fa,{component:p,prefixCls:f,colSpan:g},{default:function(){var S,N=(S=a.default)===null||S===void 0?void 0:S.call(a);return(h?s.value:c.value)&&(N=r.createVNode("div",{style:{width:"".concat(d.value-(l.value?i.scrollbarSize:0),"px"),position:"sticky",left:0,overflow:"hidden"},class:"".concat(f,"-expanded-row-fixed")},[N])),N}})]}})}}});var hu=function(){if(typeof Map<"u")return Map;function t(e,n){var a=-1;return e.some(function(o,i){return o[0]===n?(a=i,!0):!1}),a}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var a=t(this.__entries__,n),o=this.__entries__[a];return o&&o[1]},e.prototype.set=function(n,a){var o=t(this.__entries__,n);~o?this.__entries__[o][1]=a:this.__entries__.push([n,a])},e.prototype.delete=function(n){var a=this.__entries__,o=t(a,n);~o&&a.splice(o,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,a){a===void 0&&(a=null);for(var o=0,i=this.__entries__;o<i.length;o++){var u=i[o];n.call(a,u[1],u[0])}},e}()}(),Kr=typeof window<"u"&&typeof document<"u"&&window.document===document,$a=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),lh=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind($a):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),uh=2;function ch(t,e){var n=!1,a=!1,o=0;function i(){n&&(n=!1,t()),a&&l()}function u(){lh(i)}function l(){var c=Date.now();if(n){if(c-o<uh)return;a=!0}else n=!0,a=!1,setTimeout(u,e);o=c}return l}var sh=20,dh=["top","right","bottom","left","width","height","size","weight"],fh=typeof MutationObserver<"u",vh=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ch(this.refresh.bind(this),sh)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,a=n.indexOf(e);~a&&n.splice(a,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Kr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Kr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,a=n===void 0?"":n,o=dh.some(function(i){return!!~a.indexOf(i)});o&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),mu=function(t,e){for(var n=0,a=Object.keys(e);n<a.length;n++){var o=a[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},_n=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||$a},gu=La(0,0,0,0);function Ka(t){return parseFloat(t)||0}function yu(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(a,o){var i=t["border-"+o+"-width"];return a+Ka(i)},0)}function ph(t){for(var e=["top","right","bottom","left"],n={},a=0,o=e;a<o.length;a++){var i=o[a],u=t["padding-"+i];n[i]=Ka(u)}return n}function hh(t){var e=t.getBBox();return La(0,0,e.width,e.height)}function mh(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return gu;var a=_n(t).getComputedStyle(t),o=ph(a),i=o.left+o.right,u=o.top+o.bottom,l=Ka(a.width),c=Ka(a.height);if(a.boxSizing==="border-box"&&(Math.round(l+i)!==e&&(l-=yu(a,"left","right")+i),Math.round(c+u)!==n&&(c-=yu(a,"top","bottom")+u)),!yh(t)){var d=Math.round(l+i)-e,s=Math.round(c+u)-n;Math.abs(d)!==1&&(l-=d),Math.abs(s)!==1&&(c-=s)}return La(o.left,o.top,l,c)}var gh=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof _n(t).SVGGraphicsElement}:function(t){return t instanceof _n(t).SVGElement&&typeof t.getBBox=="function"}}();function yh(t){return t===_n(t).document.documentElement}function bh(t){return Kr?gh(t)?hh(t):mh(t):gu}function Ch(t){var e=t.x,n=t.y,a=t.width,o=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(i.prototype);return mu(u,{x:e,y:n,width:a,height:o,top:n,right:e+a,bottom:o+n,left:e}),u}function La(t,e,n,a){return{x:t,y:e,width:n,height:a}}var xh=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=La(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=bh(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),wh=function(){function t(e,n){var a=Ch(n);mu(this,{target:e,contentRect:a})}return t}(),Sh=function(){function t(e,n,a){if(this.activeObservations_=[],this.observations_=new hu,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=a}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof _n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new xh(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof _n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(e)||(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(!!this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(a){return new wh(a.target,a.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),bu=typeof WeakMap<"u"?new WeakMap:new hu,Cu=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vh.getInstance(),a=new Sh(e,n,this);bu.set(this,a)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Cu.prototype[t]=function(){var e;return(e=bu.get(this))[t].apply(e,arguments)}});var xu=function(){return typeof $a.ResizeObserver<"u"?$a.ResizeObserver:Cu}();const An=r.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,n){var a=n.slots,o=r.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0}),i=null,u=null,l=function(){u&&(u.disconnect(),u=null)},c=function(v){var p=e.onResize,m=v[0].target,g=m.getBoundingClientRect(),h=g.width,y=g.height,b=m.offsetWidth,S=m.offsetHeight,N=Math.floor(h),O=Math.floor(y);if(o.width!==N||o.height!==O||o.offsetWidth!==b||o.offsetHeight!==S){var w={width:N,height:O,offsetWidth:b,offsetHeight:S};Je(o,w),p&&Promise.resolve().then(function(){p(x(x({},w),{},{offsetWidth:b,offsetHeight:S}),m)})}},d=r.getCurrentInstance(),s=function(){var v=e.disabled;if(v){l();return}var p=pn(d),m=p!==i;m&&(l(),i=p),!u&&p&&(u=new xu(c),u.observe(p))};return r.onMounted(function(){s()}),r.onUpdated(function(){s()}),r.onUnmounted(function(){l()}),r.watch(function(){return e.disabled},function(){s()},{flush:"post"}),function(){var f;return(f=a.default)===null||f===void 0?void 0:f.call(a)[0]}}}),Nh=r.defineComponent({name:"MeasureCell",props:["columnKey"],setup:function(e,n){var a=n.emit,o=r.ref();return r.onMounted(function(){o.value&&a("columnResize",e.columnKey,o.value.offsetWidth)}),function(){return r.createVNode(An,{onResize:function(u){var l=u.offsetWidth;a("columnResize",e.columnKey,l)}},{default:function(){return[r.createVNode("td",{ref:o,style:{padding:0,border:0,height:0}},[r.createVNode("div",{style:{height:0,overflow:"hidden"}},[r.createTextVNode("\xA0")])])]}})}}});var wu=Symbol("BodyContextProps"),Oh=function(e){r.provide(wu,e)},Su=function(){return r.inject(wu,{})};const Ph=r.defineComponent({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup:function(e,n){var a=n.attrs,o=Kt(),i=Su(),u=r.ref(!1),l=r.computed(function(){return e.expandedKeys&&e.expandedKeys.has(e.recordKey)});r.watchEffect(function(){l.value&&(u.value=!0)});var c=r.computed(function(){return i.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))}),d=r.computed(function(){return i.expandableType==="nest"}),s=r.computed(function(){return e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]}),f=r.computed(function(){return c.value||d.value}),v=function(b,S){i.onTriggerExpand(b,S)},p=r.computed(function(){var y;return((y=e.customRow)===null||y===void 0?void 0:y.call(e,e.record,e.index))||{}}),m=function(b){var S,N;i.expandRowByClick&&f.value&&v(e.record,b);for(var O=arguments.length,w=new Array(O>1?O-1:0),P=1;P<O;P++)w[P-1]=arguments[P];(S=p.value)===null||S===void 0||(N=S.onClick)===null||N===void 0||N.call.apply(N,[S,b].concat(w))},g=r.computed(function(){var y=e.record,b=e.index,S=e.indent,N=i.rowClassName;return typeof N=="string"?N:typeof N=="function"?N(y,b,S):""}),h=r.computed(function(){return Da(i.flattenColumns)});return function(){var y=a.class,b=a.style,S=e.record,N=e.index,O=e.rowKey,w=e.indent,P=w===void 0?0:w,k=e.rowComponent,C=e.cellComponent,T=o.prefixCls,M=o.fixedInfoList,_=o.transformCellText,I=i.flattenColumns,E=i.expandedRowClassName,D=i.indentSize,R=i.expandIcon,A=i.expandedRowRender,V=i.expandIconColumnIndex,B=r.createVNode(k,x(x({},p.value),{},{"data-row-key":O,class:fe(y,"".concat(T,"-row"),"".concat(T,"-row-level-").concat(P),g.value,p.value.class),style:x(x({},b),_r(p.value.style)),onClick:m}),{default:function(){return[I.map(function($,U){var Q=$.customRender,ee=$.dataIndex,he=$.className,re=h[U],ye=M[U],oe;$.customCell&&(oe=$.customCell(S,N,$));var ne=U===(V||0)&&d.value?r.createVNode(r.Fragment,null,[r.createVNode("span",{style:{paddingLeft:"".concat(D*P,"px")},class:"".concat(T,"-row-indent indent-level-").concat(P)},null),R({prefixCls:T,expanded:l.value,expandable:s.value,record:S,onExpand:v})]):null;return r.createVNode(Fa,x(x({cellType:"body",class:he,ellipsis:$.ellipsis,align:$.align,component:C,prefixCls:T,key:re,record:S,index:N,renderIndex:e.renderIndex,dataIndex:ee,customRender:Q},ye),{},{additionalProps:oe,column:$,transformCellText:_,appendNode:ne}),null)})]}}),J;if(c.value&&(u.value||l.value)){var z=A({record:S,index:N,indent:P+1,expanded:l.value}),j=E&&E(S,N,P);J=r.createVNode(pu,{expanded:l.value,class:fe("".concat(T,"-expanded-row"),"".concat(T,"-expanded-row-level-").concat(P+1),j),prefixCls:T,component:k,cellComponent:C,colSpan:I.length,isEmpty:!1},{default:function(){return[z]}})}return r.createVNode(r.Fragment,null,[B,J])}}});function Nu(t,e,n,a,o,i){var u=[];u.push({record:t,indent:e,index:i});var l=o(t),c=a==null?void 0:a.has(l);if(t&&Array.isArray(t[n])&&c)for(var d=0;d<t[n].length;d+=1){var s=Nu(t[n][d],e+1,n,a,o,d);u.push.apply(u,we(s))}return u}function Th(t,e,n,a){var o=r.computed(function(){var i=e.value,u=n.value,l=t.value;if(u!=null&&u.size){for(var c=[],d=0;d<(l==null?void 0:l.length);d+=1){var s=l[d];c.push.apply(c,we(Nu(s,0,i,u,a.value,d)))}return c}return l==null?void 0:l.map(function(f,v){return{record:f,indent:0,index:v}})});return o}var Ou=Symbol("ResizeContextProps"),Eh=function(e){r.provide(Ou,e)},Ih=function(){return r.inject(Ou,{onColumnResize:function(){}})};const kh=r.defineComponent({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],slots:["emptyNode"],setup:function(e,n){var a=n.slots,o=Ih(),i=Kt(),u=Su(),l=Th(r.toRef(e,"data"),r.toRef(e,"childrenColumnName"),r.toRef(e,"expandedKeys"),r.toRef(e,"getRowKey")),c=r.ref(-1),d=r.ref(-1),s;return Gp({startRow:c,endRow:d,onHover:function(v,p){clearTimeout(s),s=setTimeout(function(){c.value=v,d.value=p},100)}}),function(){var f=e.data,v=e.getRowKey,p=e.measureColumnWidth,m=e.expandedKeys,g=e.customRow,h=e.rowExpandable,y=e.childrenColumnName,b=o.onColumnResize,S=i.prefixCls,N=i.getComponent,O=u.flattenColumns,w=N(["body","wrapper"],"tbody"),P=N(["body","row"],"tr"),k=N(["body","cell"],"td"),C;if(f.length)C=l.value.map(function(_,I){var E=_.record,D=_.indent,R=_.index,A=v(E,I);return r.createVNode(Ph,{key:A,rowKey:A,record:E,recordKey:A,index:I,renderIndex:R,rowComponent:P,cellComponent:k,expandedKeys:m,customRow:g,getRowKey:v,rowExpandable:h,childrenColumnName:y,indent:D},null)});else{var T;C=r.createVNode(pu,{expanded:!0,class:"".concat(S,"-placeholder"),prefixCls:S,component:P,cellComponent:k,colSpan:O.length,isEmpty:!0},{default:function(){return[(T=a.emptyNode)===null||T===void 0?void 0:T.call(a)]}})}var M=Da(O);return r.createVNode(w,{class:"".concat(S,"-tbody")},{default:function(){return[p&&r.createVNode("tr",{"aria-hidden":"true",class:"".concat(S,"-measure-row"),style:{height:0,fontSize:0}},[M.map(function(I){return r.createVNode(Nh,{key:I,columnKey:I,onColumnResize:b},null)})]),C]}})}}});var Lt={},Mh=["fixed"];function Lr(t){return t.reduce(function(e,n){var a=n.fixed,o=a===!0?"left":a,i=n.children;return i&&i.length>0?[].concat(we(e),we(Lr(i).map(function(u){return x({fixed:o},u)}))):[].concat(we(e),[x(x({},n),{},{fixed:o})])},[])}function Rh(t){for(var e=!0,n=0;n<t.length;n+=1){var a=t[n];if(e&&a.fixed!=="left")e=!1;else if(!e&&a.fixed==="left"){nt(!1,"Index ".concat(n-1," of `columns` missing `fixed='left'` prop."));break}}for(var o=!0,i=t.length-1;i>=0;i-=1){var u=t[i];if(o&&u.fixed!=="right")o=!1;else if(!o&&u.fixed==="right"){nt(!1,"Index ".concat(i+1," of `columns` missing `fixed='right'` prop."));break}}}function _h(t){return t.map(function(e){var n=e.fixed,a=We(e,Mh),o=n;return n==="left"?o="right":n==="right"&&(o="left"),x({fixed:o},a)})}function Ah(t,e){var n=t.prefixCls,a=t.columns,o=t.expandable,i=t.expandedKeys,u=t.getRowKey,l=t.onTriggerExpand,c=t.expandIcon,d=t.rowExpandable,s=t.expandIconColumnIndex,f=t.direction,v=t.expandRowByClick,p=t.expandColumnWidth,m=t.expandFixed,g=r.computed(function(){if(o.value){var b,S=a.value.slice();if(process.env.NODE_ENV!=="production"&&s.value>=0&&nt(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!S.includes(Lt)){var N=s.value||0;N>=0&&S.splice(N,0,Lt)}process.env.NODE_ENV!=="production"&&S.filter(function(E){return E===Lt}).length>1&&nt(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var O=S.indexOf(Lt);S=S.filter(function(E,D){return E!==Lt||D===O});var w=a.value[O],P;(m.value==="left"||m.value)&&!s.value?P="left":(m.value==="right"||m.value)&&s.value===a.value.length?P="right":P=w?w.fixed:null;var k=i.value,C=d.value,T=c.value,M=n.value,_=v.value,I=(b={},F(b,Rn,{class:"".concat(n.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),F(b,"title",""),F(b,"fixed",P),F(b,"class","".concat(n.value,"-row-expand-icon-cell")),F(b,"width",p.value),F(b,"customRender",function(D){var R=D.record,A=D.index,V=u.value(R,A),B=k.has(V),J=C?C(R):!0,z=T({prefixCls:M,expanded:B,expandable:J,record:R,onExpand:l});return _?r.createVNode("span",{onClick:function(K){return K.stopPropagation()}},[z]):z}),b);return S.map(function(E){return E===Lt?I:E})}return process.env.NODE_ENV!=="production"&&a.value.includes(Lt)&&nt(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),a.value.filter(function(E){return E!==Lt})}),h=r.computed(function(){var b=g.value;return e.value&&(b=e.value(b)),b.length||(b=[{customRender:function(){return null}}]),b}),y=r.computed(function(){return f.value==="rtl"?_h(Lr(h.value)):Lr(h.value)});return process.env.NODE_ENV!=="production"&&r.watchEffect(function(){setTimeout(function(){Rh(y.value)})}),[h,y]}function Pu(t){var e=r.shallowRef(t),n,a=r.shallowRef([]);function o(i){a.value.push(i),ze.cancel(n),n=ze(function(){var u=a.value;a.value=[],u.forEach(function(l){e.value=l(e.value)})})}return r.onBeforeUnmount(function(){ze.cancel(n)}),[e,o]}function Vh(t){var e=r.ref(t||null),n=r.ref();function a(){clearTimeout(n.value)}function o(u){e.value=u,a(),n.value=setTimeout(function(){e.value=null,n.value=void 0},100)}function i(){return e.value}return r.onBeforeUnmount(function(){a()}),[o,i]}function Dh(t,e,n){var a=r.computed(function(){for(var o=[],i=[],u=0,l=0,c=t.value,d=e.value,s=n.value,f=0;f<d;f+=1)if(s==="rtl"){i[f]=l,l+=c[f]||0;var v=d-f-1;o[v]=u,u+=c[v]||0}else{o[f]=u,u+=c[f]||0;var p=d-f-1;i[p]=l,l+=c[p]||0}return{left:o,right:i}});return a}var Fh=["columnType"];function Tu(t){for(var e=t.colWidths,n=t.columns,a=t.columCount,o=[],i=a||n.length,u=!1,l=i-1;l>=0;l-=1){var c=e[l],d=n&&n[l],s=d&&d[Rn];if(c||s||u){var f=s||{};f.columnType;var v=We(f,Fh);o.unshift(r.createVNode("col",x({key:l,style:{width:typeof c=="number"?"".concat(c,"px"):c}},v),null)),u=!0}}return r.createVNode("colgroup",null,[o])}function Br(t,e){var n,a=e.slots;return r.createVNode("div",null,[(n=a.default)===null||n===void 0?void 0:n.call(a)])}Br.displayName="Panel";var $h=0,Kh=r.defineComponent({name:"Summary",props:["fixed"],setup:function(e,n){var a=n.slots,o=Kt(),i="table-summary-uni-key-".concat(++$h),u=r.computed(function(){return e.fixed===""||e.fixed});return r.watchEffect(function(){o.summaryCollect(i,u.value)}),r.onBeforeUnmount(function(){o.summaryCollect(i,!1)}),function(){var l;return(l=a.default)===null||l===void 0?void 0:l.call(a)}}});const Lh=Kh,Bh=r.defineComponent({compatConfig:{MODE:3},name:"FooterRow",setup:function(e,n){var a=n.slots;return function(){var o;return r.createVNode("tr",null,[(o=a.default)===null||o===void 0?void 0:o.call(a)])}}});var Eu=Symbol("SummaryContextProps"),jh=function(e){r.provide(Eu,e)},zh=function(){return r.inject(Eu,{})};const Hh=r.defineComponent({name:"SummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(e,n){var a=n.attrs,o=n.slots,i=Kt(),u=zh();return function(){var l=e.index,c=e.colSpan,d=c===void 0?1:c,s=e.rowSpan,f=e.align,v=i.prefixCls,p=i.direction,m=u.scrollColumnIndex,g=u.stickyOffsets,h=u.flattenColumns,y=l+d-1,b=y+1===m?d+1:d,S=Fr(l,l+b-1,h,g,p);return r.createVNode(Fa,x({class:a.class,index:l,component:"td",prefixCls:v,record:null,dataIndex:null,align:f,colSpan:b,rowSpan:s,customRender:function(){var O;return(O=o.default)===null||O===void 0?void 0:O.call(o)}},S),null)}}}),Ba=r.defineComponent({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(e,n){var a=n.slots,o=Kt();return jh(r.reactive({stickyOffsets:r.toRef(e,"stickyOffsets"),flattenColumns:r.toRef(e,"flattenColumns"),scrollColumnIndex:r.computed(function(){var i=e.flattenColumns.length-1,u=e.flattenColumns[i];return u!=null&&u.scrollbar?i:null})})),function(){var i,u=o.prefixCls;return r.createVNode("tfoot",{class:"".concat(u,"-summary")},[(i=a.default)===null||i===void 0?void 0:i.call(a)])}}});var Wh=Lh;function Uh(t){var e,n=t.prefixCls,a=t.record,o=t.onExpand,i=t.expanded,u=t.expandable,l="".concat(n,"-row-expand-icon");if(!u)return r.createVNode("span",{class:[l,"".concat(n,"-row-spaced")]},null);var c=function(s){o(a,s),s.stopPropagation()};return r.createVNode("span",{class:(e={},F(e,l,!0),F(e,"".concat(n,"-row-expanded"),i),F(e,"".concat(n,"-row-collapsed"),!i),e),onClick:c},null)}function Gh(t,e,n){var a=[];function o(i){(i||[]).forEach(function(u,l){a.push(e(u,l)),o(u[n])})}return o(t),a}function Iu(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var jr;function zr(t){if(typeof document>"u")return 0;if(t||jr===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var o=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),jr=o-i}return jr}function ku(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?zr():n}function Yh(t){if(typeof document>"u"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,a=e.height;return{width:ku(n),height:ku(a)}}const qh=r.defineComponent({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(e,n){var a=n.emit,o=n.expose,i=Kt(),u=r.ref(0),l=r.ref(0),c=r.ref(0);r.watchEffect(function(){u.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,c.value=u.value&&l.value*(l.value/u.value)},{flush:"post"});var d=r.ref(),s=Pu({scrollLeft:0,isHiddenScrollBar:!0}),f=Me(s,2),v=f[0],p=f[1],m=r.ref({delta:0,x:0}),g=r.ref(!1),h=function(){g.value=!1},y=function(M){m.value={delta:M.pageX-v.value.scrollLeft,x:0},g.value=!0,M.preventDefault()},b=function(M){var _,I=M||((_=window)===null||_===void 0?void 0:_.event),E=I.buttons;if(!g.value||E===0){g.value&&(g.value=!1);return}var D=m.value.x+M.pageX-m.value.x-m.value.delta;D<=0&&(D=0),D+c.value>=l.value&&(D=l.value-c.value),a("scroll",{scrollLeft:D/l.value*(u.value+2)}),m.value.x=M.pageX},S=function(){if(!!e.scrollBodyRef.value){var M=Iu(e.scrollBodyRef.value).top,_=M+e.scrollBodyRef.value.offsetHeight,I=e.container===window?document.documentElement.scrollTop+window.innerHeight:Iu(e.container).top+e.container.clientHeight;_-zr()<=I||M>=I-e.offsetScroll?p(function(E){return x(x({},E),{},{isHiddenScrollBar:!0})}):p(function(E){return x(x({},E),{},{isHiddenScrollBar:!1})})}},N=function(M){p(function(_){return x(x({},_),{},{scrollLeft:M/u.value*l.value||0})})};o({setScrollLeft:N});var O=null,w=null,P=null,k=null;r.onMounted(function(){O=Pt(document.body,"mouseup",h,!1),w=Pt(document.body,"mousemove",b,!1),P=Pt(window,"resize",S,!1)}),r.onActivated(function(){r.nextTick(function(){S()})}),r.onMounted(function(){setTimeout(function(){r.watch([c,g],function(){S()},{immediate:!0,flush:"post"})})}),r.watch(function(){return e.container},function(){var T;(T=k)===null||T===void 0||T.remove(),k=Pt(e.container,"scroll",S,!1)},{immediate:!0,flush:"post"}),r.onBeforeUnmount(function(){var T,M,_,I;(T=O)===null||T===void 0||T.remove(),(M=w)===null||M===void 0||M.remove(),(_=k)===null||_===void 0||_.remove(),(I=P)===null||I===void 0||I.remove()}),r.watch(function(){return x({},v.value)},function(T,M){T.isHiddenScrollBar!==(M==null?void 0:M.isHiddenScrollBar)&&!T.isHiddenScrollBar&&p(function(_){var I=e.scrollBodyRef.value;return I?x(x({},_),{},{scrollLeft:I.scrollLeft/I.scrollWidth*I.clientWidth}):_})},{immediate:!0});var C=zr();return function(){if(u.value<=l.value||!c.value||v.value.isHiddenScrollBar)return null;var T=i.prefixCls;return r.createVNode("div",{style:{height:"".concat(C,"px"),width:"".concat(l.value,"px"),bottom:"".concat(e.offsetScroll,"px")},class:"".concat(T,"-sticky-scroll")},[r.createVNode("div",{onMousedown:y,ref:d,class:fe("".concat(T,"-sticky-scroll-bar"),F({},"".concat(T,"-sticky-scroll-bar-active"),g)),style:{width:"".concat(c.value,"px"),transform:"translate3d(".concat(v.value.scrollLeft,"px, 0, 0)")}},null)])}}});var Mu=oa()?window:null;function Xh(t,e){return r.computed(function(){var n=Re(t.value)==="object"?t.value:{},a=n.offsetHeader,o=a===void 0?0:a,i=n.offsetSummary,u=i===void 0?0:i,l=n.offsetScroll,c=l===void 0?0:l,d=n.getContainer,s=d===void 0?function(){return Mu}:d,f=s()||Mu,v=!!t.value;return{isSticky:v,stickyClassName:v?"".concat(e.value,"-sticky-holder"):"",offsetHeader:o,offsetSummary:u,offsetScroll:c,container:f}})}function Jh(t,e){return r.computed(function(){for(var n=[],a=t.value,o=e.value,i=0;i<o;i+=1){var u=a[i];if(u!==void 0)n[i]=u;else return null}return n})}const Ru=r.defineComponent({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup:function(e,n){var a=n.attrs,o=n.slots,i=n.emit,u=Kt(),l=r.computed(function(){return u.isSticky&&!e.fixHeader?0:u.scrollbarSize}),c=r.ref(),d=function(y){var b=y.currentTarget,S=y.deltaX;S&&(i("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+S}),y.preventDefault())},s=r.ref();r.onMounted(function(){r.nextTick(function(){s.value=Pt(c.value,"wheel",d)})}),r.onBeforeUnmount(function(){var h;(h=s.value)===null||h===void 0||h.remove()});var f=r.computed(function(){return e.flattenColumns.every(function(h){return h.width&&h.width!==0&&h.width!=="0px"})}),v=r.ref([]),p=r.ref([]);r.watchEffect(function(){var h=e.flattenColumns[e.flattenColumns.length-1],y={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:function(){return{class:"".concat(u.prefixCls,"-cell-scrollbar")}}};v.value=l.value?[].concat(we(e.columns),[y]):e.columns,p.value=l.value?[].concat(we(e.flattenColumns),[y]):e.flattenColumns});var m=r.computed(function(){var h=e.stickyOffsets,y=e.direction,b=h.right,S=h.left;return x(x({},h),{},{left:y==="rtl"?[].concat(we(S.map(function(N){return N+l.value})),[0]):S,right:y==="rtl"?b:[].concat(we(b.map(function(N){return N+l.value})),[0]),isSticky:u.isSticky})}),g=Jh(r.toRef(e,"colWidths"),r.toRef(e,"columCount"));return function(){var h,y=e.noData,b=e.columCount,S=e.stickyTopOffset,N=e.stickyBottomOffset,O=e.stickyClassName,w=e.maxContentScroll,P=u.isSticky;return r.createVNode("div",{style:x({overflow:"hidden"},P?{top:"".concat(S,"px"),bottom:"".concat(N,"px")}:{}),ref:c,class:fe(a.class,F({},O,!!O))},[r.createVNode("table",{style:{tableLayout:"fixed",visibility:y||g.value?null:"hidden"}},[(!y||!w||f.value)&&r.createVNode(Tu,{colWidths:g.value?[].concat(we(g.value),[l.value]):[],columCount:b+1,columns:p.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,x(x({},e),{},{stickyOffsets:m.value,columns:v.value,flattenColumns:p.value}))])])}}});function Qh(t){for(var e=-1,n=t==null?0:t.length,a={};++e<n;){var o=t[e];a[o[0]]=o[1]}return a}function _u(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return r.reactive(Qh(n.map(function(o){return[o,r.toRef(t,o)]})))}function Wt(t){var e=typeof t=="function"?t():t,n=r.ref(e);function a(o){n.value=o}return[n,a]}const Au=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};var Zh=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
4
4
|
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -28,11 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@vueuse/core": "^6.8.0",
|
|
31
|
-
"@gx-design-vue/pro-utils": "^0.0.
|
|
32
|
-
"@gx-design-vue/pro-hooks": "^0.0.
|
|
31
|
+
"@gx-design-vue/pro-utils": "^0.0.34",
|
|
32
|
+
"@gx-design-vue/pro-hooks": "^0.0.12",
|
|
33
33
|
"ant-design-vue": "^3.2.15",
|
|
34
34
|
"dayjs": "^1.11.0",
|
|
35
|
-
"lodash-unified": "^1.0.3",
|
|
36
35
|
"lodash-es": "^4.17.21",
|
|
37
36
|
"vue": "^3.0.0",
|
|
38
37
|
"vue-types": "^4.1.1"
|