@gx-design-vue/pro-table 0.2.0-alpha.11 → 0.2.0-alpha.12
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.js +12 -16
- package/dist/components/ScrollBar/Thumb.js +1 -1
- package/dist/components/SearchForm/FormItemWrapper.d.ts +1 -1
- package/dist/components/SearchForm/SearchForm.d.ts +2 -2
- package/dist/components/Toolbar/ListToolBar.d.ts +8 -8
- package/dist/components/Toolbar/index.d.ts +5 -5
- package/dist/pro-table.esm.js +487 -492
- package/dist/pro-table.js +1 -1
- package/package.json +5 -6
package/dist/pro-table.esm.js
CHANGED
|
@@ -1,49 +1,48 @@
|
|
|
1
1
|
import { Comment as e, Fragment as t, Teleport as n, Text as r, computed as i, createVNode as a, defineComponent as o, getCurrentInstance as s, getCurrentScope as c, h as l, hasInjectionContext as u, inject as d, isRef as f, isVNode as p, mergeDefaults as m, mergeProps as h, nextTick as g, onActivated as _, onBeforeUnmount as v, onDeactivated as y, onMounted as b, onScopeDispose as x, onUnmounted as S, provide as C, reactive as w, ref as T, shallowRef as E, toRaw as D, toRef as ee, toValue as O, unref as te, watch as k, watchEffect as A } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { Button as
|
|
4
|
-
import { useBaseConfig as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { DownOutlined as he, FullscreenExitOutlined as ge, FullscreenOutlined as _e, InfoCircleOutlined as ve, ReloadOutlined as ye, UpOutlined as be } from "@antdv-next/icons";
|
|
2
|
+
import { proGenStyleHooks as j, unit as M, useProConfigContext as ne } from "@gx-design-vue/pro-provider";
|
|
3
|
+
import { Button as re, Cascader as ie, DatePicker as N, Input as P, InputNumber as ae, Pagination as oe, Select as F, SpaceCompact as se, Spin as ce, Table as I, TimePicker as le, Tooltip as L, TreeSelect as ue } from "antdv-next";
|
|
4
|
+
import { useBaseConfig as de } from "antdv-next/config-provider/context";
|
|
5
|
+
import fe from "antdv-next/config-provider/hooks/useCSSVarCls";
|
|
6
|
+
import { DownOutlined as pe, FullscreenExitOutlined as me, FullscreenOutlined as he, InfoCircleOutlined as ge, ReloadOutlined as _e, UpOutlined as ve } from "@antdv-next/icons";
|
|
8
7
|
//#region \0rolldown/runtime.js
|
|
9
|
-
var
|
|
10
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
8
|
+
var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Se = Object.getOwnPropertyNames, Ce = Object.getPrototypeOf, we = Object.prototype.hasOwnProperty, Te = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Ee = (e, t, n, r) => {
|
|
9
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Se(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !we.call(e, s) && s !== n && be(e, s, {
|
|
11
10
|
get: ((e) => t[e]).bind(null, s),
|
|
12
|
-
enumerable: !(r =
|
|
11
|
+
enumerable: !(r = xe(t, s)) || r.enumerable
|
|
13
12
|
});
|
|
14
13
|
return e;
|
|
15
|
-
},
|
|
14
|
+
}, De = (e, t, n) => (n = e == null ? {} : ye(Ce(e)), Ee(t || !e || !e.__esModule ? be(n, "default", {
|
|
16
15
|
value: e,
|
|
17
16
|
enumerable: !0
|
|
18
17
|
}) : n, e));
|
|
19
18
|
//#endregion
|
|
20
19
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.27_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
21
|
-
function
|
|
20
|
+
function Oe(e, t) {
|
|
22
21
|
return c() ? (x(e, t), !0) : !1;
|
|
23
22
|
}
|
|
24
|
-
var
|
|
23
|
+
var R = /* @__PURE__ */ new WeakMap(), z = (...e) => {
|
|
25
24
|
let t = e[0], n = s()?.proxy ?? c();
|
|
26
25
|
if (n == null && !u()) throw Error("injectLocal must be called in setup");
|
|
27
|
-
return n &&
|
|
26
|
+
return n && R.has(n) && t in R.get(n) ? R.get(n)[t] : d(...e);
|
|
28
27
|
};
|
|
29
|
-
function
|
|
28
|
+
function ke(e, t) {
|
|
30
29
|
let n = s()?.proxy ?? c();
|
|
31
30
|
if (n == null) throw Error("provideLocal must be called in setup");
|
|
32
|
-
|
|
33
|
-
let r =
|
|
31
|
+
R.has(n) || R.set(n, Object.create(null));
|
|
32
|
+
let r = R.get(n);
|
|
34
33
|
return r[e] = t, C(e, t);
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function Ae(e, t) {
|
|
37
36
|
let n = t?.injectionKey || Symbol(e.name || "InjectionState"), r = t?.defaultValue;
|
|
38
37
|
return [(...t) => {
|
|
39
38
|
let r = e(...t);
|
|
40
|
-
return
|
|
41
|
-
}, () =>
|
|
39
|
+
return ke(n, r), r;
|
|
40
|
+
}, () => z(n, r)];
|
|
42
41
|
}
|
|
43
|
-
var
|
|
42
|
+
var B = typeof window < "u" && typeof document < "u";
|
|
44
43
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
45
|
-
var
|
|
46
|
-
function
|
|
44
|
+
var je = (e) => e != null, Me = Object.prototype.toString, Ne = (e) => Me.call(e) === "[object Object]", V = () => {};
|
|
45
|
+
function Pe(e, t) {
|
|
47
46
|
function n(...n) {
|
|
48
47
|
return new Promise((r, i) => {
|
|
49
48
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -55,9 +54,9 @@ function Ie(e, t) {
|
|
|
55
54
|
}
|
|
56
55
|
return n;
|
|
57
56
|
}
|
|
58
|
-
function
|
|
59
|
-
let n, r, i =
|
|
60
|
-
clearTimeout(e), i(), i =
|
|
57
|
+
function Fe(e, t = {}) {
|
|
58
|
+
let n, r, i = V, a = (e) => {
|
|
59
|
+
clearTimeout(e), i(), i = V;
|
|
61
60
|
}, o;
|
|
62
61
|
return (s) => {
|
|
63
62
|
let c = O(e), l = O(t.maxWait);
|
|
@@ -70,11 +69,11 @@ function Le(e, t = {}) {
|
|
|
70
69
|
});
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
|
-
function
|
|
74
|
-
let t = 0, n, r = !0, i =
|
|
72
|
+
function Ie(...e) {
|
|
73
|
+
let t = 0, n, r = !0, i = V, a, o, s, c, l;
|
|
75
74
|
!f(e[0]) && typeof e[0] == "object" ? {delay: o, trailing: s = !0, leading: c = !0, rejectOnCancel: l = !1} = e[0] : [o, s = !0, c = !0, l = !1] = e;
|
|
76
75
|
let u = () => {
|
|
77
|
-
n && (clearTimeout(n), n = void 0, i(), i =
|
|
76
|
+
n && (clearTimeout(n), n = void 0, i(), i = V);
|
|
78
77
|
};
|
|
79
78
|
return (e) => {
|
|
80
79
|
let d = O(o), f = Date.now() - t, p = () => a = e();
|
|
@@ -85,25 +84,25 @@ function Re(...e) {
|
|
|
85
84
|
})), !c && !n && (n = setTimeout(() => r = !0, d)), r = !1, a);
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
|
-
function
|
|
87
|
+
function Le(e, t) {
|
|
89
88
|
if (typeof e == "number") return e + t;
|
|
90
89
|
let n = e.match(/^-?\d+\.?\d*/)?.[0] || "", r = e.slice(n.length), i = Number.parseFloat(n) + t;
|
|
91
90
|
return Number.isNaN(i) ? e : i + r;
|
|
92
91
|
}
|
|
93
|
-
function
|
|
92
|
+
function Re(e) {
|
|
94
93
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function ze(e) {
|
|
97
96
|
return Array.isArray(e) ? e : [e];
|
|
98
97
|
}
|
|
99
98
|
function Be(e) {
|
|
100
99
|
return e || s();
|
|
101
100
|
}
|
|
102
101
|
function Ve(e, t = 200, n = {}) {
|
|
103
|
-
return
|
|
102
|
+
return Pe(Fe(t, n), e);
|
|
104
103
|
}
|
|
105
104
|
function He(e, t = 200, n = !1, r = !0, i = !1) {
|
|
106
|
-
return Ie(
|
|
105
|
+
return Pe(Ie(t, n, r, i), e);
|
|
107
106
|
}
|
|
108
107
|
function H(e, t = !0, n) {
|
|
109
108
|
Be(n) ? b(e, n) : t ? e() : g(e);
|
|
@@ -116,25 +115,25 @@ function Ue(e, t, n) {
|
|
|
116
115
|
}
|
|
117
116
|
//#endregion
|
|
118
117
|
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.27_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
119
|
-
var U =
|
|
120
|
-
|
|
118
|
+
var U = B ? window : void 0, We = B ? window.document : void 0;
|
|
119
|
+
B && window.navigator, B && window.location;
|
|
121
120
|
function W(e) {
|
|
122
121
|
let t = O(e);
|
|
123
122
|
return t?.$el ?? t;
|
|
124
123
|
}
|
|
125
124
|
function G(...e) {
|
|
126
125
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = i(() => {
|
|
127
|
-
let t =
|
|
126
|
+
let t = ze(O(e[0])).filter((e) => e != null);
|
|
128
127
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
129
128
|
});
|
|
130
129
|
return Ue(() => [
|
|
131
130
|
n.value?.map((e) => W(e)) ?? [U].filter((e) => e != null),
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
ze(O(n.value ? e[1] : e[0])),
|
|
132
|
+
ze(te(n.value ? e[2] : e[1])),
|
|
134
133
|
O(n.value ? e[3] : e[2])
|
|
135
134
|
], ([e, n, r, i], a, o) => {
|
|
136
135
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
137
|
-
let s =
|
|
136
|
+
let s = Ne(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
138
137
|
o(() => {
|
|
139
138
|
c.forEach((e) => e());
|
|
140
139
|
});
|
|
@@ -155,7 +154,7 @@ function qe(e, t, n = {}) {
|
|
|
155
154
|
let { window: r = U, ...a } = n, o, s = /* @__PURE__ */ Ke(() => r && "MutationObserver" in r), c = () => {
|
|
156
155
|
o &&= (o.disconnect(), void 0);
|
|
157
156
|
}, l = k(i(() => {
|
|
158
|
-
let t =
|
|
157
|
+
let t = ze(O(e)).map(W).filter(je);
|
|
159
158
|
return new Set(t);
|
|
160
159
|
}), (e) => {
|
|
161
160
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -165,7 +164,7 @@ function qe(e, t, n = {}) {
|
|
|
165
164
|
}), u = () => o?.takeRecords(), d = () => {
|
|
166
165
|
l(), c();
|
|
167
166
|
};
|
|
168
|
-
return
|
|
167
|
+
return Oe(d), {
|
|
169
168
|
isSupported: s,
|
|
170
169
|
stop: d,
|
|
171
170
|
takeRecords: u
|
|
@@ -174,16 +173,16 @@ function qe(e, t, n = {}) {
|
|
|
174
173
|
var Je = Symbol("vueuse-ssr-width");
|
|
175
174
|
/* @__NO_SIDE_EFFECTS__ */
|
|
176
175
|
function Ye() {
|
|
177
|
-
let e = u() ?
|
|
176
|
+
let e = u() ? z(Je, null) : null;
|
|
178
177
|
return typeof e == "number" ? e : void 0;
|
|
179
178
|
}
|
|
180
|
-
function
|
|
179
|
+
function Xe(e, t = {}) {
|
|
181
180
|
let { window: n = U, ssrWidth: r = /* @__PURE__ */ Ye() } = t, a = /* @__PURE__ */ Ke(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = E(typeof r == "number"), s = E(), c = E(!1);
|
|
182
181
|
return A(() => {
|
|
183
182
|
if (o.value) {
|
|
184
183
|
o.value = !a.value, c.value = O(e).split(",").some((e) => {
|
|
185
184
|
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
186
|
-
return n && a && (a = r >=
|
|
185
|
+
return n && a && (a = r >= Re(n[1])), i && a && (a = r <= Re(i[1])), t ? !a : a;
|
|
187
186
|
});
|
|
188
187
|
return;
|
|
189
188
|
}
|
|
@@ -192,17 +191,17 @@ function K(e, t = {}) {
|
|
|
192
191
|
c.value = e.matches;
|
|
193
192
|
}, { passive: !0 }), i(() => c.value);
|
|
194
193
|
}
|
|
195
|
-
function
|
|
194
|
+
function Ze(e, t = {}) {
|
|
196
195
|
function n(t, n) {
|
|
197
196
|
let r = O(e[O(t)]);
|
|
198
|
-
return n != null && (r =
|
|
197
|
+
return n != null && (r = Le(r, n)), typeof r == "number" && (r = `${r}px`), r;
|
|
199
198
|
}
|
|
200
199
|
let { window: r = U, strategy: a = "min-width", ssrWidth: o = /* @__PURE__ */ Ye() } = t, s = typeof o == "number", c = s ? E(!1) : { value: !0 };
|
|
201
200
|
s && H(() => c.value = !!r);
|
|
202
201
|
function l(e, t) {
|
|
203
|
-
return !c.value && s ? e === "min" ? o >=
|
|
202
|
+
return !c.value && s ? e === "min" ? o >= Re(t) : o <= Re(t) : r ? r.matchMedia(`(${e}-width: ${t})`).matches : !1;
|
|
204
203
|
}
|
|
205
|
-
let u = (e) =>
|
|
204
|
+
let u = (e) => Xe(() => `(min-width: ${n(e)})`, t), d = (e) => Xe(() => `(max-width: ${n(e)})`, t), f = Object.keys(e).reduce((e, t) => (Object.defineProperty(e, t, {
|
|
206
205
|
get: () => a === "min-width" ? u(t) : d(t),
|
|
207
206
|
enumerable: !0,
|
|
208
207
|
configurable: !0
|
|
@@ -211,7 +210,7 @@ function Xe(e, t = {}) {
|
|
|
211
210
|
let t = Object.keys(e).map((e) => [
|
|
212
211
|
e,
|
|
213
212
|
f[e],
|
|
214
|
-
|
|
213
|
+
Re(n(e))
|
|
215
214
|
]).sort((e, t) => e[2] - t[2]);
|
|
216
215
|
return i(() => t.filter(([, e]) => e.value).map(([e]) => e));
|
|
217
216
|
}
|
|
@@ -219,13 +218,13 @@ function Xe(e, t = {}) {
|
|
|
219
218
|
greaterOrEqual: u,
|
|
220
219
|
smallerOrEqual: d,
|
|
221
220
|
greater(e) {
|
|
222
|
-
return
|
|
221
|
+
return Xe(() => `(min-width: ${n(e, .1)})`, t);
|
|
223
222
|
},
|
|
224
223
|
smaller(e) {
|
|
225
|
-
return
|
|
224
|
+
return Xe(() => `(max-width: ${n(e, -.1)})`, t);
|
|
226
225
|
},
|
|
227
226
|
between(e, r) {
|
|
228
|
-
return
|
|
227
|
+
return Xe(() => `(min-width: ${n(e)}) and (max-width: ${n(r, -.1)})`, t);
|
|
229
228
|
},
|
|
230
229
|
isGreater(e) {
|
|
231
230
|
return l("min", n(e, .1));
|
|
@@ -249,7 +248,7 @@ function Xe(e, t = {}) {
|
|
|
249
248
|
}
|
|
250
249
|
});
|
|
251
250
|
}
|
|
252
|
-
function
|
|
251
|
+
function Qe(e, t, n = {}) {
|
|
253
252
|
let { window: r = U, ...a } = n, o, s = /* @__PURE__ */ Ke(() => r && "ResizeObserver" in r), c = () => {
|
|
254
253
|
o &&= (o.disconnect(), void 0);
|
|
255
254
|
}, l = k(i(() => {
|
|
@@ -266,19 +265,19 @@ function Ze(e, t, n = {}) {
|
|
|
266
265
|
}), u = () => {
|
|
267
266
|
c(), l();
|
|
268
267
|
};
|
|
269
|
-
return
|
|
268
|
+
return Oe(u), {
|
|
270
269
|
isSupported: s,
|
|
271
270
|
stop: u
|
|
272
271
|
};
|
|
273
272
|
}
|
|
274
|
-
function
|
|
273
|
+
function $e(e, t = {
|
|
275
274
|
width: 0,
|
|
276
275
|
height: 0
|
|
277
276
|
}, n = {}) {
|
|
278
277
|
let { window: r = U, box: a = "content-box" } = n, o = i(() => {
|
|
279
278
|
var t;
|
|
280
279
|
return (t = W(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
281
|
-
}), s = E(t.width), c = E(t.height), { stop: l } =
|
|
280
|
+
}), s = E(t.width), c = E(t.height), { stop: l } = Qe(e, ([t]) => {
|
|
282
281
|
let n = a === "border-box" ? t.borderBoxSize : a === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
283
282
|
if (r && o.value) {
|
|
284
283
|
let t = W(e);
|
|
@@ -287,7 +286,7 @@ function Qe(e, t = {
|
|
|
287
286
|
s.value = e.width, c.value = e.height;
|
|
288
287
|
}
|
|
289
288
|
} else if (n) {
|
|
290
|
-
let e =
|
|
289
|
+
let e = ze(n);
|
|
291
290
|
s.value = e.reduce((e, { inlineSize: t }) => e + t, 0), c.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
292
291
|
} else s.value = t.contentRect.width, c.value = t.contentRect.height;
|
|
293
292
|
}, n);
|
|
@@ -307,14 +306,14 @@ function Qe(e, t = {
|
|
|
307
306
|
stop: d
|
|
308
307
|
};
|
|
309
308
|
}
|
|
310
|
-
var
|
|
309
|
+
var et = [
|
|
311
310
|
"fullscreenchange",
|
|
312
311
|
"webkitfullscreenchange",
|
|
313
312
|
"webkitendfullscreen",
|
|
314
313
|
"mozfullscreenchange",
|
|
315
314
|
"MSFullscreenChange"
|
|
316
315
|
];
|
|
317
|
-
function
|
|
316
|
+
function tt(e, t = {}) {
|
|
318
317
|
let { document: n = We, autoExit: r = !1 } = t, a = i(() => W(e) ?? n?.documentElement), o = E(!1), s = i(() => [
|
|
319
318
|
"requestFullscreen",
|
|
320
319
|
"webkitRequestFullscreen",
|
|
@@ -377,7 +376,7 @@ function et(e, t = {}) {
|
|
|
377
376
|
capture: !1,
|
|
378
377
|
passive: !0
|
|
379
378
|
};
|
|
380
|
-
return G(n,
|
|
379
|
+
return G(n, et, _, v), G(() => W(a), et, _, v), H(_, !1), r && Oe(m), {
|
|
381
380
|
isSupported: d,
|
|
382
381
|
isFullscreen: o,
|
|
383
382
|
enter: h,
|
|
@@ -385,9 +384,9 @@ function et(e, t = {}) {
|
|
|
385
384
|
toggle: g
|
|
386
385
|
};
|
|
387
386
|
}
|
|
388
|
-
var
|
|
389
|
-
function
|
|
390
|
-
let { throttle: n = 0, idle: r = 200, onStop: a =
|
|
387
|
+
var nt = 1;
|
|
388
|
+
function rt(e, t = {}) {
|
|
389
|
+
let { throttle: n = 0, idle: r = 200, onStop: a = V, onScroll: o = V, offset: s = {
|
|
391
390
|
left: 0,
|
|
392
391
|
right: 0,
|
|
393
392
|
top: 0,
|
|
@@ -442,11 +441,11 @@ function nt(e, t = {}) {
|
|
|
442
441
|
if (!d) return;
|
|
443
442
|
let n = (e == null || (t = e.document) == null ? void 0 : t.documentElement) || e?.documentElement || W(e), { display: r, flexDirection: i, direction: a } = d.getComputedStyle(n), o = a === "rtl" ? -1 : 1, c = n.scrollLeft;
|
|
444
443
|
x.left = c < m.value, x.right = c > m.value;
|
|
445
|
-
let l = Math.abs(c * o) <= (s.left || 0), u = Math.abs(c * o) + n.clientWidth >= n.scrollWidth - (s.right || 0) -
|
|
444
|
+
let l = Math.abs(c * o) <= (s.left || 0), u = Math.abs(c * o) + n.clientWidth >= n.scrollWidth - (s.right || 0) - nt;
|
|
446
445
|
r === "flex" && i === "row-reverse" ? (b.left = u, b.right = l) : (b.left = l, b.right = u), m.value = c;
|
|
447
446
|
let f = n.scrollTop;
|
|
448
447
|
e === d.document && !f && (f = d.document.body.scrollTop), x.top = f < h.value, x.bottom = f > h.value;
|
|
449
|
-
let p = Math.abs(f) <= (s.top || 0), g = Math.abs(f) + n.clientHeight >= n.scrollHeight - (s.bottom || 0) -
|
|
448
|
+
let p = Math.abs(f) <= (s.top || 0), g = Math.abs(f) + n.clientHeight >= n.scrollHeight - (s.bottom || 0) - nt;
|
|
450
449
|
r === "flex" && i === "column-reverse" ? (b.top = g, b.bottom = p) : (b.top = p, b.bottom = g), h.value = f;
|
|
451
450
|
}, D = (e) => {
|
|
452
451
|
d && (T(e.target.documentElement ?? e.target), y.value = !0, C(e), o(e));
|
|
@@ -478,7 +477,7 @@ function nt(e, t = {}) {
|
|
|
478
477
|
}
|
|
479
478
|
};
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function it(e = {}) {
|
|
482
481
|
let { window: t = U, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: i = !0, includeScrollbar: a = !0, type: o = "inner" } = e, s = E(n), c = E(r), l = () => {
|
|
483
482
|
if (t) if (o === "outer") s.value = t.outerWidth, c.value = t.outerHeight;
|
|
484
483
|
else if (o === "visual" && t.visualViewport) {
|
|
@@ -488,14 +487,14 @@ function rt(e = {}) {
|
|
|
488
487
|
};
|
|
489
488
|
l(), H(l);
|
|
490
489
|
let u = { passive: !0 };
|
|
491
|
-
return G("resize", l, u), t && o === "visual" && t.visualViewport && G(t.visualViewport, "resize", l, u), i && k(
|
|
490
|
+
return G("resize", l, u), t && o === "visual" && t.visualViewport && G(t.visualViewport, "resize", l, u), i && k(Xe("(orientation: portrait)"), () => l()), {
|
|
492
491
|
width: s,
|
|
493
492
|
height: c
|
|
494
493
|
};
|
|
495
494
|
}
|
|
496
495
|
//#endregion
|
|
497
496
|
//#region src/context/TableContext.ts
|
|
498
|
-
var [
|
|
497
|
+
var [at, ot] = Ae((e) => e), st = [
|
|
499
498
|
{
|
|
500
499
|
breakpoint: "xxl",
|
|
501
500
|
span: 4
|
|
@@ -520,7 +519,7 @@ var [it, at] = Me((e) => e), ot = [
|
|
|
520
519
|
breakpoint: "xs",
|
|
521
520
|
span: 1
|
|
522
521
|
}
|
|
523
|
-
],
|
|
522
|
+
], ct = {
|
|
524
523
|
xs: 0,
|
|
525
524
|
sm: 576,
|
|
526
525
|
md: 768,
|
|
@@ -528,8 +527,8 @@ var [it, at] = Me((e) => e), ot = [
|
|
|
528
527
|
xl: 1200,
|
|
529
528
|
xxl: 1600
|
|
530
529
|
};
|
|
531
|
-
function
|
|
532
|
-
let e =
|
|
530
|
+
function lt() {
|
|
531
|
+
let e = Ze(ct), { width: t } = it(), n = i(() => ({
|
|
533
532
|
xs: e.isGreaterOrEqual("xs"),
|
|
534
533
|
sm: e.isGreaterOrEqual("sm"),
|
|
535
534
|
md: e.isGreaterOrEqual("md"),
|
|
@@ -538,7 +537,7 @@ function ct() {
|
|
|
538
537
|
xxl: e.isGreaterOrEqual("xxl")
|
|
539
538
|
})), r = i(() => !n.value.xl);
|
|
540
539
|
function a(e, r) {
|
|
541
|
-
return r && typeof r == "object" && Object.keys(r).length > 0 ?
|
|
540
|
+
return r && typeof r == "object" && Object.keys(r).length > 0 ? ut(r, t.value) : dt(e, n.value);
|
|
542
541
|
}
|
|
543
542
|
return {
|
|
544
543
|
screens: n,
|
|
@@ -547,7 +546,7 @@ function ct() {
|
|
|
547
546
|
getRowItemsPerBreakpoint: a
|
|
548
547
|
};
|
|
549
548
|
}
|
|
550
|
-
function
|
|
549
|
+
function ut(e, t) {
|
|
551
550
|
let n = 4, r = Object.keys(e).map(Number).filter((e) => !Number.isNaN(e)).sort((e, t) => t - e);
|
|
552
551
|
for (let i of r) if (e[i] && t >= i) {
|
|
553
552
|
n = e[i];
|
|
@@ -555,12 +554,12 @@ function lt(e, t) {
|
|
|
555
554
|
}
|
|
556
555
|
return n;
|
|
557
556
|
}
|
|
558
|
-
function
|
|
557
|
+
function dt(e, t) {
|
|
559
558
|
let n = 4;
|
|
560
|
-
for (let r = 0; r <
|
|
561
|
-
let i =
|
|
559
|
+
for (let r = 0; r < st.length; r += 1) {
|
|
560
|
+
let i = st[r].breakpoint;
|
|
562
561
|
if (t[i]) {
|
|
563
|
-
n = e?.[i] ??
|
|
562
|
+
n = e?.[i] ?? st[r].span;
|
|
564
563
|
break;
|
|
565
564
|
}
|
|
566
565
|
}
|
|
@@ -568,55 +567,55 @@ function ut(e, t) {
|
|
|
568
567
|
}
|
|
569
568
|
//#endregion
|
|
570
569
|
//#region ../pro-utils/dist/is/nil.js
|
|
571
|
-
function
|
|
570
|
+
function ft(e) {
|
|
572
571
|
return e == null;
|
|
573
572
|
}
|
|
574
573
|
//#endregion
|
|
575
574
|
//#region ../pro-utils/dist/function/object.js
|
|
576
|
-
function
|
|
575
|
+
function pt(e) {
|
|
577
576
|
return Object.getOwnPropertySymbols(e);
|
|
578
577
|
}
|
|
579
578
|
//#endregion
|
|
580
579
|
//#region ../pro-utils/dist/is/type.js
|
|
581
|
-
function
|
|
580
|
+
function mt(e, t) {
|
|
582
581
|
return Object.prototype.toString.call(e) === `[object ${t}]`;
|
|
583
582
|
}
|
|
584
|
-
function
|
|
583
|
+
function ht(e) {
|
|
585
584
|
return typeof e == "boolean";
|
|
586
585
|
}
|
|
587
|
-
function
|
|
586
|
+
function gt(e) {
|
|
588
587
|
return typeof e == "number";
|
|
589
588
|
}
|
|
590
|
-
function
|
|
589
|
+
function _t(e) {
|
|
591
590
|
return Array.isArray === void 0 ? Object.prototype.toString.call(e) === "[object Array]" : Array.isArray(e);
|
|
592
591
|
}
|
|
593
|
-
function
|
|
594
|
-
return e !== null &&
|
|
592
|
+
function K(e) {
|
|
593
|
+
return e !== null && mt(e, "Object");
|
|
595
594
|
}
|
|
596
|
-
function
|
|
595
|
+
function vt(e) {
|
|
597
596
|
return typeof e == "string";
|
|
598
597
|
}
|
|
599
|
-
function
|
|
598
|
+
function yt(e) {
|
|
600
599
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
601
600
|
}
|
|
602
601
|
//#endregion
|
|
603
602
|
//#region ../pro-utils/dist/is/primitive.js
|
|
604
|
-
function
|
|
603
|
+
function bt(e) {
|
|
605
604
|
return e === null || typeof e != "object" && typeof e != "function";
|
|
606
605
|
}
|
|
607
606
|
//#endregion
|
|
608
607
|
//#region ../pro-utils/dist/is/typedArray.js
|
|
609
|
-
function
|
|
608
|
+
function xt(e) {
|
|
610
609
|
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
611
610
|
}
|
|
612
611
|
//#endregion
|
|
613
612
|
//#region ../pro-utils/dist/is/valid.js
|
|
614
|
-
function
|
|
613
|
+
function St(e) {
|
|
615
614
|
return e != null && e !== "";
|
|
616
615
|
}
|
|
617
616
|
//#endregion
|
|
618
617
|
//#region ../pro-utils/dist/array/tree.js
|
|
619
|
-
function
|
|
618
|
+
function Ct(e = [], t, n = "children") {
|
|
620
619
|
function r(e, t) {
|
|
621
620
|
return t.map((t, i) => {
|
|
622
621
|
let a = `${e}-${i + 1}`;
|
|
@@ -624,29 +623,29 @@ function St(e = [], t, n = "children") {
|
|
|
624
623
|
});
|
|
625
624
|
}
|
|
626
625
|
return structuredClone(e).map((e, i) => {
|
|
627
|
-
let a =
|
|
626
|
+
let a = K(t) && t.current || 1, o = K(t) && t.pageSize || 10, s = `${a ? (a - 1) * o + (i + 1) : i + 1}`;
|
|
628
627
|
return e[n] && (e[n] = r(`${s}`, e[n])), e.sortIndex = s, e;
|
|
629
628
|
});
|
|
630
629
|
}
|
|
631
630
|
//#endregion
|
|
632
631
|
//#region ../pro-utils/dist/clone/getTag.js
|
|
633
|
-
function
|
|
632
|
+
function wt(e) {
|
|
634
633
|
return Object.prototype.toString.call(e);
|
|
635
634
|
}
|
|
636
635
|
//#endregion
|
|
637
636
|
//#region ../pro-utils/dist/clone/tags.js
|
|
638
|
-
var
|
|
637
|
+
var Tt = "[object Arguments]", Et = "[object Array]", Dt = "[object ArrayBuffer]", Ot = "[object Boolean]", kt = "[object DataView]", At = "[object Date]", jt = "[object Float32Array]", Mt = "[object Float64Array]", Nt = "[object Int8Array]", Pt = "[object Int16Array]", Ft = "[object Int32Array]", It = "[object Map]", Lt = "[object Number]", Rt = "[object Object]", zt = "[object RegExp]", Bt = "[object Set]", Vt = "[object String]", Ht = "[object Symbol]", Ut = "[object Uint8Array]", Wt = "[object Uint8ClampedArray]", Gt = "[object Uint16Array]", Kt = "[object Uint32Array]";
|
|
639
638
|
//#endregion
|
|
640
639
|
//#region ../pro-utils/dist/clone/cloneDeepWith.js
|
|
641
|
-
function
|
|
640
|
+
function qt(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
642
641
|
let a = i?.(e, t, n, r);
|
|
643
642
|
if (a !== void 0) return a;
|
|
644
|
-
if (
|
|
643
|
+
if (bt(e)) return e;
|
|
645
644
|
if (r.has(e)) return r.get(e);
|
|
646
645
|
if (Array.isArray(e)) {
|
|
647
646
|
let t = Array.from({ length: e.length });
|
|
648
647
|
r.set(e, t);
|
|
649
|
-
for (let a = 0; a < e.length; a++) t[a] =
|
|
648
|
+
for (let a = 0; a < e.length; a++) t[a] = qt(e[a], a, n, r, i);
|
|
650
649
|
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
651
650
|
}
|
|
652
651
|
if (e instanceof Date) return new Date(e.getTime());
|
|
@@ -657,72 +656,71 @@ function J(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
|
657
656
|
if (e instanceof Map) {
|
|
658
657
|
let t = /* @__PURE__ */ new Map();
|
|
659
658
|
r.set(e, t);
|
|
660
|
-
for (let [a, o] of e) t.set(a,
|
|
659
|
+
for (let [a, o] of e) t.set(a, qt(o, a, n, r, i));
|
|
661
660
|
return t;
|
|
662
661
|
}
|
|
663
662
|
if (e instanceof Set) {
|
|
664
663
|
let t = /* @__PURE__ */ new Set();
|
|
665
664
|
r.set(e, t);
|
|
666
|
-
for (let a of e) t.add(
|
|
665
|
+
for (let a of e) t.add(qt(a, void 0, n, r, i));
|
|
667
666
|
return t;
|
|
668
667
|
}
|
|
669
668
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
|
|
670
|
-
if (
|
|
669
|
+
if (xt(e)) {
|
|
671
670
|
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
672
671
|
r.set(e, t);
|
|
673
|
-
for (let a = 0; a < e.length; a++) t[a] =
|
|
672
|
+
for (let a = 0; a < e.length; a++) t[a] = qt(e[a], a, n, r, i);
|
|
674
673
|
return t;
|
|
675
674
|
}
|
|
676
675
|
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
677
676
|
if (e instanceof DataView) {
|
|
678
677
|
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
679
|
-
return r.set(e, t),
|
|
678
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
680
679
|
}
|
|
681
680
|
if (typeof File < "u" && e instanceof File) {
|
|
682
681
|
let t = new File([e], e.name, { type: e.type });
|
|
683
|
-
return r.set(e, t),
|
|
682
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
684
683
|
}
|
|
685
684
|
if (typeof Blob < "u" && e instanceof Blob) {
|
|
686
685
|
let t = new Blob([e], { type: e.type });
|
|
687
|
-
return r.set(e, t),
|
|
686
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
688
687
|
}
|
|
689
688
|
if (e instanceof Error) {
|
|
690
689
|
let t = new e.constructor();
|
|
691
|
-
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause,
|
|
690
|
+
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, q(t, e, n, r, i), t;
|
|
692
691
|
}
|
|
693
692
|
if (typeof e == "boolean") {
|
|
694
693
|
let t = !!e.valueOf();
|
|
695
|
-
return r.set(e, t),
|
|
694
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
696
695
|
}
|
|
697
696
|
if (typeof e == "number") {
|
|
698
697
|
let t = Number(e.valueOf());
|
|
699
|
-
return r.set(e, t),
|
|
698
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
700
699
|
}
|
|
701
700
|
if (typeof e == "string") {
|
|
702
701
|
let t = String(e.valueOf());
|
|
703
|
-
return r.set(e, t),
|
|
702
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
704
703
|
}
|
|
705
|
-
if (typeof e == "object" &&
|
|
704
|
+
if (typeof e == "object" && Jt(e)) {
|
|
706
705
|
let t = Object.create(Object.getPrototypeOf(e));
|
|
707
|
-
return r.set(e, t),
|
|
706
|
+
return r.set(e, t), q(t, e, n, r, i), t;
|
|
708
707
|
}
|
|
709
708
|
return e;
|
|
710
709
|
}
|
|
711
|
-
function
|
|
712
|
-
let a = [...Object.keys(t), ...
|
|
710
|
+
function q(e, t, n = e, r, i) {
|
|
711
|
+
let a = [...Object.keys(t), ...pt(t)];
|
|
713
712
|
for (let o = 0; o < a.length; o++) {
|
|
714
713
|
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
715
|
-
(c == null || c.writable) && (e[s] =
|
|
714
|
+
(c == null || c.writable) && (e[s] = qt(t[s], s, n, r, i));
|
|
716
715
|
}
|
|
717
716
|
}
|
|
718
|
-
function
|
|
719
|
-
switch (
|
|
720
|
-
case wt:
|
|
717
|
+
function Jt(e) {
|
|
718
|
+
switch (wt(e)) {
|
|
721
719
|
case Tt:
|
|
722
720
|
case Et:
|
|
723
|
-
case Ot:
|
|
724
721
|
case Dt:
|
|
725
722
|
case kt:
|
|
723
|
+
case Ot:
|
|
726
724
|
case At:
|
|
727
725
|
case jt:
|
|
728
726
|
case Mt:
|
|
@@ -738,18 +736,19 @@ function Kt(e) {
|
|
|
738
736
|
case Ht:
|
|
739
737
|
case Ut:
|
|
740
738
|
case Wt:
|
|
741
|
-
case Gt:
|
|
739
|
+
case Gt:
|
|
740
|
+
case Kt: return !0;
|
|
742
741
|
default: return !1;
|
|
743
742
|
}
|
|
744
743
|
}
|
|
745
744
|
//#endregion
|
|
746
745
|
//#region ../pro-utils/dist/clone/cloneDeep.js
|
|
747
|
-
function
|
|
748
|
-
return
|
|
746
|
+
function Yt(e) {
|
|
747
|
+
return qt(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
|
|
749
748
|
}
|
|
750
749
|
//#endregion
|
|
751
750
|
//#region ../pro-utils/dist/merge/index.js
|
|
752
|
-
function
|
|
751
|
+
function Xt(...e) {
|
|
753
752
|
let t = {}, n = e.length, r, i = 0;
|
|
754
753
|
for (; i < n; i += 1) for (r in e[i]) Object.getOwnPropertyDescriptor(e[i], r) && (typeof t[r] == "object" && typeof e[i][r] == "object" && t[r] !== void 0 && t[r] !== null && !Array.isArray(t[r]) && !Array.isArray(e[i][r]) ? t[r] = {
|
|
755
754
|
...t[r],
|
|
@@ -759,53 +758,53 @@ function Jt(...e) {
|
|
|
759
758
|
}
|
|
760
759
|
//#endregion
|
|
761
760
|
//#region ../pro-utils/dist/object/classNames.js
|
|
762
|
-
function
|
|
761
|
+
function J(...e) {
|
|
763
762
|
let t = [];
|
|
764
763
|
for (let n = 0; n < e.length; n++) {
|
|
765
764
|
let r = e[n];
|
|
766
765
|
if (r) {
|
|
767
|
-
if (
|
|
768
|
-
else if (
|
|
769
|
-
let n =
|
|
766
|
+
if (vt(r)) t.push(r);
|
|
767
|
+
else if (_t(r)) for (let e = 0; e < r.length; e++) {
|
|
768
|
+
let n = J(r[e]);
|
|
770
769
|
n && t.push(n);
|
|
771
770
|
}
|
|
772
|
-
else if (
|
|
771
|
+
else if (K(r)) for (let e in r) r[e] && t.push(e);
|
|
773
772
|
}
|
|
774
773
|
}
|
|
775
774
|
return t.filter((e) => e).join(" ");
|
|
776
775
|
}
|
|
777
776
|
//#endregion
|
|
778
777
|
//#region ../pro-utils/dist/slots/index.js
|
|
779
|
-
function
|
|
778
|
+
function Zt(n) {
|
|
780
779
|
return n && (n.type === e || n.type === t && n.children.length === 0 || n.type === r && n.children.trim() === "");
|
|
781
780
|
}
|
|
782
|
-
function
|
|
781
|
+
function Qt(e = [], n = !0) {
|
|
783
782
|
let r = Array.isArray(e) ? e : [e], i = [];
|
|
784
783
|
return r.forEach((e) => {
|
|
785
|
-
Array.isArray(e) ? i.push(...
|
|
784
|
+
Array.isArray(e) ? i.push(...Qt(e, n)) : e?.type === t || e?.type === "template" ? i.push(...Qt(e.children, n)) : e && p(e) ? n && !Zt(e) ? i.push(e) : n || i.push(e) : St(e) && i.push(e);
|
|
786
785
|
}), i;
|
|
787
786
|
}
|
|
788
|
-
function
|
|
787
|
+
function $t({ vnode: e, defaultVNode: t }, ...n) {
|
|
789
788
|
return e === !1 ? null : typeof e == "function" ? e?.(...n) : e || t;
|
|
790
789
|
}
|
|
791
|
-
function
|
|
792
|
-
return e === !1 ? !1 : e === !0 ? t ?? n :
|
|
790
|
+
function en({ value: e, slotsValue: t, defaultVNode: n, render: r }) {
|
|
791
|
+
return e === !1 ? !1 : e === !0 ? t ?? n : K(e) && r ? p(e) ? e : t : e || t;
|
|
793
792
|
}
|
|
794
|
-
function
|
|
795
|
-
let { slots: n, key: r = "default", props: i, defaultChildren: a } = e, o = i[r], s = n?.[r]?.(...t), c = typeof a == "function" ? a?.() : a, l =
|
|
793
|
+
function tn(e, ...t) {
|
|
794
|
+
let { slots: n, key: r = "default", props: i, defaultChildren: a } = e, o = i[r], s = n?.[r]?.(...t), c = typeof a == "function" ? a?.() : a, l = en({
|
|
796
795
|
value: o,
|
|
797
796
|
slotsValue: s,
|
|
798
797
|
defaultVNode: c,
|
|
799
798
|
render: !0
|
|
800
799
|
});
|
|
801
|
-
return l === !1 ? !1 :
|
|
800
|
+
return l === !1 ? !1 : $t({
|
|
802
801
|
vnode: l,
|
|
803
802
|
defaultVNode: c
|
|
804
803
|
}, ...t);
|
|
805
804
|
}
|
|
806
805
|
//#endregion
|
|
807
806
|
//#region ../pro-utils/dist/string/empty.js
|
|
808
|
-
function
|
|
807
|
+
function nn(e, t) {
|
|
809
808
|
let n = ["null", "undefined"], r = !0;
|
|
810
809
|
return e === 0 ? r = !0 : n.includes(e) ? r = !1 : e || (r = !1), r ? {
|
|
811
810
|
value: e,
|
|
@@ -817,11 +816,11 @@ function en(e, t) {
|
|
|
817
816
|
}
|
|
818
817
|
//#endregion
|
|
819
818
|
//#region ../pro-utils/dist/string/uuid.js
|
|
820
|
-
var
|
|
821
|
-
function
|
|
819
|
+
var rn = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
820
|
+
function an() {
|
|
822
821
|
return {
|
|
823
822
|
uuid(e, t) {
|
|
824
|
-
let n =
|
|
823
|
+
let n = rn, r = t || n.length;
|
|
825
824
|
if (e) {
|
|
826
825
|
let t = "";
|
|
827
826
|
for (let i = 0; i < e; i += 1) t += n[Math.floor(Math.random() * r)];
|
|
@@ -833,7 +832,7 @@ function nn() {
|
|
|
833
832
|
});
|
|
834
833
|
},
|
|
835
834
|
uuidFast() {
|
|
836
|
-
let e =
|
|
835
|
+
let e = rn, t = Array.from({ length: 36 });
|
|
837
836
|
for (let n = 0; n < 36; n += 1) if (n === 8 || n === 13 || n === 18 || n === 23) t[n] = "-";
|
|
838
837
|
else if (n === 14) t[n] = "4";
|
|
839
838
|
else {
|
|
@@ -855,8 +854,8 @@ function nn() {
|
|
|
855
854
|
}
|
|
856
855
|
//#endregion
|
|
857
856
|
//#region ../pro-utils/dist/table/page.js
|
|
858
|
-
function
|
|
859
|
-
if (
|
|
857
|
+
function on(e, t) {
|
|
858
|
+
if (K(e)) {
|
|
860
859
|
let { pageSize: n = 10, total: r = 0 } = e, { current: i = 1 } = e;
|
|
861
860
|
return r - t <= n * (i - 1) && --i, i === 0 ? 1 : i;
|
|
862
861
|
}
|
|
@@ -864,7 +863,7 @@ function rn(e, t) {
|
|
|
864
863
|
}
|
|
865
864
|
//#endregion
|
|
866
865
|
//#region src/utils/valueFormat.ts
|
|
867
|
-
var
|
|
866
|
+
var Y = /* @__PURE__ */ De((/* @__PURE__ */ Te(((e, t) => {
|
|
868
867
|
(function(n, r) {
|
|
869
868
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
870
869
|
})(e, (function() {
|
|
@@ -1159,9 +1158,9 @@ var Z = /* @__PURE__ */ ke((/* @__PURE__ */ De(((e, t) => {
|
|
|
1159
1158
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
1160
1159
|
}));
|
|
1161
1160
|
})))(), 1);
|
|
1162
|
-
function
|
|
1163
|
-
if (
|
|
1164
|
-
if (
|
|
1161
|
+
function sn(e, t, n = {}) {
|
|
1162
|
+
if (ft(e) || e === "" || !t || t === "text") return e;
|
|
1163
|
+
if (K(t) && !Array.isArray(t)) {
|
|
1165
1164
|
let n = t, r = n.node ?? "span";
|
|
1166
1165
|
return l(r === "a" ? "span" : r, {
|
|
1167
1166
|
class: n.class,
|
|
@@ -1171,24 +1170,24 @@ function an(e, t, n = {}) {
|
|
|
1171
1170
|
}
|
|
1172
1171
|
switch (t) {
|
|
1173
1172
|
case "link": return l("span", { class: [`${n.className}-a`] }, e);
|
|
1174
|
-
case "time": return (0,
|
|
1175
|
-
case "dateMonth": return `${(0,
|
|
1176
|
-
case "date": return (0,
|
|
1177
|
-
case "dateTime": return (0,
|
|
1173
|
+
case "time": return (0, Y.default)(e).format("HH:mm:ss");
|
|
1174
|
+
case "dateMonth": return `${(0, Y.default)(e).month() + 1}月`;
|
|
1175
|
+
case "date": return (0, Y.default)(e).format("YYYY-MM-DD");
|
|
1176
|
+
case "dateTime": return (0, Y.default)(e).format("YYYY-MM-DD HH:mm:ss");
|
|
1178
1177
|
default: return e;
|
|
1179
1178
|
}
|
|
1180
1179
|
}
|
|
1181
1180
|
//#endregion
|
|
1182
1181
|
//#region src/hooks/useCellRender.ts
|
|
1183
|
-
function
|
|
1182
|
+
function cn(e, t, n) {
|
|
1184
1183
|
return e.columnEmptyText === void 0 ? n === void 0 ? "-" : typeof n == "function" ? n(t) : n : typeof e.columnEmptyText == "function" ? e.columnEmptyText(t) : e.columnEmptyText;
|
|
1185
1184
|
}
|
|
1186
|
-
function
|
|
1185
|
+
function ln(e) {
|
|
1187
1186
|
function t(t) {
|
|
1188
1187
|
let n = t.render, r = (r, i, a) => {
|
|
1189
1188
|
let o = n ? n(r, i, a) : r;
|
|
1190
|
-
!n && t.valueType && !p(o) && (o =
|
|
1191
|
-
let s =
|
|
1189
|
+
!n && t.valueType && !p(o) && (o = sn(o, t.valueType, { className: e.prefixCls.value }));
|
|
1190
|
+
let s = cn(t, i, e.columnEmptyText?.value), { value: c } = nn(o, s);
|
|
1192
1191
|
return c;
|
|
1193
1192
|
};
|
|
1194
1193
|
return {
|
|
@@ -1200,62 +1199,62 @@ function sn(e) {
|
|
|
1200
1199
|
}
|
|
1201
1200
|
//#endregion
|
|
1202
1201
|
//#region src/hooks/useColumns.ts
|
|
1203
|
-
function
|
|
1202
|
+
function un(e) {
|
|
1204
1203
|
return e.key ?? e.dataIndex;
|
|
1205
1204
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1205
|
+
function dn(e) {
|
|
1206
|
+
return un(e) === "action" || e.dataIndex === "action";
|
|
1208
1207
|
}
|
|
1209
|
-
function
|
|
1208
|
+
function fn(e) {
|
|
1210
1209
|
return e === "left" ? "start" : e === "right" ? "end" : e;
|
|
1211
1210
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let r =
|
|
1211
|
+
function pn(e, t, n) {
|
|
1212
|
+
let r = un(e), i = {
|
|
1214
1213
|
...e,
|
|
1215
1214
|
key: r,
|
|
1216
1215
|
dataIndex: e.dataIndex ?? r,
|
|
1217
1216
|
order: e.order ?? t,
|
|
1218
1217
|
align: e.align ?? n
|
|
1219
1218
|
};
|
|
1220
|
-
return e.children?.length && (i.children = e.children.map((e, t) =>
|
|
1219
|
+
return e.children?.length && (i.children = e.children.map((e, t) => pn(e, t, n))), i;
|
|
1221
1220
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return e.map((e, n) =>
|
|
1221
|
+
function mn(e, t) {
|
|
1222
|
+
return e.map((e, n) => pn(e, n, t));
|
|
1224
1223
|
}
|
|
1225
|
-
function
|
|
1224
|
+
function hn(e, t, n) {
|
|
1226
1225
|
let r = typeof e == "object" ? e : {};
|
|
1227
1226
|
return {
|
|
1228
1227
|
title: r.title ?? "序号",
|
|
1229
1228
|
align: r.align ?? t,
|
|
1230
|
-
fixed:
|
|
1229
|
+
fixed: fn(r.fixed ?? n?.fixed),
|
|
1231
1230
|
width: r.width ?? 60,
|
|
1232
|
-
uuid:
|
|
1231
|
+
uuid: an().uuid(15),
|
|
1233
1232
|
dataIndex: "sortIndex",
|
|
1234
1233
|
key: "sortIndex"
|
|
1235
1234
|
};
|
|
1236
1235
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return !t || e.length === 0 || e.some((e) => e.dataIndex === "sortIndex" ||
|
|
1236
|
+
function gn(e, t, n) {
|
|
1237
|
+
return !t || e.length === 0 || e.some((e) => e.dataIndex === "sortIndex" || un(e) === "sortIndex") ? e : [hn(t === !0 ? !0 : t, n, e[0]), ...e];
|
|
1239
1238
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return t ? e.map((e) => !
|
|
1239
|
+
function _n(e, t) {
|
|
1240
|
+
return t ? e.map((e) => !dn(e) || e.fixed !== void 0 ? e : {
|
|
1242
1241
|
...e,
|
|
1243
1242
|
fixed: "end"
|
|
1244
1243
|
}) : e;
|
|
1245
1244
|
}
|
|
1246
|
-
function
|
|
1245
|
+
function vn(e) {
|
|
1247
1246
|
return e.filter((e) => e.show !== !1);
|
|
1248
1247
|
}
|
|
1249
|
-
function
|
|
1248
|
+
function yn(e) {
|
|
1250
1249
|
return [...e].sort((e, t) => (e.order ?? 0) - (t.order ?? 0));
|
|
1251
1250
|
}
|
|
1252
|
-
function
|
|
1251
|
+
function bn(e) {
|
|
1253
1252
|
let t = E(null), n = k(() => e.columns.value, () => {
|
|
1254
1253
|
t.value = null;
|
|
1255
1254
|
});
|
|
1256
1255
|
x(() => n());
|
|
1257
|
-
let r = i(() =>
|
|
1258
|
-
let t =
|
|
1256
|
+
let r = i(() => _n(mn(gn(t.value ?? e.columns.value, e.indexColumn?.value, e.align.value), e.align.value), !!e.shouldFixActionColumn?.value)), a = i(() => {
|
|
1257
|
+
let t = yn(vn(r.value));
|
|
1259
1258
|
return e.wrapColumnRender ? t.map((t) => e.wrapColumnRender(t)) : t;
|
|
1260
1259
|
});
|
|
1261
1260
|
function o(e) {
|
|
@@ -1269,8 +1268,8 @@ function vn(e) {
|
|
|
1269
1268
|
}
|
|
1270
1269
|
//#endregion
|
|
1271
1270
|
//#region src/hooks/useColumnResize.ts
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1271
|
+
var xn = 40;
|
|
1272
|
+
function Sn() {
|
|
1274
1273
|
return o({
|
|
1275
1274
|
name: "ResizableTitle",
|
|
1276
1275
|
inheritAttrs: !1,
|
|
@@ -1291,7 +1290,7 @@ function bn() {
|
|
|
1291
1290
|
function n(t) {
|
|
1292
1291
|
if (!r.value) return;
|
|
1293
1292
|
i.value = !0;
|
|
1294
|
-
let n = Math.max(o.value + t.clientX - a.value,
|
|
1293
|
+
let n = Math.max(o.value + t.clientX - a.value, xn);
|
|
1295
1294
|
e.onResize?.(t, { size: { width: n } });
|
|
1296
1295
|
}
|
|
1297
1296
|
function s() {
|
|
@@ -1319,23 +1318,23 @@ function bn() {
|
|
|
1319
1318
|
}
|
|
1320
1319
|
});
|
|
1321
1320
|
}
|
|
1322
|
-
function
|
|
1321
|
+
function Cn(e) {
|
|
1323
1322
|
let t = E(/* @__PURE__ */ new Map());
|
|
1324
1323
|
function n(e, n) {
|
|
1325
1324
|
let r = new Map(t.value);
|
|
1326
1325
|
r.set(e, n.size.width), t.value = r;
|
|
1327
1326
|
}
|
|
1328
|
-
let r =
|
|
1327
|
+
let r = Sn(), a = i(() => {
|
|
1329
1328
|
let r = e.columns.value, i = t.value;
|
|
1330
1329
|
return r.map((t) => {
|
|
1331
|
-
let r =
|
|
1330
|
+
let r = un(t), a = i.get(r);
|
|
1332
1331
|
return {
|
|
1333
1332
|
...t,
|
|
1334
1333
|
...a == null ? {} : { width: a },
|
|
1335
1334
|
onHeaderCell: (t) => ({
|
|
1336
1335
|
width: t.width,
|
|
1337
1336
|
onResize: (r, i) => {
|
|
1338
|
-
n(
|
|
1337
|
+
n(un(t), i), e.onResize?.(i.size.width, t);
|
|
1339
1338
|
}
|
|
1340
1339
|
})
|
|
1341
1340
|
};
|
|
@@ -1350,44 +1349,44 @@ function xn(e) {
|
|
|
1350
1349
|
}
|
|
1351
1350
|
//#endregion
|
|
1352
1351
|
//#region src/hooks/useFetchData.ts
|
|
1353
|
-
var
|
|
1354
|
-
function
|
|
1355
|
-
let { rowKey: n, polling: r, pollingTime: a, request: o, postData: s, dataSource: c, immediate: l, waitRequest: u, autoRequest: d, debounceTime: f, params: p, defaultFormSearch: m, onLoadingChange: h, onRequestError: g, onBeforeSearchSubmit: v } = e, { pageInfo: b, paginationInfo: x, setPagination: C, setLoading: w, setColumns: E, removeRowKeys: ee, syncSelectedRows: O, columns: te } = t, A = T([]),
|
|
1356
|
-
function
|
|
1352
|
+
var wn = [];
|
|
1353
|
+
function Tn(e, t) {
|
|
1354
|
+
let { rowKey: n, polling: r, pollingTime: a, request: o, postData: s, dataSource: c, immediate: l, waitRequest: u, autoRequest: d, debounceTime: f, params: p, defaultFormSearch: m, onLoadingChange: h, onRequestError: g, onBeforeSearchSubmit: v } = e, { pageInfo: b, paginationInfo: x, setPagination: C, setLoading: w, setColumns: E, removeRowKeys: ee, syncSelectedRows: O, columns: te } = t, A = T([]), j = T(!1), M = T(null), ne = T(null), re = T("");
|
|
1355
|
+
function ie(e) {
|
|
1357
1356
|
h && h(e);
|
|
1358
1357
|
}
|
|
1359
|
-
function
|
|
1360
|
-
|
|
1358
|
+
function N() {
|
|
1359
|
+
M.value != null && (clearTimeout(M.value), M.value = null);
|
|
1361
1360
|
}
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1361
|
+
function P() {
|
|
1362
|
+
N();
|
|
1364
1363
|
}
|
|
1365
|
-
function
|
|
1366
|
-
if (
|
|
1364
|
+
function ae(e) {
|
|
1365
|
+
if (j.value || !r.value) return;
|
|
1367
1366
|
let t = Math.max(a.value || 2e3, 2e3);
|
|
1368
|
-
|
|
1369
|
-
|
|
1367
|
+
N(), M.value = setTimeout(() => {
|
|
1368
|
+
I({
|
|
1370
1369
|
...e,
|
|
1371
1370
|
isPolling: !0
|
|
1372
1371
|
});
|
|
1373
1372
|
}, t);
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1374
|
+
function oe() {
|
|
1375
|
+
ne.value?.abort(), ne.value = null;
|
|
1377
1376
|
}
|
|
1378
|
-
function
|
|
1379
|
-
if (A.value =
|
|
1377
|
+
function F(e) {
|
|
1378
|
+
if (A.value = Ct(e, D(b)), !o || !yt(o)) {
|
|
1380
1379
|
let t = e.length || 0;
|
|
1381
1380
|
t !== b.total && C({ total: t });
|
|
1382
1381
|
}
|
|
1383
1382
|
}
|
|
1384
|
-
async function
|
|
1383
|
+
async function se(e = {}) {
|
|
1385
1384
|
let { pagination: t = {}, filters: n = {}, sorter: r = {}, removeKeys: i = [], isPolling: a = !1, extra: l } = e;
|
|
1386
|
-
if (!o || !
|
|
1387
|
-
a || (w(!0),
|
|
1385
|
+
if (!o || !yt(o)) return c.value || [];
|
|
1386
|
+
a || (w(!0), ie(!0)), t && Object.keys(t).length && C(t);
|
|
1388
1387
|
try {
|
|
1389
1388
|
i.length && ee(i);
|
|
1390
|
-
let t =
|
|
1389
|
+
let t = K(r) && Object.keys(r).length ? [r] : _t(r) ? r : [];
|
|
1391
1390
|
E && te && E(te.value.map((e) => {
|
|
1392
1391
|
let n = t.find((t) => (t?.columnKey || t?.field) === e.dataIndex);
|
|
1393
1392
|
return {
|
|
@@ -1398,22 +1397,22 @@ function Cn(e, t) {
|
|
|
1398
1397
|
let a = {
|
|
1399
1398
|
...x.value === !1 ? {} : {
|
|
1400
1399
|
pageSize: b.pageSize,
|
|
1401
|
-
current:
|
|
1400
|
+
current: on(D(b), i.length)
|
|
1402
1401
|
},
|
|
1403
1402
|
...D(m.value),
|
|
1404
1403
|
...D(p.value),
|
|
1405
1404
|
...e.params || {}
|
|
1406
1405
|
};
|
|
1407
|
-
v &&
|
|
1406
|
+
v && yt(v) && (a = await v({
|
|
1408
1407
|
params: a,
|
|
1409
1408
|
sorter: t,
|
|
1410
1409
|
filter: n,
|
|
1411
1410
|
extra: l
|
|
1412
1411
|
}));
|
|
1413
|
-
let c = `table_request_${
|
|
1414
|
-
|
|
1412
|
+
let c = `table_request_${an().uuid(10)}`;
|
|
1413
|
+
re.value = c;
|
|
1415
1414
|
let u = new AbortController();
|
|
1416
|
-
|
|
1415
|
+
ne.value = u;
|
|
1417
1416
|
let d = await o({
|
|
1418
1417
|
params: { ...a },
|
|
1419
1418
|
sorter: t,
|
|
@@ -1421,49 +1420,49 @@ function Cn(e, t) {
|
|
|
1421
1420
|
extra: l,
|
|
1422
1421
|
signal: u.signal
|
|
1423
1422
|
});
|
|
1424
|
-
if (
|
|
1423
|
+
if (re.value !== c || u.signal.aborted) return [];
|
|
1425
1424
|
if (d) {
|
|
1426
1425
|
let { success: t = !0, data: n = [] } = d;
|
|
1427
1426
|
if (!t) return [];
|
|
1428
1427
|
let r = typeof s == "function" ? s(n) : n, i = d.total || r.length || 0;
|
|
1429
|
-
return i !== b.total && C({ total: i }),
|
|
1428
|
+
return i !== b.total && C({ total: i }), F(r), O(r), ae(e), r;
|
|
1430
1429
|
}
|
|
1431
1430
|
return [];
|
|
1432
1431
|
} catch (e) {
|
|
1433
1432
|
if (e.name === "AbortError") return [];
|
|
1434
|
-
if (g) return A.value === void 0 &&
|
|
1433
|
+
if (g) return A.value === void 0 && F([]), g(e), [];
|
|
1435
1434
|
throw e;
|
|
1436
1435
|
} finally {
|
|
1437
|
-
a || (w(!1),
|
|
1436
|
+
a || (w(!1), ie(!1));
|
|
1438
1437
|
}
|
|
1439
1438
|
}
|
|
1440
|
-
let
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1439
|
+
let ce = Ve((e) => se(e), () => f.value ?? 10);
|
|
1440
|
+
function I(e = {}) {
|
|
1441
|
+
oe(), ce(e);
|
|
1443
1442
|
}
|
|
1444
1443
|
_(() => {
|
|
1445
|
-
|
|
1444
|
+
j.value = !1;
|
|
1446
1445
|
}), S(() => {
|
|
1447
|
-
|
|
1446
|
+
j.value = !0, oe(), P();
|
|
1448
1447
|
}), y(() => {
|
|
1449
|
-
|
|
1448
|
+
j.value = !0, oe(), P();
|
|
1450
1449
|
}), k(() => c.value, (e) => {
|
|
1451
|
-
e && !
|
|
1450
|
+
e && !yt(o) && F(e);
|
|
1452
1451
|
}, {
|
|
1453
1452
|
deep: !0,
|
|
1454
1453
|
immediate: !0
|
|
1455
1454
|
}), k(() => p.value, () => {
|
|
1456
|
-
u.value || d.value && (C({ current: 1 }),
|
|
1455
|
+
u.value || d.value && (C({ current: 1 }), I({ isPolling: !1 }));
|
|
1457
1456
|
}, { deep: !0 }), k(() => m.value, (e, t) => {
|
|
1458
|
-
u.value || e !== t && (C({ current: 1 }),
|
|
1457
|
+
u.value || e !== t && (C({ current: 1 }), I({ isPolling: !1 }));
|
|
1459
1458
|
}, { deep: !0 }), k(() => r.value, () => {
|
|
1460
|
-
u.value || (r.value ?
|
|
1459
|
+
u.value || (r.value ? I({ isPolling: !0 }) : P());
|
|
1461
1460
|
}), k(() => u.value, (e) => {
|
|
1462
|
-
e ? (w(!0),
|
|
1463
|
-
}), !u.value && l.value &&
|
|
1464
|
-
let
|
|
1465
|
-
function
|
|
1466
|
-
|
|
1461
|
+
e ? (w(!0), ie(!0)) : l.value && I({ isPolling: !1 });
|
|
1462
|
+
}), !u.value && l.value && I({ isPolling: !1 });
|
|
1463
|
+
let le = i(() => A.value.some((e) => _t(e.children) && e.children.length > 0));
|
|
1464
|
+
function L(e, t = {}, n = {}, r) {
|
|
1465
|
+
I({
|
|
1467
1466
|
pagination: e,
|
|
1468
1467
|
filters: t,
|
|
1469
1468
|
sorter: n,
|
|
@@ -1471,11 +1470,11 @@ function Cn(e, t) {
|
|
|
1471
1470
|
isPolling: !1
|
|
1472
1471
|
});
|
|
1473
1472
|
}
|
|
1474
|
-
function
|
|
1473
|
+
function ue(e) {
|
|
1475
1474
|
let { key: t, row: r, value: i, type: a = "update" } = e, o = t ?? n.value, s = r?.[o] ?? i;
|
|
1476
1475
|
switch (!r && a !== "delete" && console.warn("row is required"), a) {
|
|
1477
1476
|
case "update":
|
|
1478
|
-
o && s && r && (A.value = A.value.map((e) => s === e[o] ?
|
|
1477
|
+
o && s && r && (A.value = A.value.map((e) => s === e[o] ? Xt({}, e, r) : e));
|
|
1479
1478
|
break;
|
|
1480
1479
|
case "push":
|
|
1481
1480
|
r && A.value.push(r);
|
|
@@ -1488,32 +1487,32 @@ function Cn(e, t) {
|
|
|
1488
1487
|
break;
|
|
1489
1488
|
}
|
|
1490
1489
|
}
|
|
1491
|
-
function
|
|
1492
|
-
u.value || (o ?
|
|
1490
|
+
function de(e) {
|
|
1491
|
+
u.value || (o ? I({
|
|
1493
1492
|
...e,
|
|
1494
1493
|
isPolling: !1
|
|
1495
|
-
}) :
|
|
1494
|
+
}) : F(c.value || []));
|
|
1496
1495
|
}
|
|
1497
|
-
function
|
|
1498
|
-
|
|
1496
|
+
function fe(e) {
|
|
1497
|
+
de(e);
|
|
1499
1498
|
}
|
|
1500
1499
|
return {
|
|
1501
|
-
dataSource: i(() => A.value.length ? A.value :
|
|
1502
|
-
isTreeDataRef:
|
|
1503
|
-
setTableDataList:
|
|
1504
|
-
operateTableDataRow:
|
|
1505
|
-
handleTableChange:
|
|
1506
|
-
run:
|
|
1507
|
-
reload:
|
|
1500
|
+
dataSource: i(() => A.value.length ? A.value : wn),
|
|
1501
|
+
isTreeDataRef: le,
|
|
1502
|
+
setTableDataList: F,
|
|
1503
|
+
operateTableDataRow: ue,
|
|
1504
|
+
handleTableChange: L,
|
|
1505
|
+
run: de,
|
|
1506
|
+
reload: fe
|
|
1508
1507
|
};
|
|
1509
1508
|
}
|
|
1510
1509
|
//#endregion
|
|
1511
1510
|
//#region ../pro-hooks/dist/core/useIsIos.js
|
|
1512
|
-
var
|
|
1513
|
-
typeof window > "u" ||
|
|
1511
|
+
var En = (typeof window > "u" ? !1 : /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !window.MSStream;
|
|
1512
|
+
typeof window > "u" || En || window.safari;
|
|
1514
1513
|
//#endregion
|
|
1515
1514
|
//#region ../pro-hooks/dist/lifeCycle/onMountedOrActivated.js
|
|
1516
|
-
function
|
|
1515
|
+
function Dn(e) {
|
|
1517
1516
|
let t = !1;
|
|
1518
1517
|
b(() => {
|
|
1519
1518
|
e(!1), g(() => {
|
|
@@ -1525,45 +1524,45 @@ function Tn(e) {
|
|
|
1525
1524
|
}
|
|
1526
1525
|
//#endregion
|
|
1527
1526
|
//#region src/components/ScrollBar/context.ts
|
|
1528
|
-
var [
|
|
1527
|
+
var [On, kn] = Ae((e) => e);
|
|
1529
1528
|
//#endregion
|
|
1530
1529
|
//#region src/hooks/useFitPage.ts
|
|
1531
|
-
function
|
|
1530
|
+
function An(e, t, n) {
|
|
1532
1531
|
n.toolbarEl.value = e.querySelector(`.${t}-list-toolbar`) ?? void 0, n.headerEl.value = e.querySelector(".ant-table-header") ?? void 0, n.pageEl.value = e.querySelector(".ant-table-pagination") ?? void 0, n.scrollEl.value = e.querySelector(".ant-table-body") ?? void 0, n.bodyInnerEl.value = e.querySelector(".ant-table-body > table") ?? void 0;
|
|
1533
1532
|
}
|
|
1534
|
-
function
|
|
1533
|
+
function jn(e) {
|
|
1535
1534
|
if (!e) return 0;
|
|
1536
1535
|
let t = getComputedStyle(e);
|
|
1537
1536
|
return (Number.parseFloat(t.marginTop) || 0) + (Number.parseFloat(t.marginBottom) || 0);
|
|
1538
1537
|
}
|
|
1539
|
-
function
|
|
1538
|
+
function Mn(e) {
|
|
1540
1539
|
let { fitPage: t, cardEl: n, prefixCls: r } = e, a = T(), o = T(), s = T(), c = T(), l = T(), u = T(), d = {
|
|
1541
1540
|
toolbarEl: o,
|
|
1542
1541
|
headerEl: s,
|
|
1543
1542
|
pageEl: c,
|
|
1544
1543
|
scrollEl: l,
|
|
1545
1544
|
bodyInnerEl: u
|
|
1546
|
-
}, { height: f } =
|
|
1545
|
+
}, { height: f } = $e(n), { height: p } = $e(o), { height: m } = $e(s), { height: h } = $e(c), { height: g } = $e(u);
|
|
1547
1546
|
qe(n, () => {
|
|
1548
|
-
n.value &&
|
|
1547
|
+
n.value && An(n.value, r.value, d);
|
|
1549
1548
|
}, {
|
|
1550
1549
|
childList: !0,
|
|
1551
1550
|
subtree: !0
|
|
1552
|
-
}),
|
|
1553
|
-
n.value &&
|
|
1551
|
+
}), Dn(() => {
|
|
1552
|
+
n.value && An(n.value, r.value, d);
|
|
1554
1553
|
});
|
|
1555
|
-
let _ = i(() =>
|
|
1554
|
+
let _ = i(() => jn(o.value)), v = i(() => jn(c.value)), y = i(() => {
|
|
1556
1555
|
if (!n.value || !t.value) return 0;
|
|
1557
1556
|
let e = f.value - p.value - _.value - m.value - h.value - v.value;
|
|
1558
1557
|
return Math.max(0, e);
|
|
1559
1558
|
}), b = i(() => !y.value || !t.value ? !1 : g.value <= y.value), x = i(() => t.value ? `${r.value}-full-page` : "");
|
|
1560
1559
|
return A(() => {
|
|
1561
1560
|
l.value && (t.value && y.value > 0 ? l.value.style.height = `${y.value}px` : l.value.style.height = "");
|
|
1562
|
-
}),
|
|
1561
|
+
}), rt(l, { onScroll: () => {
|
|
1563
1562
|
l.value && a.value?.handleScroll(l.value);
|
|
1564
|
-
} }),
|
|
1563
|
+
} }), Qe(l, () => {
|
|
1565
1564
|
a.value?.update();
|
|
1566
|
-
}),
|
|
1565
|
+
}), On({
|
|
1567
1566
|
className: `${r.value}-scroll`,
|
|
1568
1567
|
tableHeaderHeight: m,
|
|
1569
1568
|
tableScrollYHeight: y,
|
|
@@ -1579,24 +1578,24 @@ function An(e) {
|
|
|
1579
1578
|
}
|
|
1580
1579
|
//#endregion
|
|
1581
1580
|
//#region src/hooks/useKeepAliveReload.ts
|
|
1582
|
-
function
|
|
1581
|
+
function Nn(e) {
|
|
1583
1582
|
s() ? _(e) : g(e);
|
|
1584
1583
|
}
|
|
1585
|
-
function
|
|
1584
|
+
function Pn(e) {
|
|
1586
1585
|
let t = T(!1);
|
|
1587
|
-
return
|
|
1586
|
+
return Nn(() => {
|
|
1588
1587
|
t.value ? e.enabled.value && e.reload() : t.value = !0;
|
|
1589
1588
|
}), { hasActivated: t };
|
|
1590
1589
|
}
|
|
1591
1590
|
//#endregion
|
|
1592
1591
|
//#region src/hooks/useLoading.ts
|
|
1593
|
-
function
|
|
1594
|
-
return
|
|
1592
|
+
function Fn(e, t = !1) {
|
|
1593
|
+
return ht(e) ? e : K(e) ? e.spinning ?? t : t;
|
|
1595
1594
|
}
|
|
1596
|
-
function
|
|
1597
|
-
let t = T(
|
|
1595
|
+
function In(e) {
|
|
1596
|
+
let t = T(Fn(e.loading.value));
|
|
1598
1597
|
k(() => e.loading.value, (n) => {
|
|
1599
|
-
let r =
|
|
1598
|
+
let r = Fn(n, t.value);
|
|
1600
1599
|
r !== t.value && (t.value = r, e.onChange?.(r));
|
|
1601
1600
|
});
|
|
1602
1601
|
function n(n) {
|
|
@@ -1609,7 +1608,7 @@ function Pn(e) {
|
|
|
1609
1608
|
}
|
|
1610
1609
|
//#endregion
|
|
1611
1610
|
//#region src/hooks/usePagination.ts
|
|
1612
|
-
var
|
|
1611
|
+
var Ln = {
|
|
1613
1612
|
current: 1,
|
|
1614
1613
|
pageSize: 10,
|
|
1615
1614
|
showQuickJumper: !0,
|
|
@@ -1621,10 +1620,10 @@ var Fn = {
|
|
|
1621
1620
|
"100"
|
|
1622
1621
|
]
|
|
1623
1622
|
};
|
|
1624
|
-
function
|
|
1625
|
-
let t = T({ ...
|
|
1626
|
-
current:
|
|
1627
|
-
pageSize:
|
|
1623
|
+
function Rn({ pagination: e }) {
|
|
1624
|
+
let t = T({ ...Ln }), n = w({
|
|
1625
|
+
current: Ln.current,
|
|
1626
|
+
pageSize: Ln.pageSize,
|
|
1628
1627
|
total: 0
|
|
1629
1628
|
});
|
|
1630
1629
|
k(() => e.value, (e) => {
|
|
@@ -1633,7 +1632,7 @@ function In({ pagination: e }) {
|
|
|
1633
1632
|
return;
|
|
1634
1633
|
}
|
|
1635
1634
|
let n = {
|
|
1636
|
-
...
|
|
1635
|
+
...Ln,
|
|
1637
1636
|
...e || {}
|
|
1638
1637
|
};
|
|
1639
1638
|
t.value = n, r(n);
|
|
@@ -1642,10 +1641,10 @@ function In({ pagination: e }) {
|
|
|
1642
1641
|
immediate: !0
|
|
1643
1642
|
});
|
|
1644
1643
|
function r(e) {
|
|
1645
|
-
|
|
1644
|
+
gt(e.current) && (n.current = e.current), gt(e.pageSize) && (n.pageSize = e.pageSize), gt(e.total) && (n.total = e.total);
|
|
1646
1645
|
}
|
|
1647
1646
|
function a(e) {
|
|
1648
|
-
t.value !== !1 && (t.value =
|
|
1647
|
+
t.value !== !1 && (t.value = Xt({}, t.value, e), r(e));
|
|
1649
1648
|
}
|
|
1650
1649
|
return {
|
|
1651
1650
|
paginationInfo: t,
|
|
@@ -1663,7 +1662,7 @@ function In({ pagination: e }) {
|
|
|
1663
1662
|
}
|
|
1664
1663
|
//#endregion
|
|
1665
1664
|
//#region src/hooks/useRequestOptions.ts
|
|
1666
|
-
function
|
|
1665
|
+
function zn(e) {
|
|
1667
1666
|
let t = T([]), n = T(!1), r = T("idle"), i = Ve(async () => {
|
|
1668
1667
|
if (e.fetch) {
|
|
1669
1668
|
n.value = !0, r.value = "loading";
|
|
@@ -1689,15 +1688,15 @@ function Ln(e) {
|
|
|
1689
1688
|
}
|
|
1690
1689
|
//#endregion
|
|
1691
1690
|
//#region src/hooks/useRowSelection.ts
|
|
1692
|
-
function
|
|
1691
|
+
function X(e, t) {
|
|
1693
1692
|
return e[t];
|
|
1694
1693
|
}
|
|
1695
|
-
function
|
|
1694
|
+
function Bn(e) {
|
|
1696
1695
|
let t = w(/* @__PURE__ */ new Map()), n = k(() => e.rowSelection.value?.selectedRowKeys, (n) => {
|
|
1697
1696
|
if (!n) return;
|
|
1698
1697
|
let r = /* @__PURE__ */ new Map(), i = e.dataSource.value;
|
|
1699
1698
|
for (let a of n) {
|
|
1700
|
-
let n = t.get(a), o = i.find((t) =>
|
|
1699
|
+
let n = t.get(a), o = i.find((t) => X(t, e.rowKey.value) === a);
|
|
1701
1700
|
r.set(a, o ?? n);
|
|
1702
1701
|
}
|
|
1703
1702
|
t.clear();
|
|
@@ -1709,12 +1708,12 @@ function zn(e) {
|
|
|
1709
1708
|
e.rowSelection.value?.onChange?.(r.value, a.value, { type: t });
|
|
1710
1709
|
}
|
|
1711
1710
|
function s(n, r) {
|
|
1712
|
-
let i =
|
|
1711
|
+
let i = X(n, e.rowKey.value), a = e.rowSelection.value?.type ?? "checkbox";
|
|
1713
1712
|
r ? (a === "radio" && t.clear(), t.set(i, n)) : t.delete(i), o(r ? a === "radio" ? "single" : "multiple" : "none");
|
|
1714
1713
|
}
|
|
1715
1714
|
function c(n, r) {
|
|
1716
|
-
if (r) for (let r of n) t.set(
|
|
1717
|
-
else for (let r of n) t.delete(
|
|
1715
|
+
if (r) for (let r of n) t.set(X(r, e.rowKey.value), r);
|
|
1716
|
+
else for (let r of n) t.delete(X(r, e.rowKey.value));
|
|
1718
1717
|
o(r ? "all" : "none");
|
|
1719
1718
|
}
|
|
1720
1719
|
function l(e) {
|
|
@@ -1727,14 +1726,14 @@ function zn(e) {
|
|
|
1727
1726
|
function d() {
|
|
1728
1727
|
let n = e.dataSource.value, r = e.rowKey.value;
|
|
1729
1728
|
for (let [e, i] of t) if (i == null) {
|
|
1730
|
-
let i = n.find((t) =>
|
|
1729
|
+
let i = n.find((t) => X(t, r) === e);
|
|
1731
1730
|
i && t.set(e, i);
|
|
1732
1731
|
}
|
|
1733
1732
|
}
|
|
1734
1733
|
function f(n, i, o) {
|
|
1735
1734
|
let s = e.rowKey.value, c = /* @__PURE__ */ new Map();
|
|
1736
1735
|
for (let e of n) {
|
|
1737
|
-
let n = i.find((t) =>
|
|
1736
|
+
let n = i.find((t) => X(t, s) === e), r = t.get(e);
|
|
1738
1737
|
c.set(e, n ?? r);
|
|
1739
1738
|
}
|
|
1740
1739
|
t.clear();
|
|
@@ -1761,11 +1760,11 @@ function zn(e) {
|
|
|
1761
1760
|
}
|
|
1762
1761
|
//#endregion
|
|
1763
1762
|
//#region src/hooks/useTable.ts
|
|
1764
|
-
var
|
|
1765
|
-
function
|
|
1763
|
+
var Vn = [];
|
|
1764
|
+
function Hn(e, t) {
|
|
1766
1765
|
let n = w({}), r = /* @__PURE__ */ new Set();
|
|
1767
1766
|
function a(e = {}) {
|
|
1768
|
-
let i =
|
|
1767
|
+
let i = Xt({}, e);
|
|
1769
1768
|
for (let e of r) e in i || (delete n[e], r.delete(e));
|
|
1770
1769
|
Object.assign(n, i);
|
|
1771
1770
|
for (let e of Object.keys(i)) r.add(e);
|
|
@@ -1815,11 +1814,11 @@ function Vn(e, t) {
|
|
|
1815
1814
|
sync: () => o.value?.rowsSelection?.sync?.()
|
|
1816
1815
|
};
|
|
1817
1816
|
function b(e, t) {
|
|
1818
|
-
n.searchMap &&= n.searchMap.map((n) => n.name === e ?
|
|
1817
|
+
n.searchMap &&= n.searchMap.map((n) => n.name === e ? Xt({}, n, t) : n);
|
|
1819
1818
|
}
|
|
1820
1819
|
return {
|
|
1821
1820
|
loading: l,
|
|
1822
|
-
dataSource: i(() => o.value?.dataSource?.value ??
|
|
1821
|
+
dataSource: i(() => o.value?.dataSource?.value ?? Vn),
|
|
1823
1822
|
requestSearch: c,
|
|
1824
1823
|
selectedKeys: _,
|
|
1825
1824
|
selectedItems: v,
|
|
@@ -1839,14 +1838,14 @@ function Vn(e, t) {
|
|
|
1839
1838
|
}
|
|
1840
1839
|
//#endregion
|
|
1841
1840
|
//#region src/hooks/useTableForm.ts
|
|
1842
|
-
function
|
|
1841
|
+
function Un(e) {
|
|
1843
1842
|
let t = e.reduce((e, t) => t.order === void 0 ? e : Math.max(e, t.order), 0), n = e.map((e) => e.order === void 0 ? (t += 1, {
|
|
1844
1843
|
...e,
|
|
1845
1844
|
order: t
|
|
1846
1845
|
}) : e);
|
|
1847
1846
|
return n.sort((e, t) => (e.order ?? 0) - (t.order ?? 0)), n;
|
|
1848
1847
|
}
|
|
1849
|
-
function
|
|
1848
|
+
function Wn(e) {
|
|
1850
1849
|
let t = {};
|
|
1851
1850
|
for (let n of e) {
|
|
1852
1851
|
let e = n.valueType ?? "text";
|
|
@@ -1854,22 +1853,22 @@ function Un(e) {
|
|
|
1854
1853
|
}
|
|
1855
1854
|
return t;
|
|
1856
1855
|
}
|
|
1857
|
-
function
|
|
1856
|
+
function Gn(e) {
|
|
1858
1857
|
let { searchMap: t, columns: n } = e, r = i(() => {
|
|
1859
1858
|
let e = t.value, r = n.value.filter((e) => e.searchConfig).map((e) => ({
|
|
1860
1859
|
...e.searchConfig,
|
|
1861
1860
|
order: e.searchConfig.order ?? e.order ?? 0
|
|
1862
1861
|
}));
|
|
1863
|
-
return
|
|
1864
|
-
}), a = i(() =>
|
|
1862
|
+
return Un([...e, ...r]);
|
|
1863
|
+
}), a = i(() => Wn(r.value)), o = T({});
|
|
1865
1864
|
k(() => a.value, (e) => {
|
|
1866
|
-
o.value =
|
|
1865
|
+
o.value = Yt(D(e));
|
|
1867
1866
|
}, {
|
|
1868
1867
|
deep: !0,
|
|
1869
1868
|
immediate: !0
|
|
1870
1869
|
});
|
|
1871
1870
|
function s() {
|
|
1872
|
-
let e =
|
|
1871
|
+
let e = Yt(D(o.value));
|
|
1873
1872
|
for (let t of r.value) {
|
|
1874
1873
|
let n = t.valueType ?? "text", r = t.name;
|
|
1875
1874
|
if (n === "text" && (e[r] = o.value[r] ?? t.initialValue), n === "dateRange" && (t.rangeStartName || t.rangeEndName)) {
|
|
@@ -1892,7 +1891,7 @@ function Wn(e) {
|
|
|
1892
1891
|
return e;
|
|
1893
1892
|
}
|
|
1894
1893
|
function c() {
|
|
1895
|
-
let e =
|
|
1894
|
+
let e = Yt(D(a.value));
|
|
1896
1895
|
o.value = e;
|
|
1897
1896
|
for (let t of r.value) if (t.valueType === "dateRange" && (t.rangeStartName || t.rangeEndName)) {
|
|
1898
1897
|
let n = t.rangeStartName || "start", r = t.rangeEndName || "end", i = e[n], a = e[r];
|
|
@@ -1913,24 +1912,24 @@ function Wn(e) {
|
|
|
1913
1912
|
}
|
|
1914
1913
|
//#endregion
|
|
1915
1914
|
//#region src/hooks/useTableScroll.ts
|
|
1916
|
-
var
|
|
1915
|
+
var Kn = 150, qn = 60, Jn = {
|
|
1917
1916
|
desktop: 400,
|
|
1918
1917
|
mobile: 235
|
|
1919
1918
|
};
|
|
1920
|
-
function
|
|
1919
|
+
function Yn(e) {
|
|
1921
1920
|
if (e === !1) return {
|
|
1922
1921
|
mode: "disabled",
|
|
1923
1922
|
breakpoint: "xl",
|
|
1924
1923
|
modal: !1,
|
|
1925
|
-
modalY:
|
|
1924
|
+
modalY: Jn,
|
|
1926
1925
|
actionFixed: !1
|
|
1927
1926
|
};
|
|
1928
1927
|
let t = typeof e?.modalY == "number" ? {
|
|
1929
1928
|
desktop: e.modalY,
|
|
1930
1929
|
mobile: e.modalY
|
|
1931
1930
|
} : {
|
|
1932
|
-
desktop: e?.modalY?.desktop ??
|
|
1933
|
-
mobile: e?.modalY?.mobile ??
|
|
1931
|
+
desktop: e?.modalY?.desktop ?? Jn.desktop,
|
|
1932
|
+
mobile: e?.modalY?.mobile ?? Jn.mobile
|
|
1934
1933
|
}, n = e?.mode ?? "auto";
|
|
1935
1934
|
return {
|
|
1936
1935
|
mode: n,
|
|
@@ -1940,21 +1939,21 @@ function Jn(e) {
|
|
|
1940
1939
|
actionFixed: n === "disabled" ? !1 : e?.actionFixed ?? "auto"
|
|
1941
1940
|
};
|
|
1942
1941
|
}
|
|
1943
|
-
function
|
|
1942
|
+
function Xn(e, t, n) {
|
|
1944
1943
|
return typeof e == "number" ? n >= e : !!t[e];
|
|
1945
1944
|
}
|
|
1946
|
-
function
|
|
1945
|
+
function Zn(e) {
|
|
1947
1946
|
let t = Number.parseInt(String(e.width ?? ""), 10);
|
|
1948
|
-
return Number.isFinite(t) && t > 0 ? t :
|
|
1947
|
+
return Number.isFinite(t) && t > 0 ? t : Kn;
|
|
1949
1948
|
}
|
|
1950
|
-
function
|
|
1951
|
-
return e.reduce((e, t) => e +
|
|
1949
|
+
function Qn(e, t) {
|
|
1950
|
+
return e.reduce((e, t) => e + Zn(t), 0) + (t ? qn : 0);
|
|
1952
1951
|
}
|
|
1953
|
-
function
|
|
1954
|
-
let t = i(() =>
|
|
1952
|
+
function $n(e) {
|
|
1953
|
+
let t = i(() => Yn(e.scrollPolicy.value)), n = i(() => {
|
|
1955
1954
|
let n = t.value;
|
|
1956
|
-
return
|
|
1957
|
-
}), r = i(() =>
|
|
1955
|
+
return Xn(n.breakpoint, e.screens.value, e.screenWidth.value);
|
|
1956
|
+
}), r = i(() => Qn(e.columns.value, !!e.rowSelection.value)), a = i(() => {
|
|
1958
1957
|
let i = t.value, a = e.scroll.value;
|
|
1959
1958
|
if (i.mode === "disabled") return {};
|
|
1960
1959
|
if (i.mode === "manual") return a ?? {};
|
|
@@ -1973,16 +1972,16 @@ function Qn(e) {
|
|
|
1973
1972
|
}
|
|
1974
1973
|
//#endregion
|
|
1975
1974
|
//#region src/hooks/useTableSize.ts
|
|
1976
|
-
var
|
|
1975
|
+
var er = new Set([
|
|
1977
1976
|
"small",
|
|
1978
1977
|
"medium",
|
|
1979
1978
|
"middle",
|
|
1980
1979
|
"large"
|
|
1981
|
-
]),
|
|
1982
|
-
function
|
|
1983
|
-
let t = i(() => e.size.value ??
|
|
1980
|
+
]), tr = "middle";
|
|
1981
|
+
function nr(e) {
|
|
1982
|
+
let t = i(() => e.size.value ?? tr);
|
|
1984
1983
|
function n(t) {
|
|
1985
|
-
|
|
1984
|
+
er.has(t) && e.onChange?.(t);
|
|
1986
1985
|
}
|
|
1987
1986
|
return {
|
|
1988
1987
|
tableSize: t,
|
|
@@ -1991,7 +1990,7 @@ function tr(e) {
|
|
|
1991
1990
|
}
|
|
1992
1991
|
//#endregion
|
|
1993
1992
|
//#region src/components/ScrollBar/util.ts
|
|
1994
|
-
var
|
|
1993
|
+
var rr = {
|
|
1995
1994
|
vertical: {
|
|
1996
1995
|
offset: "offsetHeight",
|
|
1997
1996
|
scroll: "scrollTop",
|
|
@@ -2013,13 +2012,13 @@ var nr = {
|
|
|
2013
2012
|
direction: "left"
|
|
2014
2013
|
}
|
|
2015
2014
|
};
|
|
2016
|
-
function
|
|
2015
|
+
function ir({ move: e, size: t, bar: n }) {
|
|
2017
2016
|
return {
|
|
2018
2017
|
[n.size]: t,
|
|
2019
2018
|
transform: `translate${n.axis}(${e}%)`
|
|
2020
2019
|
};
|
|
2021
2020
|
}
|
|
2022
|
-
var
|
|
2021
|
+
var ar = /* @__PURE__ */ o({
|
|
2023
2022
|
name: "ScrollBarThumb",
|
|
2024
2023
|
inheritAttrs: !1,
|
|
2025
2024
|
props: {
|
|
@@ -2037,7 +2036,7 @@ var ir = /* @__PURE__ */ o({
|
|
|
2037
2036
|
}
|
|
2038
2037
|
},
|
|
2039
2038
|
setup(e) {
|
|
2040
|
-
let t =
|
|
2039
|
+
let t = kn(), n = T(), r = T(), o = T({}), s = T(!1), c = !1, l = !1, u = 0, d = 0, f = i(() => rr[e.vertical ? "vertical" : "horizontal"]), p = i(() => ir({
|
|
2041
2040
|
size: e.size,
|
|
2042
2041
|
move: e.move,
|
|
2043
2042
|
bar: f.value
|
|
@@ -2079,8 +2078,8 @@ var ir = /* @__PURE__ */ o({
|
|
|
2079
2078
|
}), () => {
|
|
2080
2079
|
if (!t) return null;
|
|
2081
2080
|
let i = f.value.key === "vertical" ? {
|
|
2082
|
-
height: `calc(100% - ${
|
|
2083
|
-
top:
|
|
2081
|
+
height: `calc(100% - ${M(t.tableHeaderHeight.value + 1)})`,
|
|
2082
|
+
top: M(t.tableHeaderHeight.value + 1)
|
|
2084
2083
|
} : {};
|
|
2085
2084
|
return a("div", {
|
|
2086
2085
|
ref: n,
|
|
@@ -2098,7 +2097,7 @@ var ir = /* @__PURE__ */ o({
|
|
|
2098
2097
|
}, null)]);
|
|
2099
2098
|
};
|
|
2100
2099
|
}
|
|
2101
|
-
}),
|
|
2100
|
+
}), or = /* @__PURE__ */ o({
|
|
2102
2101
|
name: "ScrollBarBar",
|
|
2103
2102
|
inheritAttrs: !1,
|
|
2104
2103
|
props: {
|
|
@@ -2120,7 +2119,7 @@ var ir = /* @__PURE__ */ o({
|
|
|
2120
2119
|
}
|
|
2121
2120
|
},
|
|
2122
2121
|
setup(e, { expose: n }) {
|
|
2123
|
-
let r =
|
|
2122
|
+
let r = kn(), i = T(0), o = T(0), s = T(""), c = T(""), l = T(1), u = T(1);
|
|
2124
2123
|
function d(e) {
|
|
2125
2124
|
if (!e) return;
|
|
2126
2125
|
let t = e.offsetHeight - 4, n = e.offsetWidth - 4;
|
|
@@ -2137,13 +2136,13 @@ var ir = /* @__PURE__ */ o({
|
|
|
2137
2136
|
}), n({
|
|
2138
2137
|
update: f,
|
|
2139
2138
|
handleScroll: d
|
|
2140
|
-
}), () => r ? a(t, null, [a(
|
|
2139
|
+
}), () => r ? a(t, null, [a(ar, {
|
|
2141
2140
|
move: i.value,
|
|
2142
2141
|
barStyle: e.barStyle.x,
|
|
2143
2142
|
ratio: u.value,
|
|
2144
2143
|
size: s.value,
|
|
2145
2144
|
always: e.always
|
|
2146
|
-
}, null), e.hasScrollY && a(
|
|
2145
|
+
}, null), e.hasScrollY && a(ar, {
|
|
2147
2146
|
move: o.value,
|
|
2148
2147
|
barStyle: e.barStyle.y,
|
|
2149
2148
|
ratio: l.value,
|
|
@@ -2155,38 +2154,38 @@ var ir = /* @__PURE__ */ o({
|
|
|
2155
2154
|
});
|
|
2156
2155
|
//#endregion
|
|
2157
2156
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
2158
|
-
function
|
|
2157
|
+
function sr(e) {
|
|
2159
2158
|
return e == null || typeof e != "object" && typeof e != "function";
|
|
2160
2159
|
}
|
|
2161
2160
|
//#endregion
|
|
2162
2161
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
2163
|
-
function
|
|
2162
|
+
function cr(e) {
|
|
2164
2163
|
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
2165
2164
|
}
|
|
2166
2165
|
//#endregion
|
|
2167
2166
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
2168
|
-
function
|
|
2167
|
+
function lr(e) {
|
|
2169
2168
|
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
2170
2169
|
}
|
|
2171
2170
|
//#endregion
|
|
2172
2171
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
2173
|
-
function
|
|
2172
|
+
function ur(e) {
|
|
2174
2173
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
2175
2174
|
}
|
|
2176
2175
|
//#endregion
|
|
2177
2176
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
2178
|
-
var
|
|
2177
|
+
var dr = "[object RegExp]", fr = "[object String]", pr = "[object Number]", mr = "[object Boolean]", hr = "[object Arguments]", gr = "[object Symbol]", _r = "[object Date]", vr = "[object Map]", yr = "[object Set]", br = "[object Array]", xr = "[object ArrayBuffer]", Sr = "[object Object]", Cr = "[object DataView]", wr = "[object Uint8Array]", Tr = "[object Uint8ClampedArray]", Er = "[object Uint16Array]", Dr = "[object Uint32Array]", Or = "[object Int8Array]", kr = "[object Int16Array]", Ar = "[object Int32Array]", jr = "[object Float32Array]", Mr = "[object Float64Array]";
|
|
2179
2178
|
//#endregion
|
|
2180
2179
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
2181
|
-
function
|
|
2180
|
+
function Z(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
2182
2181
|
let a = i?.(e, t, n, r);
|
|
2183
2182
|
if (a !== void 0) return a;
|
|
2184
|
-
if (
|
|
2183
|
+
if (sr(e)) return e;
|
|
2185
2184
|
if (r.has(e)) return r.get(e);
|
|
2186
2185
|
if (Array.isArray(e)) {
|
|
2187
2186
|
let t = Array(e.length);
|
|
2188
2187
|
r.set(e, t);
|
|
2189
|
-
for (let a = 0; a < e.length; a++) t[a] =
|
|
2188
|
+
for (let a = 0; a < e.length; a++) t[a] = Z(e[a], a, n, r, i);
|
|
2190
2189
|
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
2191
2190
|
}
|
|
2192
2191
|
if (e instanceof Date) return new Date(e.getTime());
|
|
@@ -2197,20 +2196,20 @@ function Mr(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
|
2197
2196
|
if (e instanceof Map) {
|
|
2198
2197
|
let t = /* @__PURE__ */ new Map();
|
|
2199
2198
|
r.set(e, t);
|
|
2200
|
-
for (let [a, o] of e) t.set(a,
|
|
2199
|
+
for (let [a, o] of e) t.set(a, Z(o, a, n, r, i));
|
|
2201
2200
|
return t;
|
|
2202
2201
|
}
|
|
2203
2202
|
if (e instanceof Set) {
|
|
2204
2203
|
let t = /* @__PURE__ */ new Set();
|
|
2205
2204
|
r.set(e, t);
|
|
2206
|
-
for (let a of e) t.add(
|
|
2205
|
+
for (let a of e) t.add(Z(a, void 0, n, r, i));
|
|
2207
2206
|
return t;
|
|
2208
2207
|
}
|
|
2209
2208
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
|
|
2210
|
-
if (
|
|
2209
|
+
if (cr(e)) {
|
|
2211
2210
|
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
2212
2211
|
r.set(e, t);
|
|
2213
|
-
for (let a = 0; a < e.length; a++) t[a] =
|
|
2212
|
+
for (let a = 0; a < e.length; a++) t[a] = Z(e[a], a, n, r, i);
|
|
2214
2213
|
return t;
|
|
2215
2214
|
}
|
|
2216
2215
|
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
@@ -2249,48 +2248,48 @@ function Mr(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
|
2249
2248
|
return e;
|
|
2250
2249
|
}
|
|
2251
2250
|
function Q(e, t, n = e, r, i) {
|
|
2252
|
-
let a = [...Object.keys(t), ...
|
|
2251
|
+
let a = [...Object.keys(t), ...lr(t)];
|
|
2253
2252
|
for (let o = 0; o < a.length; o++) {
|
|
2254
2253
|
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
2255
|
-
(c == null || c.writable) && (e[s] =
|
|
2254
|
+
(c == null || c.writable) && (e[s] = Z(t[s], s, n, r, i));
|
|
2256
2255
|
}
|
|
2257
2256
|
}
|
|
2258
2257
|
function Nr(e) {
|
|
2259
|
-
switch (
|
|
2260
|
-
case
|
|
2261
|
-
case yr:
|
|
2258
|
+
switch (ur(e)) {
|
|
2259
|
+
case hr:
|
|
2262
2260
|
case br:
|
|
2263
|
-
case
|
|
2264
|
-
case
|
|
2265
|
-
case
|
|
2266
|
-
case
|
|
2261
|
+
case xr:
|
|
2262
|
+
case Cr:
|
|
2263
|
+
case mr:
|
|
2264
|
+
case _r:
|
|
2267
2265
|
case jr:
|
|
2268
|
-
case
|
|
2266
|
+
case Mr:
|
|
2269
2267
|
case Or:
|
|
2270
2268
|
case kr:
|
|
2271
|
-
case
|
|
2272
|
-
case fr:
|
|
2273
|
-
case xr:
|
|
2274
|
-
case ur:
|
|
2269
|
+
case Ar:
|
|
2275
2270
|
case vr:
|
|
2271
|
+
case pr:
|
|
2272
|
+
case Sr:
|
|
2276
2273
|
case dr:
|
|
2277
|
-
case
|
|
2278
|
-
case
|
|
2274
|
+
case yr:
|
|
2275
|
+
case fr:
|
|
2276
|
+
case gr:
|
|
2279
2277
|
case wr:
|
|
2280
2278
|
case Tr:
|
|
2281
|
-
case Er:
|
|
2279
|
+
case Er:
|
|
2280
|
+
case Dr: return !0;
|
|
2282
2281
|
default: return !1;
|
|
2283
2282
|
}
|
|
2284
2283
|
}
|
|
2285
2284
|
//#endregion
|
|
2286
2285
|
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/object/cloneDeep.mjs
|
|
2287
2286
|
function Pr(e) {
|
|
2288
|
-
return
|
|
2287
|
+
return Z(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
|
|
2289
2288
|
}
|
|
2290
2289
|
//#endregion
|
|
2291
2290
|
//#region src/utils/dateFormat.ts
|
|
2292
2291
|
function $(e, t) {
|
|
2293
|
-
return typeof t == "function" ? t((0,
|
|
2292
|
+
return typeof t == "function" ? t((0, Y.default)(e)) : (0, Y.default)(e).format(t);
|
|
2294
2293
|
}
|
|
2295
2294
|
function Fr(e, t) {
|
|
2296
2295
|
return t ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
|
|
@@ -2298,7 +2297,7 @@ function Fr(e, t) {
|
|
|
2298
2297
|
function Ir(e, t, n = "string") {
|
|
2299
2298
|
if (!Array.isArray(e) || e.length !== 2) return;
|
|
2300
2299
|
let [r, i] = e, a, o;
|
|
2301
|
-
return Array.isArray(t) ? (a = t[0], o = t[1]) : typeof t == "object" && t !== void 0 ? (a = t.format, o = t.format) : (a = t, o = t), n === "dayjs" ? [(0,
|
|
2300
|
+
return Array.isArray(t) ? (a = t[0], o = t[1]) : typeof t == "object" && t !== void 0 ? (a = t.format, o = t.format) : (a = t, o = t), n === "dayjs" ? [(0, Y.default)(r), (0, Y.default)(i)] : [r ? $(r, a) : "", i ? $(i, o) : ""];
|
|
2302
2301
|
}
|
|
2303
2302
|
//#endregion
|
|
2304
2303
|
//#region src/components/SearchForm/CollapseToggle.tsx
|
|
@@ -2337,9 +2336,9 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2337
2336
|
}, [e.collapseRender(e.collapsed)]) : a("span", {
|
|
2338
2337
|
class: `${e.prefixCls}-search-control-text`,
|
|
2339
2338
|
onClick: () => e.onToggle(!e.collapsed)
|
|
2340
|
-
}, [e.collapsed ? "展开" : "收起", e.collapsed ? a(
|
|
2339
|
+
}, [e.collapsed ? "展开" : "收起", e.collapsed ? a(pe, null, null) : a(ve, null, null)]);
|
|
2341
2340
|
}
|
|
2342
|
-
}), { RangePicker: Rr } =
|
|
2341
|
+
}), { RangePicker: Rr } = N, zr = /* @__PURE__ */ o({
|
|
2343
2342
|
name: "ProTableFormItemContainer",
|
|
2344
2343
|
props: {
|
|
2345
2344
|
prefixCls: {
|
|
@@ -2372,7 +2371,7 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2372
2371
|
}
|
|
2373
2372
|
},
|
|
2374
2373
|
setup(e) {
|
|
2375
|
-
let { optionList: t, loading: n } =
|
|
2374
|
+
let { optionList: t, loading: n } = zn({
|
|
2376
2375
|
fetch: e.record.request?.fetch,
|
|
2377
2376
|
manual: e.record.request?.manual,
|
|
2378
2377
|
debounceTime: e.record.request?.debounceTime
|
|
@@ -2392,15 +2391,15 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2392
2391
|
allowClear: e.record.allowClear ?? !0,
|
|
2393
2392
|
...t
|
|
2394
2393
|
};
|
|
2395
|
-
return e.autoRequest ? a(
|
|
2394
|
+
return e.autoRequest ? a(P.Search, h(n, {
|
|
2396
2395
|
onSearch: () => e.onSubmit?.(),
|
|
2397
2396
|
onChange: (t) => {
|
|
2398
2397
|
e.formState[e.record.name] = t.target?.value ?? t;
|
|
2399
2398
|
}
|
|
2400
|
-
}), null) : a(
|
|
2399
|
+
}), null) : a(P, h(n, { onChange: (e) => i(e.target?.value ?? e) }), null);
|
|
2401
2400
|
}
|
|
2402
2401
|
function s() {
|
|
2403
|
-
return a(
|
|
2402
|
+
return a(ae, h({
|
|
2404
2403
|
style: { width: "100%" },
|
|
2405
2404
|
value: e.formState[e.record.name],
|
|
2406
2405
|
placeholder: e.record.placeholder || "请输入",
|
|
@@ -2413,13 +2412,13 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2413
2412
|
class: `${e.prefixCls}-search-input-compact`,
|
|
2414
2413
|
style: { width: "100%" }
|
|
2415
2414
|
}, { default: () => [
|
|
2416
|
-
a(
|
|
2415
|
+
a(ae, {
|
|
2417
2416
|
value: n?.[0],
|
|
2418
2417
|
placeholder: o[0] || "请输入",
|
|
2419
2418
|
onChange: (e) => i(e, { key: 0 }),
|
|
2420
2419
|
style: r
|
|
2421
2420
|
}, null),
|
|
2422
|
-
a(
|
|
2421
|
+
a(P, {
|
|
2423
2422
|
disabled: !0,
|
|
2424
2423
|
value: "~",
|
|
2425
2424
|
class: `${e.prefixCls}-number-range-separator`,
|
|
@@ -2429,7 +2428,7 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2429
2428
|
pointerEvents: "none"
|
|
2430
2429
|
}
|
|
2431
2430
|
}, null),
|
|
2432
|
-
a(
|
|
2431
|
+
a(ae, {
|
|
2433
2432
|
value: n?.[1],
|
|
2434
2433
|
placeholder: o[1] || "请输入",
|
|
2435
2434
|
onChange: (e) => i(e, { key: 1 }),
|
|
@@ -2439,7 +2438,7 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2439
2438
|
}
|
|
2440
2439
|
function l() {
|
|
2441
2440
|
let r = e.record.loading || n.value, o = e.record.request ? t.value : e.record.valueEnum || [], s = e.record.field ?? {};
|
|
2442
|
-
return a(
|
|
2441
|
+
return a(F, h({
|
|
2443
2442
|
style: { width: "100%" },
|
|
2444
2443
|
value: r ? void 0 : e.formState[e.record.name],
|
|
2445
2444
|
optionFilterProp: "label",
|
|
@@ -2453,7 +2452,7 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2453
2452
|
}
|
|
2454
2453
|
function u() {
|
|
2455
2454
|
let r = e.record.field ?? {}, o = e.record.loading || n.value;
|
|
2456
|
-
return a(
|
|
2455
|
+
return a(ue, h({
|
|
2457
2456
|
style: { width: "100%" },
|
|
2458
2457
|
value: e.formState[e.record.name],
|
|
2459
2458
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -2465,7 +2464,7 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2465
2464
|
}
|
|
2466
2465
|
function d() {
|
|
2467
2466
|
let r = e.record.field ?? {}, o = e.record.loading || n.value;
|
|
2468
|
-
return a(
|
|
2467
|
+
return a(ie, h({
|
|
2469
2468
|
style: { width: "100%" },
|
|
2470
2469
|
value: e.formState[e.record.name],
|
|
2471
2470
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -2477,9 +2476,9 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2477
2476
|
}
|
|
2478
2477
|
function f() {
|
|
2479
2478
|
let t = Fr(e.record.valueFormat, e.record.showTime);
|
|
2480
|
-
return a(
|
|
2479
|
+
return a(N, h({
|
|
2481
2480
|
style: { width: "100%" },
|
|
2482
|
-
value: e.formState[e.record.name] ? (0,
|
|
2481
|
+
value: e.formState[e.record.name] ? (0, Y.default)(e.formState[e.record.name]) : void 0,
|
|
2483
2482
|
placeholder: e.record.placeholder || "请选择",
|
|
2484
2483
|
allowClear: e.record.allowClear ?? !0,
|
|
2485
2484
|
format: t,
|
|
@@ -2489,10 +2488,10 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2489
2488
|
}
|
|
2490
2489
|
function p(t, n, r) {
|
|
2491
2490
|
let o = e.formState[e.record.name];
|
|
2492
|
-
return a(
|
|
2491
|
+
return a(N, h({
|
|
2493
2492
|
style: { width: "100%" },
|
|
2494
2493
|
picker: t,
|
|
2495
|
-
value: o ? (0,
|
|
2494
|
+
value: o ? (0, Y.default)(o, n) : void 0,
|
|
2496
2495
|
placeholder: r || "请选择",
|
|
2497
2496
|
allowClear: e.record.allowClear ?? !0,
|
|
2498
2497
|
onChange: (e) => i(e ? $(e, n) : null)
|
|
@@ -2513,9 +2512,9 @@ var Lr = /* @__PURE__ */ o({
|
|
|
2513
2512
|
}
|
|
2514
2513
|
function g() {
|
|
2515
2514
|
let t = e.record.valueFormat || "HH:mm:ss";
|
|
2516
|
-
return a(
|
|
2515
|
+
return a(le, h({
|
|
2517
2516
|
style: { width: "100%" },
|
|
2518
|
-
value: e.formState[e.record.name] ? (0,
|
|
2517
|
+
value: e.formState[e.record.name] ? (0, Y.default)(e.formState[e.record.name], t) : void 0,
|
|
2519
2518
|
placeholder: e.record.placeholder || "请选择",
|
|
2520
2519
|
allowClear: e.record.allowClear ?? !0,
|
|
2521
2520
|
use12Hours: e.record.use12Hours,
|
|
@@ -2665,12 +2664,12 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2665
2664
|
k(() => e.formConfig?.collapsed, (e) => {
|
|
2666
2665
|
r.value = e;
|
|
2667
2666
|
});
|
|
2668
|
-
let { getRowItemsPerBreakpoint: o } =
|
|
2669
|
-
if (s.value?.breakpoint &&
|
|
2667
|
+
let { getRowItemsPerBreakpoint: o } = lt(), s = i(() => e.formConfig), c = i(() => e.formAutoRequest), l = i(() => e.formActions), u = i(() => {
|
|
2668
|
+
if (s.value?.breakpoint && K(s.value.breakpoint) && Object.keys(s.value.breakpoint).length > 0) return s.value.breakpoint;
|
|
2670
2669
|
}), d = i(() => o(s.value?.span, u.value)), f = i(() => {
|
|
2671
2670
|
let e = s.value?.gap;
|
|
2672
2671
|
return typeof e == "number" ? `${e}px` : e ?? "16px";
|
|
2673
|
-
}), m = i(() => s.value?.label), h = i(() =>
|
|
2672
|
+
}), m = i(() => s.value?.label), h = i(() => ht(l.value?.reset) ? l.value.reset : !c.value);
|
|
2674
2673
|
function g(t, n, r) {
|
|
2675
2674
|
let i = n.name, a = n.valueType ?? "text", o = t;
|
|
2676
2675
|
switch (a) {
|
|
@@ -2712,7 +2711,7 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2712
2711
|
break;
|
|
2713
2712
|
case "dateRange": {
|
|
2714
2713
|
let e = Fr(n.valueFormat, n.showTime);
|
|
2715
|
-
o = t &&
|
|
2714
|
+
o = t && _t(t) && t.length === 2 ? Ir(t, e, "string") : null;
|
|
2716
2715
|
break;
|
|
2717
2716
|
}
|
|
2718
2717
|
case "time":
|
|
@@ -2746,7 +2745,7 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2746
2745
|
}
|
|
2747
2746
|
if (r === "numberRange") {
|
|
2748
2747
|
let e = t[i];
|
|
2749
|
-
t[i] = Array.isArray(e) && e.some((e) =>
|
|
2748
|
+
t[i] = Array.isArray(e) && e.some((e) => gt(e)) ? e : void 0;
|
|
2750
2749
|
}
|
|
2751
2750
|
}
|
|
2752
2751
|
return t;
|
|
@@ -2781,7 +2780,7 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2781
2780
|
};
|
|
2782
2781
|
}
|
|
2783
2782
|
return () => {
|
|
2784
|
-
let n = [...e.formColumns], i =
|
|
2783
|
+
let n = [...e.formColumns], i = Qt(t.default?.() || []), o = Ur([...n, ...i.map((e) => ({
|
|
2785
2784
|
...e,
|
|
2786
2785
|
order: e.props?.order ?? void 0
|
|
2787
2786
|
}))]), u = d.value, v = f.value, b = o.length, w = r.value !== !1, T = b > u, E = (t, n) => {
|
|
@@ -2815,10 +2814,10 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2815
2814
|
}, D = () => !h.value && c.value ? null : a("div", {
|
|
2816
2815
|
class: [`${e.prefixCls}-search-buttons`, e.proClasses.searchButtons],
|
|
2817
2816
|
style: e.proStyles.searchButtons
|
|
2818
|
-
}, [h.value && a(
|
|
2817
|
+
}, [h.value && a(re, {
|
|
2819
2818
|
key: "reset",
|
|
2820
2819
|
onClick: x
|
|
2821
|
-
}, { default: () => [l.value?.resetText || "重置"] }), !c.value && a(
|
|
2820
|
+
}, { default: () => [l.value?.resetText || "重置"] }), !c.value && a(re, {
|
|
2822
2821
|
key: "submit",
|
|
2823
2822
|
type: "primary",
|
|
2824
2823
|
loading: typeof e.loading == "boolean" ? e.loading : !1,
|
|
@@ -2841,7 +2840,7 @@ var Hr = /* @__PURE__ */ o({
|
|
|
2841
2840
|
}, null)])]);
|
|
2842
2841
|
}, O = e.cardBordered ? `${e.prefixCls}-search-border` : "", te = b <= u || !w ? b : Math.max(u - 1, 0);
|
|
2843
2842
|
return a("div", {
|
|
2844
|
-
class:
|
|
2843
|
+
class: J(e.proClasses.search, `${e.prefixCls}-search`, O, s.value?.className),
|
|
2845
2844
|
style: e.proStyles.search
|
|
2846
2845
|
}, [o.slice(0, te).map((e, t) => E(e, t)), ee(T, w)]);
|
|
2847
2846
|
};
|
|
@@ -2869,7 +2868,7 @@ var Wr = /* @__PURE__ */ o({
|
|
|
2869
2868
|
}
|
|
2870
2869
|
},
|
|
2871
2870
|
setup(e) {
|
|
2872
|
-
return () => a(
|
|
2871
|
+
return () => a(L, { title: e.isFullscreen ? "退出全屏" : "全屏" }, { default: () => [a("span", { onClick: e.onToggle }, [e.isFullscreen ? a(me, null, null) : a(he, null, null)])] });
|
|
2873
2872
|
}
|
|
2874
2873
|
});
|
|
2875
2874
|
//#endregion
|
|
@@ -2878,7 +2877,7 @@ function Gr(e) {
|
|
|
2878
2877
|
if (p(e)) return e;
|
|
2879
2878
|
if (!e) return null;
|
|
2880
2879
|
let { icon: t, tooltip: n, onClick: r, key: i } = e;
|
|
2881
|
-
return t && n ? a(
|
|
2880
|
+
return t && n ? a(L, {
|
|
2882
2881
|
title: n,
|
|
2883
2882
|
key: i
|
|
2884
2883
|
}, { default: () => [a("span", {
|
|
@@ -2942,7 +2941,7 @@ var Kr = /* @__PURE__ */ o({
|
|
|
2942
2941
|
}, [t.value && a("div", {
|
|
2943
2942
|
class: [`${i}-list-toolbar-title`, e.proClasses.toolbarTitle],
|
|
2944
2943
|
style: e.proStyles.toolbarTitle
|
|
2945
|
-
}, [e.headerTitle, e.headerTitleTip && a(
|
|
2944
|
+
}, [e.headerTitle, e.headerTitleTip && a(L, { title: e.titleTipText }, { default: () => [typeof e.headerTitleTip == "boolean" ? a(ge, null, null) : e.headerTitleTip] })]), n.value.length > 0 && a("div", { class: `${i}-list-toolbar-actions` }, [n.value])]) : s.value ? a("div", {
|
|
2946
2945
|
class: `${i}-list-toolbar-left`,
|
|
2947
2946
|
style: e.proStyles.toolbarLeft
|
|
2948
2947
|
}, null) : null, l = s.value ? a("div", {
|
|
@@ -3012,7 +3011,7 @@ var Jr = /* @__PURE__ */ o({
|
|
|
3012
3011
|
}
|
|
3013
3012
|
},
|
|
3014
3013
|
setup(e) {
|
|
3015
|
-
let t =
|
|
3014
|
+
let t = ot(), n = i(() => {
|
|
3016
3015
|
if (e.options === !1) return [];
|
|
3017
3016
|
let n = qr(e.options) ? e.options : {}, r = [];
|
|
3018
3017
|
if (n.reload !== !1) {
|
|
@@ -3020,10 +3019,10 @@ var Jr = /* @__PURE__ */ o({
|
|
|
3020
3019
|
if (typeof n.reload == "function") {
|
|
3021
3020
|
let t = n.reload(e);
|
|
3022
3021
|
t && r.push(t);
|
|
3023
|
-
} else r.push(a(
|
|
3022
|
+
} else r.push(a(L, {
|
|
3024
3023
|
title: "刷新",
|
|
3025
3024
|
key: "reload"
|
|
3026
|
-
}, { default: () => [a("span", { onClick: e }, [a(
|
|
3025
|
+
}, { default: () => [a("span", { onClick: e }, [a(_e, null, null)])] }));
|
|
3027
3026
|
}
|
|
3028
3027
|
return n.fullScreen !== !1 && (typeof n.fullScreen == "function" ? r.push(a(Wr, {
|
|
3029
3028
|
key: "fullscreen",
|
|
@@ -3194,7 +3193,7 @@ var ti = (e) => {
|
|
|
3194
3193
|
right: 2,
|
|
3195
3194
|
bottom: 2,
|
|
3196
3195
|
zIndex: 100,
|
|
3197
|
-
borderRadius: `calc(${
|
|
3196
|
+
borderRadius: `calc(${M(e.borderRadius)} - 2px)`,
|
|
3198
3197
|
"&.is-vertical": {
|
|
3199
3198
|
top: 2,
|
|
3200
3199
|
width: 6,
|
|
@@ -3234,7 +3233,7 @@ var ti = (e) => {
|
|
|
3234
3233
|
"&-border": {
|
|
3235
3234
|
paddingInline: e.paddingMD,
|
|
3236
3235
|
paddingBlock: e.paddingMD,
|
|
3237
|
-
paddingBlockEnd: `calc(${
|
|
3236
|
+
paddingBlockEnd: `calc(${M(e.paddingMD)} - 16px)`,
|
|
3238
3237
|
border: `${e.lineWidth} ${e.lineType} ${e.colorSplit}`,
|
|
3239
3238
|
borderRadius: e.borderRadiusLG,
|
|
3240
3239
|
marginBottom: e.marginLG,
|
|
@@ -3310,7 +3309,7 @@ var ti = (e) => {
|
|
|
3310
3309
|
content: "\":\"",
|
|
3311
3310
|
position: "relative",
|
|
3312
3311
|
marginBlock: 0,
|
|
3313
|
-
marginInlineStart: `calc(${
|
|
3312
|
+
marginInlineStart: `calc(${M(e.marginXXS)} / 2)`,
|
|
3314
3313
|
marginInlineEnd: e.marginXS
|
|
3315
3314
|
},
|
|
3316
3315
|
[`&${e.componentCls}-search-item-label-no-colon::after`]: { content: "\" \"" },
|
|
@@ -3376,7 +3375,7 @@ var ti = (e) => {
|
|
|
3376
3375
|
cursor: "pointer",
|
|
3377
3376
|
"&:hover": { color: e.colorPrimaryHover }
|
|
3378
3377
|
}
|
|
3379
|
-
} }), ii =
|
|
3378
|
+
} }), ii = j("ProTable", (e) => [
|
|
3380
3379
|
ri(e),
|
|
3381
3380
|
Zr(e),
|
|
3382
3381
|
ti(e),
|
|
@@ -3418,45 +3417,45 @@ var ti = (e) => {
|
|
|
3418
3417
|
"classes",
|
|
3419
3418
|
"styles"
|
|
3420
3419
|
], si = /* @__PURE__ */ o((e, { attrs: r, slots: o, emit: s, expose: c }) => {
|
|
3421
|
-
let { prefixCls: l } =
|
|
3420
|
+
let { prefixCls: l } = de("pro-table", e), u = fe(l), [d, f] = ii(l, u), p = ne(), m = T(), { toggle: g, isFullscreen: _ } = tt(m);
|
|
3422
3421
|
k(_, (e) => {
|
|
3423
3422
|
s("fullscreenChange", e);
|
|
3424
3423
|
});
|
|
3425
|
-
let v = i(() =>
|
|
3424
|
+
let v = i(() => J(l.value, d.value, f.value, u.value, r.class, e.proClasses?.root, Me.value)), y = i(() => [e.proStyles?.root, r.style]), { isMobile: b, screenWidth: x, screens: S } = lt(), { paginationInfo: C, paginationAlign: w, requestPagination: E, setPagination: D } = Rn({ pagination: ee(e, "pagination") }), { tableSize: O, setTableSize: te } = nr({
|
|
3426
3425
|
size: i(() => e.size),
|
|
3427
3426
|
onChange: (e) => s("sizeChange", e)
|
|
3428
|
-
}), { loading: A, setLoading: j } =
|
|
3427
|
+
}), { loading: A, setLoading: j } = In({
|
|
3429
3428
|
loading: i(() => e.loading),
|
|
3430
3429
|
onChange: (t) => e.onLoadingChange?.(t)
|
|
3431
|
-
}), { selectedRowKeys:
|
|
3430
|
+
}), { selectedRowKeys: M, selectedItems: re, mergedRowSelection: ie, select: N, selectAll: P, remove: ae, clear: F, sync: se } = Bn({
|
|
3432
3431
|
rowKey: i(() => e.rowKey),
|
|
3433
3432
|
rowSelection: i(() => e.rowSelection),
|
|
3434
3433
|
dataSource: i(() => e.dataSource ?? [])
|
|
3435
|
-
}),
|
|
3434
|
+
}), le = i(() => gn(e.columns ?? [], e.indexColumn, e.align ?? "left")), { tableScroll: L, shouldFixActionColumn: ue } = $n({
|
|
3436
3435
|
scroll: i(() => e.scroll),
|
|
3437
|
-
columns:
|
|
3436
|
+
columns: le,
|
|
3438
3437
|
rowSelection: i(() => e.rowSelection),
|
|
3439
3438
|
screens: S,
|
|
3440
3439
|
screenWidth: x,
|
|
3441
3440
|
scrollPolicy: i(() => e.scrollPolicy)
|
|
3442
|
-
}), { tableColumns:
|
|
3441
|
+
}), { tableColumns: pe, cacheColumns: me, setColumns: he } = bn({
|
|
3443
3442
|
columns: i(() => e.columns ?? []),
|
|
3444
3443
|
align: i(() => e.align ?? "left"),
|
|
3445
3444
|
indexColumn: i(() => e.indexColumn),
|
|
3446
|
-
shouldFixActionColumn:
|
|
3447
|
-
wrapColumnRender:
|
|
3445
|
+
shouldFixActionColumn: ue,
|
|
3446
|
+
wrapColumnRender: ln({
|
|
3448
3447
|
columnEmptyText: i(() => e.columnEmptyText),
|
|
3449
3448
|
prefixCls: l
|
|
3450
3449
|
}).wrapColumnRender
|
|
3451
|
-
}), { resizableColumns:
|
|
3452
|
-
columns:
|
|
3450
|
+
}), { resizableColumns: ge, resizableComponents: _e } = Cn({
|
|
3451
|
+
columns: pe,
|
|
3453
3452
|
onResize: (e, t) => s("resizeColumn", e, t)
|
|
3454
|
-
}),
|
|
3453
|
+
}), ve = i(() => e.form === !1 ? void 0 : e.form), ye = i(() => e.form === !1 ? e.autoRequest ?? !0 : e.form?.autoRequest ?? e.autoRequest ?? !0), be = i(() => {
|
|
3455
3454
|
if (e.form !== !1) return e.form?.actions;
|
|
3456
|
-
}), { formColumns:
|
|
3455
|
+
}), { formColumns: xe, defaultFormSearch: Se, formState: Ce, getFormSearch: we, resetFormState: Te } = Gn({
|
|
3457
3456
|
searchMap: i(() => e.searchMap ?? []),
|
|
3458
3457
|
columns: i(() => e.columns ?? [])
|
|
3459
|
-
}), { dataSource:
|
|
3458
|
+
}), { dataSource: Ee, setTableDataList: De, operateTableDataRow: Oe, handleTableChange: R, reload: z, run: ke } = Tn({
|
|
3460
3459
|
rowKey: i(() => e.rowKey),
|
|
3461
3460
|
polling: i(() => e.polling ?? !1),
|
|
3462
3461
|
pollingTime: i(() => e.pollingTime ?? 2e3),
|
|
@@ -3468,7 +3467,7 @@ var ti = (e) => {
|
|
|
3468
3467
|
autoRequest: i(() => e.autoRequest ?? !0),
|
|
3469
3468
|
debounceTime: i(() => e.debounceTime ?? 10),
|
|
3470
3469
|
params: i(() => e.params),
|
|
3471
|
-
defaultFormSearch:
|
|
3470
|
+
defaultFormSearch: Se,
|
|
3472
3471
|
onLoadingChange: e.onLoadingChange,
|
|
3473
3472
|
onRequestError: e.onRequestError,
|
|
3474
3473
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit
|
|
@@ -3477,66 +3476,66 @@ var ti = (e) => {
|
|
|
3477
3476
|
paginationInfo: C,
|
|
3478
3477
|
setPagination: D,
|
|
3479
3478
|
setLoading: j,
|
|
3480
|
-
setColumns:
|
|
3481
|
-
removeRowKeys:
|
|
3482
|
-
syncSelectedRows:
|
|
3483
|
-
columns:
|
|
3479
|
+
setColumns: he,
|
|
3480
|
+
removeRowKeys: ae,
|
|
3481
|
+
syncSelectedRows: se,
|
|
3482
|
+
columns: me
|
|
3484
3483
|
});
|
|
3485
|
-
|
|
3484
|
+
Pn({
|
|
3486
3485
|
enabled: i(() => e.keepAliveReload ?? !1),
|
|
3487
|
-
reload:
|
|
3486
|
+
reload: z
|
|
3488
3487
|
});
|
|
3489
|
-
let
|
|
3490
|
-
fitPage: i(() => !
|
|
3491
|
-
cardEl:
|
|
3488
|
+
let Ae = T(), { scrollY: B, overflowHidden: je, fullPageClass: Me, scrollEl: Ne, barRef: V } = Mn({
|
|
3489
|
+
fitPage: i(() => !L.value?.y && !!e.fitPage),
|
|
3490
|
+
cardEl: Ae,
|
|
3492
3491
|
prefixCls: l
|
|
3493
|
-
}),
|
|
3494
|
-
...
|
|
3495
|
-
...
|
|
3492
|
+
}), Pe = i(() => ({
|
|
3493
|
+
...L.value ?? {},
|
|
3494
|
+
...B.value > 0 ? { y: B.value } : {}
|
|
3496
3495
|
}));
|
|
3497
|
-
|
|
3498
|
-
reload:
|
|
3496
|
+
at({
|
|
3497
|
+
reload: z,
|
|
3499
3498
|
setPagination: D,
|
|
3500
3499
|
tableSize: O,
|
|
3501
3500
|
setTableSize: te,
|
|
3502
|
-
formAutoRequest:
|
|
3503
|
-
formConfig:
|
|
3504
|
-
formActions:
|
|
3501
|
+
formAutoRequest: ye,
|
|
3502
|
+
formConfig: ve,
|
|
3503
|
+
formActions: be,
|
|
3505
3504
|
isMobile: b,
|
|
3506
3505
|
screenWidth: x,
|
|
3507
3506
|
toggleFullscreen: g,
|
|
3508
3507
|
isFullscreen: _
|
|
3509
3508
|
});
|
|
3510
|
-
let
|
|
3511
|
-
function
|
|
3512
|
-
if (
|
|
3513
|
-
|
|
3509
|
+
let Fe = i(() => !!(e.customRender || o.customRender)), Ie = i(() => e.form === !1 ? !1 : xe.value.length > 0 || !!o.form);
|
|
3510
|
+
function Le(t, n) {
|
|
3511
|
+
if (ye.value) {
|
|
3512
|
+
z({ params: t });
|
|
3514
3513
|
return;
|
|
3515
3514
|
}
|
|
3516
|
-
n === "reset" ? (s("reset", t), e.request &&
|
|
3515
|
+
n === "reset" ? (s("reset", t), e.request && be.value?.resetReload && z({ params: t })) : e.request && (s("submit", t), z({ params: t }));
|
|
3517
3516
|
}
|
|
3518
|
-
function
|
|
3517
|
+
function Re(e) {
|
|
3519
3518
|
let t = C.value;
|
|
3520
3519
|
if (!t) return e;
|
|
3521
3520
|
let { current: n = 1, pageSize: r = 10 } = t;
|
|
3522
3521
|
return e.filter((e, t) => t >= (n - 1) * r && t < n * r);
|
|
3523
3522
|
}
|
|
3524
|
-
function
|
|
3523
|
+
function ze() {
|
|
3525
3524
|
let t = e.customRender || o.customRender;
|
|
3526
3525
|
if (!t) return null;
|
|
3527
|
-
let n =
|
|
3526
|
+
let n = Ee.value;
|
|
3528
3527
|
return n?.length ? typeof t == "function" ? t({
|
|
3529
3528
|
dataSource: n,
|
|
3530
|
-
currentData:
|
|
3529
|
+
currentData: Re(n)
|
|
3531
3530
|
}) : null : Be();
|
|
3532
3531
|
}
|
|
3533
3532
|
function Be() {
|
|
3534
|
-
let t =
|
|
3533
|
+
let t = tn({
|
|
3535
3534
|
slots: o,
|
|
3536
3535
|
props: e,
|
|
3537
3536
|
key: "emptyText"
|
|
3538
3537
|
});
|
|
3539
|
-
return t
|
|
3538
|
+
return t && p?.renderEmpty?.value ? t || p?.renderEmpty?.value?.() : null;
|
|
3540
3539
|
}
|
|
3541
3540
|
function Ve(e, t) {
|
|
3542
3541
|
Ue({
|
|
@@ -3551,7 +3550,7 @@ var ti = (e) => {
|
|
|
3551
3550
|
let n = e.classes, r = e.proClasses?.table;
|
|
3552
3551
|
(n || r) && (t.classes = {
|
|
3553
3552
|
...n ?? {},
|
|
3554
|
-
...r ? { root:
|
|
3553
|
+
...r ? { root: J(n?.root, r) } : {}
|
|
3555
3554
|
});
|
|
3556
3555
|
continue;
|
|
3557
3556
|
}
|
|
@@ -3561,7 +3560,7 @@ var ti = (e) => {
|
|
|
3561
3560
|
return t;
|
|
3562
3561
|
});
|
|
3563
3562
|
function Ue(t, n, r, i) {
|
|
3564
|
-
|
|
3563
|
+
R(t, n, r, i), e.onChange?.(t, n, r, i);
|
|
3565
3564
|
}
|
|
3566
3565
|
function U(e) {
|
|
3567
3566
|
s("update:expandedRowKeys", e);
|
|
@@ -3581,44 +3580,44 @@ var ti = (e) => {
|
|
|
3581
3580
|
let t = {};
|
|
3582
3581
|
for (let e of W) o[e] && (t[e] = o[e]);
|
|
3583
3582
|
o.bodyCell && (t.bodyCell = (e) => o.bodyCell(e)), o.headerCell && (t.headerCell = (e) => o.headerCell(e));
|
|
3584
|
-
let n =
|
|
3583
|
+
let n = tn({
|
|
3585
3584
|
slots: o,
|
|
3586
3585
|
props: e,
|
|
3587
3586
|
key: "emptyText"
|
|
3588
3587
|
});
|
|
3589
|
-
return (n || p?.
|
|
3588
|
+
return (n || p?.renderEmpty?.value) && (t.emptyText = () => n || p?.renderEmpty?.value?.()), t;
|
|
3590
3589
|
});
|
|
3591
3590
|
return c({
|
|
3592
3591
|
actionRef: () => ({
|
|
3593
3592
|
loading: A,
|
|
3594
|
-
dataSource:
|
|
3593
|
+
dataSource: Ee,
|
|
3595
3594
|
pageInfo: E,
|
|
3596
|
-
reload:
|
|
3595
|
+
reload: z,
|
|
3597
3596
|
reloadAndReset: (e) => {
|
|
3598
|
-
D({ current: 1 }),
|
|
3597
|
+
D({ current: 1 }), Te(), ke(), e?.callBack?.();
|
|
3599
3598
|
},
|
|
3600
3599
|
setPagination: D,
|
|
3601
3600
|
setPageInfo: (e, t, n, r) => {
|
|
3602
|
-
D(e),
|
|
3601
|
+
D(e), R(e, t ?? {}, n ?? {}, r ?? {});
|
|
3603
3602
|
},
|
|
3604
|
-
setTableDataList:
|
|
3605
|
-
operateTableDataRow:
|
|
3603
|
+
setTableDataList: De,
|
|
3604
|
+
operateTableDataRow: Oe,
|
|
3606
3605
|
setLoading: j,
|
|
3607
|
-
selectedKeys:
|
|
3608
|
-
selectedItems:
|
|
3606
|
+
selectedKeys: M,
|
|
3607
|
+
selectedItems: re,
|
|
3609
3608
|
rowsSelection: {
|
|
3610
|
-
clear:
|
|
3611
|
-
select:
|
|
3612
|
-
selectAll:
|
|
3613
|
-
remove:
|
|
3614
|
-
sync:
|
|
3609
|
+
clear: F,
|
|
3610
|
+
select: N,
|
|
3611
|
+
selectAll: P,
|
|
3612
|
+
remove: ae,
|
|
3613
|
+
sync: se
|
|
3615
3614
|
}
|
|
3616
3615
|
}),
|
|
3617
3616
|
formRef: () => ({
|
|
3618
|
-
getFormSearch:
|
|
3619
|
-
getFormInnerState: () =>
|
|
3617
|
+
getFormSearch: we,
|
|
3618
|
+
getFormInnerState: () => Ce.value,
|
|
3620
3619
|
restFormState: (e) => {
|
|
3621
|
-
|
|
3620
|
+
Te(), e?.();
|
|
3622
3621
|
}
|
|
3623
3622
|
})
|
|
3624
3623
|
}), () => {
|
|
@@ -3628,25 +3627,25 @@ var ti = (e) => {
|
|
|
3628
3627
|
class: v.value,
|
|
3629
3628
|
style: y.value
|
|
3630
3629
|
}, [a("div", {
|
|
3631
|
-
class:
|
|
3630
|
+
class: J(e.proClasses?.content, `${l.value}-content`),
|
|
3632
3631
|
style: e.proStyles?.content
|
|
3633
|
-
}, [
|
|
3632
|
+
}, [Ie.value && a(Hr, {
|
|
3634
3633
|
prefixCls: l.value,
|
|
3635
|
-
formColumns:
|
|
3636
|
-
formState:
|
|
3637
|
-
defaultFormSearch:
|
|
3638
|
-
formConfig:
|
|
3639
|
-
formAutoRequest:
|
|
3640
|
-
formActions:
|
|
3634
|
+
formColumns: xe.value,
|
|
3635
|
+
formState: Ce.value,
|
|
3636
|
+
defaultFormSearch: Se.value,
|
|
3637
|
+
formConfig: ve.value,
|
|
3638
|
+
formAutoRequest: ye.value,
|
|
3639
|
+
formActions: be.value,
|
|
3641
3640
|
loading: He.value,
|
|
3642
3641
|
cardBordered: e.cardBordered,
|
|
3643
3642
|
proClasses: e.proClasses ?? {},
|
|
3644
3643
|
proStyles: e.proStyles ?? {},
|
|
3645
|
-
onSearch:
|
|
3644
|
+
onSearch: Le,
|
|
3646
3645
|
onReset: (e) => s("reset", e)
|
|
3647
3646
|
}, { default: () => [o.form?.()] }), a("div", {
|
|
3648
|
-
ref:
|
|
3649
|
-
class:
|
|
3647
|
+
ref: Ae,
|
|
3648
|
+
class: J(e.proClasses?.card, `${l.value}-card`, e.cardBordered && `${l.value}-card-border`),
|
|
3650
3649
|
style: e.proStyles?.card
|
|
3651
3650
|
}, [a(Jr, {
|
|
3652
3651
|
prefixCls: l.value,
|
|
@@ -3659,34 +3658,34 @@ var ti = (e) => {
|
|
|
3659
3658
|
listToolAfter: o.listToolAfter?.() ?? e.listToolAfter,
|
|
3660
3659
|
proClasses: e.proClasses ?? {},
|
|
3661
3660
|
proStyles: e.proStyles ?? {}
|
|
3662
|
-
}, null),
|
|
3663
|
-
class:
|
|
3661
|
+
}, null), Fe.value ? a(ce, { spinning: !!He.value }, { default: () => [a("div", { class: J(`${l.value}-list`, e.proClasses?.list) }, [a("div", {
|
|
3662
|
+
class: J(`${l.value}-list-content`, e.proClasses?.listContent),
|
|
3664
3663
|
style: e.proStyles?.listContent
|
|
3665
|
-
}, [
|
|
3664
|
+
}, [ze()]), C.value !== !1 && Ee.value?.length > 0 && a(oe, h(C.value, {
|
|
3666
3665
|
align: w.value,
|
|
3667
|
-
class:
|
|
3666
|
+
class: J(`${l.value}-pagination`, e.proClasses?.pagination),
|
|
3668
3667
|
style: e.proStyles?.pagination,
|
|
3669
3668
|
onChange: Ve
|
|
3670
|
-
}), null)])] }) : a(t, null, [a(
|
|
3671
|
-
scroll:
|
|
3672
|
-
dataSource:
|
|
3673
|
-
columns: e.draggable ?
|
|
3674
|
-
components: e.draggable ?
|
|
3669
|
+
}), null)])] }) : a(t, null, [a(I, h(H.value, {
|
|
3670
|
+
scroll: Pe.value,
|
|
3671
|
+
dataSource: Ee.value,
|
|
3672
|
+
columns: e.draggable ? ge.value : pe.value,
|
|
3673
|
+
components: e.draggable ? _e.value : H.value.components,
|
|
3675
3674
|
rowKey: e.rowKey,
|
|
3676
3675
|
size: O.value,
|
|
3677
3676
|
pagination: C.value,
|
|
3678
3677
|
loading: He.value,
|
|
3679
|
-
rowSelection:
|
|
3678
|
+
rowSelection: ie.value,
|
|
3680
3679
|
onChange: Ue,
|
|
3681
3680
|
"onUpdate:expandedRowKeys": U,
|
|
3682
3681
|
onScroll: We,
|
|
3683
3682
|
classes: {
|
|
3684
3683
|
...H.value.classes,
|
|
3685
|
-
...
|
|
3684
|
+
...je.value ? { root: `${l.value}-overflow-hidden` } : {}
|
|
3686
3685
|
}
|
|
3687
|
-
}), G.value),
|
|
3688
|
-
ref:
|
|
3689
|
-
hasScrollY: !!
|
|
3686
|
+
}), G.value), Ne.value && a(n, { to: Ne.value }, { default: () => [a(or, {
|
|
3687
|
+
ref: V,
|
|
3688
|
+
hasScrollY: !!Pe.value.y
|
|
3690
3689
|
}, null)] })])])])]);
|
|
3691
3690
|
};
|
|
3692
3691
|
}, {
|
|
@@ -3863,12 +3862,11 @@ var ti = (e) => {
|
|
|
3863
3862
|
emptyText: {
|
|
3864
3863
|
type: [
|
|
3865
3864
|
Function,
|
|
3866
|
-
Object,
|
|
3867
3865
|
String,
|
|
3868
3866
|
Number,
|
|
3869
|
-
Boolean,
|
|
3870
3867
|
null,
|
|
3871
|
-
|
|
3868
|
+
Object,
|
|
3869
|
+
Boolean
|
|
3872
3870
|
],
|
|
3873
3871
|
required: !1,
|
|
3874
3872
|
default: void 0
|
|
@@ -3876,12 +3874,11 @@ var ti = (e) => {
|
|
|
3876
3874
|
headerTitle: {
|
|
3877
3875
|
type: [
|
|
3878
3876
|
Function,
|
|
3879
|
-
Object,
|
|
3880
3877
|
String,
|
|
3881
3878
|
Number,
|
|
3882
|
-
Boolean,
|
|
3883
3879
|
null,
|
|
3884
|
-
|
|
3880
|
+
Object,
|
|
3881
|
+
Boolean
|
|
3885
3882
|
],
|
|
3886
3883
|
required: !1,
|
|
3887
3884
|
default: void 0
|
|
@@ -3889,12 +3886,11 @@ var ti = (e) => {
|
|
|
3889
3886
|
headerTitleTip: {
|
|
3890
3887
|
type: [
|
|
3891
3888
|
Function,
|
|
3892
|
-
Object,
|
|
3893
3889
|
String,
|
|
3894
3890
|
Number,
|
|
3895
|
-
Boolean,
|
|
3896
3891
|
null,
|
|
3897
|
-
|
|
3892
|
+
Object,
|
|
3893
|
+
Boolean
|
|
3898
3894
|
],
|
|
3899
3895
|
required: !1,
|
|
3900
3896
|
default: void 0
|
|
@@ -3902,12 +3898,11 @@ var ti = (e) => {
|
|
|
3902
3898
|
listToolAfter: {
|
|
3903
3899
|
type: [
|
|
3904
3900
|
Function,
|
|
3905
|
-
Object,
|
|
3906
3901
|
String,
|
|
3907
3902
|
Number,
|
|
3908
|
-
Boolean,
|
|
3909
3903
|
null,
|
|
3910
|
-
|
|
3904
|
+
Object,
|
|
3905
|
+
Boolean
|
|
3911
3906
|
],
|
|
3912
3907
|
required: !1,
|
|
3913
3908
|
default: void 0
|
|
@@ -4132,4 +4127,4 @@ var ti = (e) => {
|
|
|
4132
4127
|
inheritAttrs: !1
|
|
4133
4128
|
});
|
|
4134
4129
|
//#endregion
|
|
4135
|
-
export { si as GProTable,
|
|
4130
|
+
export { si as GProTable, Tn as useFetchData, ot as useInjectTableContext, Rn as usePagination, lt as useProBreakpoints, zn as useRequestOptions, Hn as useTable, Gn as useTableForm };
|