@gx-design-vue/pro-table 0.2.0-alpha.14 → 0.2.0-alpha.16
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 +27 -4
- package/dist/components/SearchForm/CollapseToggle.d.ts +1 -1
- package/dist/components/SearchForm/FormItemContainer.d.ts +2 -2
- package/dist/components/SearchForm/FormItemWrapper.d.ts +2 -2
- package/dist/components/SearchForm/SearchForm.d.ts +4 -4
- package/dist/components/Toolbar/ListToolBar.d.ts +8 -8
- package/dist/components/Toolbar/index.d.ts +5 -5
- package/dist/hooks/useFetchData.js +1 -1
- package/dist/hooks/useTable.js +6 -4
- package/dist/pro-table.esm.js +194 -167
- package/dist/pro-table.js +1 -1
- package/dist/style/index.js +10 -0
- package/package.json +4 -4
package/dist/pro-table.esm.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { createInjectionState as e, useBreakpoints as t, useDebounceFn as n, useElementSize as r, useEventListener as i, useFullscreen as a, useMutationObserver as o, useResizeObserver as s, useScroll as c, useWindowSize as l } from "@vueuse/core";
|
|
2
2
|
import { Comment as u, Fragment as d, Teleport as f, Text as p, computed as m, createVNode as h, defineComponent as g, getCurrentInstance as _, h as v, isVNode as y, mergeDefaults as b, mergeProps as x, nextTick as S, onActivated as C, onBeforeUnmount as w, onDeactivated as T, onMounted as E, onScopeDispose as D, onUnmounted as O, reactive as k, ref as A, shallowRef as j, toRaw as M, toRef as ee, toValue as N, unref as te, watch as P, watchEffect as ne } from "vue";
|
|
3
3
|
import { proGenStyleHooks as re, unit as F, useProConfigContext as ie } from "@gx-design-vue/pro-provider";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { useBaseConfig as
|
|
6
|
-
import
|
|
7
|
-
import { GIcon as
|
|
4
|
+
import { Button as ae, Cascader as I, DatePicker as L, Input as R, InputNumber as z, Pagination as B, Select as oe, SpaceCompact as se, Spin as ce, Table as le, TimePicker as ue, Tooltip as de, TreeSelect as fe } from "antdv-next";
|
|
5
|
+
import { useBaseConfig as pe } from "antdv-next/config-provider/context";
|
|
6
|
+
import me from "antdv-next/config-provider/hooks/useCSSVarCls";
|
|
7
|
+
import { GIcon as V } from "@gx-design-vue/icon";
|
|
8
8
|
//#region \0rolldown/runtime.js
|
|
9
|
-
var
|
|
10
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
9
|
+
var he = Object.create, ge = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyNames, ye = Object.getPrototypeOf, be = Object.prototype.hasOwnProperty, xe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Se = (e, t, n, r) => {
|
|
10
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ve(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !be.call(e, s) && s !== n && ge(e, s, {
|
|
11
11
|
get: ((e) => t[e]).bind(null, s),
|
|
12
|
-
enumerable: !(r =
|
|
12
|
+
enumerable: !(r = _e(t, s)) || r.enumerable
|
|
13
13
|
});
|
|
14
14
|
return e;
|
|
15
|
-
},
|
|
15
|
+
}, Ce = (e, t, n) => (n = e == null ? {} : he(ye(e)), Se(t || !e || !e.__esModule ? ge(n, "default", {
|
|
16
16
|
value: e,
|
|
17
17
|
enumerable: !0
|
|
18
|
-
}) : n, e)), [
|
|
18
|
+
}) : n, e)), [we, H] = e((e) => e), Te = [
|
|
19
19
|
{
|
|
20
20
|
breakpoint: "xxl",
|
|
21
21
|
span: 4
|
|
@@ -58,7 +58,7 @@ function De() {
|
|
|
58
58
|
xxl: e.isGreaterOrEqual("xxl")
|
|
59
59
|
})), i = m(() => !r.value.xl);
|
|
60
60
|
function a(e, t) {
|
|
61
|
-
return t && typeof t == "object" && Object.keys(t).length > 0 ?
|
|
61
|
+
return t && typeof t == "object" && Object.keys(t).length > 0 ? Oe(t, n.value) : U(e, r.value);
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
64
|
screens: r,
|
|
@@ -67,7 +67,7 @@ function De() {
|
|
|
67
67
|
getRowItemsPerBreakpoint: a
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Oe(e, t) {
|
|
71
71
|
let n = 4, r = Object.keys(e).map(Number).filter((e) => !Number.isNaN(e)).sort((e, t) => t - e);
|
|
72
72
|
for (let i of r) if (e[i] && t >= i) {
|
|
73
73
|
n = e[i];
|
|
@@ -75,7 +75,7 @@ function U(e, t) {
|
|
|
75
75
|
}
|
|
76
76
|
return n;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function U(e, t) {
|
|
79
79
|
let n = 4;
|
|
80
80
|
for (let r = 0; r < Te.length; r += 1) {
|
|
81
81
|
let i = Te[r].breakpoint;
|
|
@@ -104,10 +104,10 @@ function je(e, t) {
|
|
|
104
104
|
function Me(e) {
|
|
105
105
|
return typeof e == "boolean";
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ne(e) {
|
|
108
108
|
return typeof e == "number";
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function W(e) {
|
|
111
111
|
return Array.isArray === void 0 ? Object.prototype.toString.call(e) === "[object Array]" : Array.isArray(e);
|
|
112
112
|
}
|
|
113
113
|
function G(e) {
|
|
@@ -285,7 +285,7 @@ function J(...e) {
|
|
|
285
285
|
let r = e[n];
|
|
286
286
|
if (r) {
|
|
287
287
|
if (Pe(r)) t.push(r);
|
|
288
|
-
else if (
|
|
288
|
+
else if (W(r)) for (let e = 0; e < r.length; e++) {
|
|
289
289
|
let n = J(r[e]);
|
|
290
290
|
n && t.push(n);
|
|
291
291
|
}
|
|
@@ -384,7 +384,7 @@ function bt(e, t) {
|
|
|
384
384
|
}
|
|
385
385
|
//#endregion
|
|
386
386
|
//#region src/utils/valueFormat.ts
|
|
387
|
-
var Y = /* @__PURE__ */
|
|
387
|
+
var Y = /* @__PURE__ */ Ce((/* @__PURE__ */ xe(((e, t) => {
|
|
388
388
|
(function(n, r) {
|
|
389
389
|
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();
|
|
390
390
|
})(e, (function() {
|
|
@@ -882,32 +882,32 @@ function zt(e, t) {
|
|
|
882
882
|
function ie() {
|
|
883
883
|
F();
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function ae(e) {
|
|
886
886
|
if (ee.value || !i.value) return;
|
|
887
887
|
let t = Math.max(a.value || 2e3, 2e3);
|
|
888
888
|
F(), N.value = setTimeout(() => {
|
|
889
|
-
|
|
889
|
+
B({
|
|
890
890
|
...e,
|
|
891
891
|
isPolling: !0
|
|
892
892
|
});
|
|
893
893
|
}, t);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function I() {
|
|
896
896
|
te.value?.abort(), te.value = null;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
if (j.value = ze(e, M(y)), !o || !Fe(o)) {
|
|
898
|
+
function L(e) {
|
|
899
|
+
if (j.value = ze(M(e), M(y)), !o || !Fe(o)) {
|
|
900
900
|
let t = e.length || 0;
|
|
901
901
|
t !== y.total && x({ total: t });
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
async function
|
|
904
|
+
async function R(e = {}) {
|
|
905
905
|
let { pagination: t = {}, filters: n = {}, sorter: r = {}, removeKeys: i = [], isPolling: a = !1, extra: l } = e;
|
|
906
906
|
if (!o || !Fe(o)) return c.value || [];
|
|
907
907
|
a || (S(!0), re(!0)), t && Object.keys(t).length && x(t);
|
|
908
908
|
try {
|
|
909
909
|
i.length && E(i);
|
|
910
|
-
let t = G(r) && Object.keys(r).length ? [r] :
|
|
910
|
+
let t = G(r) && Object.keys(r).length ? [r] : W(r) ? r : [];
|
|
911
911
|
w && k && w(k.value.map((e) => {
|
|
912
912
|
let n = t.find((t) => (t?.columnKey || t?.field) === e.dataIndex);
|
|
913
913
|
return {
|
|
@@ -946,44 +946,44 @@ function zt(e, t) {
|
|
|
946
946
|
let { success: t = !0, data: n = [] } = d;
|
|
947
947
|
if (!t) return [];
|
|
948
948
|
let r = typeof s == "function" ? s(n) : n, i = d.total || r.length || 0;
|
|
949
|
-
return i !== y.total && x({ total: i }),
|
|
949
|
+
return i !== y.total && x({ total: i }), L(r), D(r), ae(e), r;
|
|
950
950
|
}
|
|
951
951
|
return [];
|
|
952
952
|
} catch (e) {
|
|
953
953
|
if (e.name === "AbortError") return [];
|
|
954
|
-
if (_) return j.value === void 0 &&
|
|
954
|
+
if (_) return j.value === void 0 && L([]), _(e), [];
|
|
955
955
|
throw e;
|
|
956
956
|
} finally {
|
|
957
957
|
a || (S(!1), re(!1));
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
let
|
|
961
|
-
function
|
|
962
|
-
|
|
960
|
+
let z = n((e) => R(e), () => f.value ?? 10);
|
|
961
|
+
function B(e = {}) {
|
|
962
|
+
I(), z(e);
|
|
963
963
|
}
|
|
964
964
|
C(() => {
|
|
965
965
|
ee.value = !1;
|
|
966
966
|
}), O(() => {
|
|
967
|
-
ee.value = !0,
|
|
967
|
+
ee.value = !0, I(), ie();
|
|
968
968
|
}), T(() => {
|
|
969
|
-
ee.value = !0,
|
|
969
|
+
ee.value = !0, I(), ie();
|
|
970
970
|
}), P(() => c.value, (e) => {
|
|
971
|
-
e && !Fe(o) &&
|
|
971
|
+
e && !Fe(o) && L(e);
|
|
972
972
|
}, {
|
|
973
973
|
deep: !0,
|
|
974
974
|
immediate: !0
|
|
975
975
|
}), P(() => p.value, () => {
|
|
976
|
-
u.value || d.value && (x({ current: 1 }),
|
|
976
|
+
u.value || d.value && (x({ current: 1 }), B({ isPolling: !1 }));
|
|
977
977
|
}, { deep: !0 }), P(() => h.value, (e, t) => {
|
|
978
|
-
u.value || e !== t && (x({ current: 1 }),
|
|
978
|
+
u.value || e !== t && (x({ current: 1 }), B({ isPolling: !1 }));
|
|
979
979
|
}, { deep: !0 }), P(() => i.value, () => {
|
|
980
|
-
u.value || (i.value ?
|
|
980
|
+
u.value || (i.value ? B({ isPolling: !0 }) : ie());
|
|
981
981
|
}), P(() => u.value, (e) => {
|
|
982
|
-
e ? (S(!0), re(!0)) : l.value &&
|
|
983
|
-
}), !u.value && l.value &&
|
|
984
|
-
let
|
|
985
|
-
function
|
|
986
|
-
|
|
982
|
+
e ? (S(!0), re(!0)) : l.value && B({ isPolling: !1 });
|
|
983
|
+
}), !u.value && l.value && B({ isPolling: !1 });
|
|
984
|
+
let oe = m(() => j.value.some((e) => W(e.children) && e.children.length > 0));
|
|
985
|
+
function se(e, t = {}, n = {}, r) {
|
|
986
|
+
B({
|
|
987
987
|
pagination: e,
|
|
988
988
|
filters: t,
|
|
989
989
|
sorter: n,
|
|
@@ -991,7 +991,7 @@ function zt(e, t) {
|
|
|
991
991
|
isPolling: !1
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function ce(e) {
|
|
995
995
|
let { key: t, row: n, value: i, type: a = "update" } = e, o = t ?? r.value, s = n?.[o] ?? i;
|
|
996
996
|
switch (!n && a !== "delete" && console.warn("row is required"), a) {
|
|
997
997
|
case "update":
|
|
@@ -1008,23 +1008,23 @@ function zt(e, t) {
|
|
|
1008
1008
|
break;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
u.value || (o ?
|
|
1011
|
+
function le(e) {
|
|
1012
|
+
u.value || (o ? B({
|
|
1013
1013
|
...e,
|
|
1014
1014
|
isPolling: !1
|
|
1015
|
-
}) :
|
|
1015
|
+
}) : L(c.value || []));
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1017
|
+
function ue(e) {
|
|
1018
|
+
le(e);
|
|
1019
1019
|
}
|
|
1020
1020
|
return {
|
|
1021
1021
|
dataSource: m(() => j.value.length ? j.value : Rt),
|
|
1022
|
-
isTreeDataRef:
|
|
1023
|
-
setTableDataList:
|
|
1024
|
-
operateTableDataRow:
|
|
1025
|
-
handleTableChange:
|
|
1026
|
-
run:
|
|
1027
|
-
reload:
|
|
1022
|
+
isTreeDataRef: oe,
|
|
1023
|
+
setTableDataList: L,
|
|
1024
|
+
operateTableDataRow: ce,
|
|
1025
|
+
handleTableChange: se,
|
|
1026
|
+
run: le,
|
|
1027
|
+
reload: ue
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
1030
|
//#endregion
|
|
@@ -1162,7 +1162,7 @@ function Qt({ pagination: e }) {
|
|
|
1162
1162
|
immediate: !0
|
|
1163
1163
|
});
|
|
1164
1164
|
function r(e) {
|
|
1165
|
-
|
|
1165
|
+
Ne(e.current) && (n.current = e.current), Ne(e.pageSize) && (n.pageSize = e.pageSize), Ne(e.total) && (n.total = e.total);
|
|
1166
1166
|
}
|
|
1167
1167
|
function i(e) {
|
|
1168
1168
|
t.value !== !1 && (t.value = dt({}, t.value, e), r(e));
|
|
@@ -1288,10 +1288,11 @@ function nn(e, t) {
|
|
|
1288
1288
|
searchMap: []
|
|
1289
1289
|
}), r = /* @__PURE__ */ new Set();
|
|
1290
1290
|
function i(e = {}) {
|
|
1291
|
-
let
|
|
1292
|
-
for (let
|
|
1293
|
-
|
|
1294
|
-
|
|
1291
|
+
for (let t of r) t in e || (delete n[t], r.delete(t));
|
|
1292
|
+
for (let t of Object.keys(e)) {
|
|
1293
|
+
let i = e[t];
|
|
1294
|
+
i !== n[t] && (n[t] = i), r.add(t);
|
|
1295
|
+
}
|
|
1295
1296
|
t?.request && (n.request = t.request);
|
|
1296
1297
|
}
|
|
1297
1298
|
P(() => N(t?.state), (e) => {
|
|
@@ -1860,9 +1861,9 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1860
1861
|
}, [e.collapseRender(e.collapsed)]) : h("span", {
|
|
1861
1862
|
class: `${e.prefixCls}-search-control-text`,
|
|
1862
1863
|
onClick: () => e.onToggle(!e.collapsed)
|
|
1863
|
-
}, [e.collapsed ? "展开" : "收起", e.collapsed ? h(
|
|
1864
|
+
}, [e.collapsed ? "展开" : "收起", e.collapsed ? h(V, { type: "DownOutlined" }, null) : h(V, { type: "UpOutlined" }, null)]);
|
|
1864
1865
|
}
|
|
1865
|
-
}), { RangePicker: $n } =
|
|
1866
|
+
}), { RangePicker: $n } = L, er = /* @__PURE__ */ g({
|
|
1866
1867
|
name: "ProTableFormItemContainer",
|
|
1867
1868
|
props: {
|
|
1868
1869
|
prefixCls: {
|
|
@@ -1915,15 +1916,15 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1915
1916
|
allowClear: e.record.allowClear ?? !0,
|
|
1916
1917
|
...t
|
|
1917
1918
|
};
|
|
1918
|
-
return e.autoRequest ? h(
|
|
1919
|
+
return e.autoRequest ? h(R.Search, x(n, {
|
|
1919
1920
|
onSearch: () => e.onSubmit?.(),
|
|
1920
1921
|
onChange: (t) => {
|
|
1921
1922
|
e.formState[e.record.name] = t.target?.value ?? t;
|
|
1922
1923
|
}
|
|
1923
|
-
}), null) : h(
|
|
1924
|
+
}), null) : h(R, x(n, { onChange: (e) => i(e.target?.value ?? e) }), null);
|
|
1924
1925
|
}
|
|
1925
1926
|
function o() {
|
|
1926
|
-
return h(
|
|
1927
|
+
return h(z, x({
|
|
1927
1928
|
style: { width: "100%" },
|
|
1928
1929
|
value: e.formState[e.record.name],
|
|
1929
1930
|
placeholder: e.record.placeholder || "请输入",
|
|
@@ -1932,17 +1933,17 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1932
1933
|
}
|
|
1933
1934
|
function s() {
|
|
1934
1935
|
let t = e.record.name, n = e.formState[t], a = Array.isArray(e.record.placeholder) ? e.record.placeholder : ["请输入", "请输入"];
|
|
1935
|
-
return h(
|
|
1936
|
+
return h(se, {
|
|
1936
1937
|
class: `${e.prefixCls}-search-input-compact`,
|
|
1937
1938
|
style: { width: "100%" }
|
|
1938
1939
|
}, { default: () => [
|
|
1939
|
-
h(
|
|
1940
|
+
h(z, {
|
|
1940
1941
|
value: n?.[0],
|
|
1941
1942
|
placeholder: a[0] || "请输入",
|
|
1942
1943
|
onChange: (e) => i(e, { key: 0 }),
|
|
1943
1944
|
style: r
|
|
1944
1945
|
}, null),
|
|
1945
|
-
h(
|
|
1946
|
+
h(R, {
|
|
1946
1947
|
disabled: !0,
|
|
1947
1948
|
value: "~",
|
|
1948
1949
|
class: `${e.prefixCls}-number-range-separator`,
|
|
@@ -1952,7 +1953,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1952
1953
|
pointerEvents: "none"
|
|
1953
1954
|
}
|
|
1954
1955
|
}, null),
|
|
1955
|
-
h(
|
|
1956
|
+
h(z, {
|
|
1956
1957
|
value: n?.[1],
|
|
1957
1958
|
placeholder: a[1] || "请输入",
|
|
1958
1959
|
onChange: (e) => i(e, { key: 1 }),
|
|
@@ -1962,7 +1963,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1962
1963
|
}
|
|
1963
1964
|
function c() {
|
|
1964
1965
|
let r = e.record.loading || n.value, a = e.record.request ? t.value : e.record.valueEnum || [], o = e.record.field ?? {};
|
|
1965
|
-
return h(
|
|
1966
|
+
return h(oe, x({
|
|
1966
1967
|
style: { width: "100%" },
|
|
1967
1968
|
value: r ? void 0 : e.formState[e.record.name],
|
|
1968
1969
|
optionFilterProp: "label",
|
|
@@ -1976,7 +1977,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1976
1977
|
}
|
|
1977
1978
|
function l() {
|
|
1978
1979
|
let r = e.record.field ?? {}, a = e.record.loading || n.value;
|
|
1979
|
-
return h(
|
|
1980
|
+
return h(fe, x({
|
|
1980
1981
|
style: { width: "100%" },
|
|
1981
1982
|
value: e.formState[e.record.name],
|
|
1982
1983
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -1988,7 +1989,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
1988
1989
|
}
|
|
1989
1990
|
function u() {
|
|
1990
1991
|
let r = e.record.field ?? {}, a = e.record.loading || n.value;
|
|
1991
|
-
return h(
|
|
1992
|
+
return h(I, x({
|
|
1992
1993
|
style: { width: "100%" },
|
|
1993
1994
|
value: e.formState[e.record.name],
|
|
1994
1995
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -2000,7 +2001,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
2000
2001
|
}
|
|
2001
2002
|
function d() {
|
|
2002
2003
|
let t = Xn(e.record.valueFormat, e.record.showTime);
|
|
2003
|
-
return h(
|
|
2004
|
+
return h(L, x({
|
|
2004
2005
|
style: { width: "100%" },
|
|
2005
2006
|
value: e.formState[e.record.name] ? (0, Y.default)(e.formState[e.record.name]) : void 0,
|
|
2006
2007
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -2012,7 +2013,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
2012
2013
|
}
|
|
2013
2014
|
function f(t, n, r) {
|
|
2014
2015
|
let a = e.formState[e.record.name];
|
|
2015
|
-
return h(
|
|
2016
|
+
return h(L, x({
|
|
2016
2017
|
style: { width: "100%" },
|
|
2017
2018
|
picker: t,
|
|
2018
2019
|
value: a ? (0, Y.default)(a, n) : void 0,
|
|
@@ -2036,7 +2037,7 @@ var Qn = /* @__PURE__ */ g({
|
|
|
2036
2037
|
}
|
|
2037
2038
|
function m() {
|
|
2038
2039
|
let t = e.record.valueFormat || "HH:mm:ss";
|
|
2039
|
-
return h(
|
|
2040
|
+
return h(ue, x({
|
|
2040
2041
|
style: { width: "100%" },
|
|
2041
2042
|
value: e.formState[e.record.name] ? (0, Y.default)(e.formState[e.record.name], t) : void 0,
|
|
2042
2043
|
placeholder: e.record.placeholder || "请选择",
|
|
@@ -2235,7 +2236,7 @@ var rr = /* @__PURE__ */ g({
|
|
|
2235
2236
|
break;
|
|
2236
2237
|
case "dateRange": {
|
|
2237
2238
|
let e = Xn(n.valueFormat, n.showTime);
|
|
2238
|
-
o = t &&
|
|
2239
|
+
o = t && W(t) && t.length === 2 ? Zn(t, e, "string") : null;
|
|
2239
2240
|
break;
|
|
2240
2241
|
}
|
|
2241
2242
|
case "time":
|
|
@@ -2269,7 +2270,7 @@ var rr = /* @__PURE__ */ g({
|
|
|
2269
2270
|
}
|
|
2270
2271
|
if (r === "numberRange") {
|
|
2271
2272
|
let e = t[i];
|
|
2272
|
-
t[i] = Array.isArray(e) && e.some((e) =>
|
|
2273
|
+
t[i] = Array.isArray(e) && e.some((e) => Ne(e)) ? e : void 0;
|
|
2273
2274
|
}
|
|
2274
2275
|
}
|
|
2275
2276
|
return t;
|
|
@@ -2338,10 +2339,10 @@ var rr = /* @__PURE__ */ g({
|
|
|
2338
2339
|
}, D = () => !f.value && o.value ? null : h("div", {
|
|
2339
2340
|
class: [`${e.prefixCls}-search-buttons`, e.proClasses.searchButtons],
|
|
2340
2341
|
style: e.proStyles.searchButtons
|
|
2341
|
-
}, [f.value && h(
|
|
2342
|
+
}, [f.value && h(ae, {
|
|
2342
2343
|
key: "reset",
|
|
2343
2344
|
onClick: x
|
|
2344
|
-
}, { default: () => [s.value?.resetText || "重置"] }), !o.value && h(
|
|
2345
|
+
}, { default: () => [s.value?.resetText || "重置"] }), !o.value && h(ae, {
|
|
2345
2346
|
key: "submit",
|
|
2346
2347
|
type: "primary",
|
|
2347
2348
|
loading: typeof e.loading == "boolean" ? e.loading : !1,
|
|
@@ -2392,7 +2393,7 @@ var ar = /* @__PURE__ */ g({
|
|
|
2392
2393
|
}
|
|
2393
2394
|
},
|
|
2394
2395
|
setup(e) {
|
|
2395
|
-
return () => h(
|
|
2396
|
+
return () => h(de, { title: e.isFullscreen ? "退出全屏" : "全屏" }, { default: () => [h("span", { onClick: e.onToggle }, [e.isFullscreen ? h(V, { type: "FullscreenExitOutlined" }, null) : h(V, { type: "FullscreenOutlined" }, null)])] });
|
|
2396
2397
|
}
|
|
2397
2398
|
});
|
|
2398
2399
|
//#endregion
|
|
@@ -2401,7 +2402,7 @@ function or(e) {
|
|
|
2401
2402
|
if (y(e)) return e;
|
|
2402
2403
|
if (!e) return null;
|
|
2403
2404
|
let { icon: t, tooltip: n, onClick: r, key: i } = e;
|
|
2404
|
-
return t && n ? h(
|
|
2405
|
+
return t && n ? h(de, {
|
|
2405
2406
|
title: n,
|
|
2406
2407
|
key: i
|
|
2407
2408
|
}, { default: () => [h("span", {
|
|
@@ -2465,7 +2466,7 @@ var sr = /* @__PURE__ */ g({
|
|
|
2465
2466
|
}, [t.value && h("div", {
|
|
2466
2467
|
class: [`${o}-list-toolbar-title`, e.proClasses.toolbarTitle],
|
|
2467
2468
|
style: e.proStyles.toolbarTitle
|
|
2468
|
-
}, [e.headerTitle, e.headerTitleTip && h(
|
|
2469
|
+
}, [e.headerTitle, e.headerTitleTip && h(de, { title: e.titleTipText }, { default: () => [typeof e.headerTitleTip == "boolean" ? h(V, { type: "InfoCircleOutlined" }, null) : e.headerTitleTip] })]), n.value.length > 0 && h("div", { class: `${o}-list-toolbar-actions` }, [n.value])]) : a.value ? h("div", {
|
|
2469
2470
|
class: `${o}-list-toolbar-left`,
|
|
2470
2471
|
style: e.proStyles.toolbarLeft
|
|
2471
2472
|
}, null) : null, c = a.value ? h("div", {
|
|
@@ -2535,7 +2536,7 @@ var lr = /* @__PURE__ */ g({
|
|
|
2535
2536
|
}
|
|
2536
2537
|
},
|
|
2537
2538
|
setup(e) {
|
|
2538
|
-
let t =
|
|
2539
|
+
let t = H(), n = m(() => {
|
|
2539
2540
|
if (e.options === !1) return [];
|
|
2540
2541
|
let n = cr(e.options) ? e.options : {}, r = [];
|
|
2541
2542
|
if (n.reload !== !1) {
|
|
@@ -2543,10 +2544,10 @@ var lr = /* @__PURE__ */ g({
|
|
|
2543
2544
|
if (typeof n.reload == "function") {
|
|
2544
2545
|
let t = n.reload(e);
|
|
2545
2546
|
t && r.push(t);
|
|
2546
|
-
} else r.push(h(
|
|
2547
|
+
} else r.push(h(de, {
|
|
2547
2548
|
title: "刷新",
|
|
2548
2549
|
key: "reload"
|
|
2549
|
-
}, { default: () => [h("span", { onClick: e }, [h(
|
|
2550
|
+
}, { default: () => [h("span", { onClick: e }, [h(V, { type: "ReloadOutlined" }, null)])] }));
|
|
2550
2551
|
}
|
|
2551
2552
|
return n.fullScreen !== !1 && (typeof n.fullScreen == "function" ? r.push(h(ar, {
|
|
2552
2553
|
key: "fullscreen",
|
|
@@ -2870,6 +2871,16 @@ var gr = (e) => {
|
|
|
2870
2871
|
justifyContent: "center",
|
|
2871
2872
|
marginBlock: e.marginXL
|
|
2872
2873
|
},
|
|
2874
|
+
"&-loading-container": { position: "relative" },
|
|
2875
|
+
"&-loading-mask": {
|
|
2876
|
+
position: "absolute",
|
|
2877
|
+
inset: 0,
|
|
2878
|
+
display: "flex",
|
|
2879
|
+
alignItems: "center",
|
|
2880
|
+
justifyContent: "center",
|
|
2881
|
+
backgroundColor: `color-mix(in srgb, ${e.colorBgContainer} 50%, transparent)`,
|
|
2882
|
+
zIndex: 10
|
|
2883
|
+
},
|
|
2873
2884
|
"&-full-screen": { [`${e.componentCls}-content`]: {
|
|
2874
2885
|
height: "100% !important",
|
|
2875
2886
|
padding: 24,
|
|
@@ -2941,45 +2952,53 @@ var gr = (e) => {
|
|
|
2941
2952
|
"classes",
|
|
2942
2953
|
"styles"
|
|
2943
2954
|
], Sr = /* @__PURE__ */ g((e, { attrs: t, slots: n, emit: r, expose: i }) => {
|
|
2944
|
-
let { prefixCls: o } =
|
|
2955
|
+
let { prefixCls: o } = pe("pro-table", e), s = me(o), [c, l] = yr(o, s), u = ie(), p = A(), { toggle: g, isFullscreen: _ } = a(p);
|
|
2945
2956
|
P(_, (e) => {
|
|
2946
2957
|
r("fullscreenChange", e);
|
|
2947
2958
|
});
|
|
2948
|
-
let v = m(() => J(o.value, c.value, l.value, s.value, t.class, e.proClasses?.root,
|
|
2959
|
+
let v = m(() => J(o.value, c.value, l.value, s.value, t.class, e.proClasses?.root, Ne.value)), y = m(() => [e.proStyles?.root, t.style]), { isMobile: b, screenWidth: S, screens: C } = De(), { paginationInfo: w, paginationAlign: T, requestPagination: E, setPagination: D } = Qt({ pagination: ee(e, "pagination") }), { tableSize: O, setTableSize: k } = _n({
|
|
2949
2960
|
size: m(() => e.size),
|
|
2950
2961
|
onChange: (e) => r("sizeChange", e)
|
|
2951
2962
|
}), { loading: j, setLoading: M } = Xt({
|
|
2952
2963
|
loading: m(() => e.loading),
|
|
2953
2964
|
onChange: (t) => e.onLoadingChange?.(t)
|
|
2954
|
-
}),
|
|
2965
|
+
}), N = m(() => {
|
|
2966
|
+
let t = e.loading;
|
|
2967
|
+
if (t && typeof t == "object") {
|
|
2968
|
+
let e = t.indicator;
|
|
2969
|
+
if (e !== void 0) return e;
|
|
2970
|
+
}
|
|
2971
|
+
let n = u?.indicator?.value;
|
|
2972
|
+
return typeof n == "function" ? n() : n;
|
|
2973
|
+
}), { selectedRowKeys: te, selectedItems: ne, mergedRowSelection: re, select: F, selectAll: ae, remove: I, clear: L, sync: R } = en({
|
|
2955
2974
|
rowKey: m(() => e.rowKey),
|
|
2956
2975
|
rowSelection: m(() => e.rowSelection),
|
|
2957
2976
|
dataSource: m(() => e.dataSource ?? [])
|
|
2958
|
-
}), z = m(() => At(e.columns ?? [], e.indexColumn, e.align ?? "left")), { tableScroll:
|
|
2977
|
+
}), z = m(() => At(e.columns ?? [], e.indexColumn, e.align ?? "left")), { tableScroll: oe, shouldFixActionColumn: se } = mn({
|
|
2959
2978
|
scroll: m(() => e.scroll),
|
|
2960
2979
|
columns: z,
|
|
2961
2980
|
rowSelection: m(() => e.rowSelection),
|
|
2962
2981
|
screens: C,
|
|
2963
2982
|
screenWidth: S,
|
|
2964
2983
|
scrollPolicy: m(() => e.scrollPolicy)
|
|
2965
|
-
}), { tableColumns:
|
|
2984
|
+
}), { tableColumns: ue, cacheColumns: de, setColumns: fe } = Pt({
|
|
2966
2985
|
columns: m(() => e.columns ?? []),
|
|
2967
2986
|
align: m(() => e.align ?? "left"),
|
|
2968
2987
|
indexColumn: m(() => e.indexColumn),
|
|
2969
|
-
shouldFixActionColumn:
|
|
2988
|
+
shouldFixActionColumn: se,
|
|
2970
2989
|
wrapColumnRender: Ct({
|
|
2971
2990
|
columnEmptyText: m(() => e.columnEmptyText),
|
|
2972
2991
|
prefixCls: o
|
|
2973
2992
|
}).wrapColumnRender
|
|
2974
|
-
}), { resizableColumns:
|
|
2975
|
-
columns:
|
|
2993
|
+
}), { resizableColumns: V, resizableComponents: he } = Lt({
|
|
2994
|
+
columns: ue,
|
|
2976
2995
|
onResize: (e, t) => r("resizeColumn", e, t)
|
|
2977
|
-
}),
|
|
2996
|
+
}), ge = m(() => e.form === !1 ? void 0 : e.form), _e = m(() => e.form === !1 ? e.autoRequest ?? !0 : e.form?.autoRequest ?? e.autoRequest ?? !0), ve = m(() => {
|
|
2978
2997
|
if (e.form !== !1) return e.form?.actions;
|
|
2979
|
-
}), { formColumns:
|
|
2998
|
+
}), { formColumns: ye, defaultFormSearch: be, formState: xe, getFormSearch: Se, resetFormState: Ce } = on({
|
|
2980
2999
|
searchMap: m(() => e.searchMap ?? []),
|
|
2981
3000
|
columns: m(() => e.columns ?? [])
|
|
2982
|
-
}), { dataSource:
|
|
3001
|
+
}), { dataSource: H, setTableDataList: Te, operateTableDataRow: Ee, handleTableChange: Oe, reload: U, run: ke } = zt({
|
|
2983
3002
|
rowKey: m(() => e.rowKey),
|
|
2984
3003
|
polling: m(() => e.polling ?? !1),
|
|
2985
3004
|
pollingTime: m(() => e.pollingTime ?? 2e3),
|
|
@@ -2991,7 +3010,7 @@ var gr = (e) => {
|
|
|
2991
3010
|
autoRequest: m(() => e.autoRequest ?? !0),
|
|
2992
3011
|
debounceTime: m(() => e.debounceTime ?? 10),
|
|
2993
3012
|
params: m(() => e.params),
|
|
2994
|
-
defaultFormSearch:
|
|
3013
|
+
defaultFormSearch: be,
|
|
2995
3014
|
onLoadingChange: e.onLoadingChange,
|
|
2996
3015
|
onRequestError: e.onRequestError,
|
|
2997
3016
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit
|
|
@@ -3000,60 +3019,60 @@ var gr = (e) => {
|
|
|
3000
3019
|
paginationInfo: w,
|
|
3001
3020
|
setPagination: D,
|
|
3002
3021
|
setLoading: M,
|
|
3003
|
-
setColumns:
|
|
3022
|
+
setColumns: fe,
|
|
3004
3023
|
removeRowKeys: I,
|
|
3005
3024
|
syncSelectedRows: R,
|
|
3006
|
-
columns:
|
|
3025
|
+
columns: de
|
|
3007
3026
|
});
|
|
3008
3027
|
Jt({
|
|
3009
3028
|
enabled: m(() => e.keepAliveReload ?? !1),
|
|
3010
3029
|
reload: U
|
|
3011
3030
|
});
|
|
3012
|
-
let
|
|
3013
|
-
fitPage: m(() => !
|
|
3014
|
-
cardEl:
|
|
3031
|
+
let Ae = A(), { scrollY: je, overflowHidden: Me, fullPageClass: Ne, scrollEl: W, barRef: G } = Kt({
|
|
3032
|
+
fitPage: m(() => !oe.value?.y && !!e.fitPage),
|
|
3033
|
+
cardEl: Ae,
|
|
3015
3034
|
prefixCls: o
|
|
3016
|
-
}),
|
|
3017
|
-
...
|
|
3018
|
-
...
|
|
3035
|
+
}), Pe = m(() => ({
|
|
3036
|
+
...oe.value ?? {},
|
|
3037
|
+
...je.value > 0 ? { y: je.value } : {}
|
|
3019
3038
|
}));
|
|
3020
|
-
|
|
3039
|
+
we({
|
|
3021
3040
|
reload: U,
|
|
3022
3041
|
setPagination: D,
|
|
3023
3042
|
tableSize: O,
|
|
3024
3043
|
setTableSize: k,
|
|
3025
|
-
formAutoRequest:
|
|
3026
|
-
formConfig:
|
|
3027
|
-
formActions:
|
|
3044
|
+
formAutoRequest: _e,
|
|
3045
|
+
formConfig: ge,
|
|
3046
|
+
formActions: ve,
|
|
3028
3047
|
isMobile: b,
|
|
3029
3048
|
screenWidth: S,
|
|
3030
3049
|
toggleFullscreen: g,
|
|
3031
3050
|
isFullscreen: _
|
|
3032
3051
|
});
|
|
3033
|
-
let
|
|
3034
|
-
function
|
|
3035
|
-
if (
|
|
3052
|
+
let Fe = m(() => !!(e.customRender || n.customRender)), Ie = m(() => e.form === !1 ? !1 : ye.value.length > 0 || !!n.form);
|
|
3053
|
+
function Le(t, n) {
|
|
3054
|
+
if (_e.value) {
|
|
3036
3055
|
U({ params: t });
|
|
3037
3056
|
return;
|
|
3038
3057
|
}
|
|
3039
|
-
n === "reset" ? (r("reset", t), e.request &&
|
|
3058
|
+
n === "reset" ? (r("reset", t), e.request && ve.value?.resetReload && U({ params: t })) : e.request && (r("submit", t), U({ params: t }));
|
|
3040
3059
|
}
|
|
3041
|
-
function
|
|
3060
|
+
function Re(e) {
|
|
3042
3061
|
let t = w.value;
|
|
3043
3062
|
if (!t) return e;
|
|
3044
3063
|
let { current: n = 1, pageSize: r = 10 } = t;
|
|
3045
3064
|
return e.filter((e, t) => t >= (n - 1) * r && t < n * r);
|
|
3046
3065
|
}
|
|
3047
|
-
function
|
|
3066
|
+
function ze() {
|
|
3048
3067
|
let t = e.customRender || n.customRender;
|
|
3049
3068
|
if (!t) return null;
|
|
3050
|
-
let r =
|
|
3069
|
+
let r = H.value;
|
|
3051
3070
|
return r?.length ? typeof t == "function" ? t({
|
|
3052
3071
|
dataSource: r,
|
|
3053
|
-
currentData:
|
|
3054
|
-
}) : null :
|
|
3072
|
+
currentData: Re(r)
|
|
3073
|
+
}) : null : Be();
|
|
3055
3074
|
}
|
|
3056
|
-
function
|
|
3075
|
+
function Be() {
|
|
3057
3076
|
let t = gt({
|
|
3058
3077
|
slots: n,
|
|
3059
3078
|
props: e,
|
|
@@ -3061,13 +3080,13 @@ var gr = (e) => {
|
|
|
3061
3080
|
});
|
|
3062
3081
|
return t && u?.renderEmpty?.value ? t || u?.renderEmpty?.value?.() : null;
|
|
3063
3082
|
}
|
|
3064
|
-
function
|
|
3065
|
-
|
|
3083
|
+
function Ve(e, t) {
|
|
3084
|
+
We({
|
|
3066
3085
|
current: e,
|
|
3067
3086
|
pageSize: t
|
|
3068
3087
|
}, {}, {}, {});
|
|
3069
3088
|
}
|
|
3070
|
-
let
|
|
3089
|
+
let He = m(() => e.showLoading === !1 ? !1 : j.value), Ue = m(() => {
|
|
3071
3090
|
let t = {};
|
|
3072
3091
|
for (let n of xr) {
|
|
3073
3092
|
if (n === "classes") {
|
|
@@ -3078,21 +3097,29 @@ var gr = (e) => {
|
|
|
3078
3097
|
});
|
|
3079
3098
|
continue;
|
|
3080
3099
|
}
|
|
3100
|
+
if (n === "expandable") {
|
|
3101
|
+
let n = e.expandable, r = e.expandedRowKeys;
|
|
3102
|
+
(n !== void 0 || r !== void 0) && (t.expandable = {
|
|
3103
|
+
...n ?? {},
|
|
3104
|
+
...r === void 0 ? {} : { expandedRowKeys: r }
|
|
3105
|
+
});
|
|
3106
|
+
continue;
|
|
3107
|
+
}
|
|
3081
3108
|
let r = e[n];
|
|
3082
3109
|
r !== void 0 && (t[n] = r);
|
|
3083
3110
|
}
|
|
3084
3111
|
return t;
|
|
3085
3112
|
});
|
|
3086
|
-
function
|
|
3087
|
-
|
|
3113
|
+
function We(t, n, r, i) {
|
|
3114
|
+
Oe(t, n, r, i), e.onChange?.(t, n, r, i);
|
|
3088
3115
|
}
|
|
3089
|
-
function
|
|
3116
|
+
function Ge(e) {
|
|
3090
3117
|
r("update:expandedRowKeys", e);
|
|
3091
3118
|
}
|
|
3092
|
-
function
|
|
3119
|
+
function Ke(e) {
|
|
3093
3120
|
r("scroll", e);
|
|
3094
3121
|
}
|
|
3095
|
-
let
|
|
3122
|
+
let qe = [
|
|
3096
3123
|
"title",
|
|
3097
3124
|
"footer",
|
|
3098
3125
|
"summary",
|
|
@@ -3100,9 +3127,9 @@ var gr = (e) => {
|
|
|
3100
3127
|
"expandedRowRender",
|
|
3101
3128
|
"filterDropdown",
|
|
3102
3129
|
"filterIcon"
|
|
3103
|
-
],
|
|
3130
|
+
], Je = m(() => {
|
|
3104
3131
|
let t = {};
|
|
3105
|
-
for (let e of
|
|
3132
|
+
for (let e of qe) n[e] && (t[e] = n[e]);
|
|
3106
3133
|
n.bodyCell && (t.bodyCell = (e) => n.bodyCell(e)), n.headerCell && (t.headerCell = (e) => n.headerCell(e));
|
|
3107
3134
|
let r = gt({
|
|
3108
3135
|
slots: n,
|
|
@@ -3114,34 +3141,34 @@ var gr = (e) => {
|
|
|
3114
3141
|
return i({
|
|
3115
3142
|
actionRef: () => ({
|
|
3116
3143
|
loading: j,
|
|
3117
|
-
dataSource:
|
|
3144
|
+
dataSource: H,
|
|
3118
3145
|
pageInfo: E,
|
|
3119
3146
|
reload: U,
|
|
3120
3147
|
reloadAndReset: (e) => {
|
|
3121
|
-
D({ current: 1 }),
|
|
3148
|
+
D({ current: 1 }), Ce(), ke(), e?.callBack?.();
|
|
3122
3149
|
},
|
|
3123
3150
|
setPagination: D,
|
|
3124
3151
|
setPageInfo: (e, t, n, r) => {
|
|
3125
|
-
D(e),
|
|
3152
|
+
D(e), Oe(e, t ?? {}, n ?? {}, r ?? {});
|
|
3126
3153
|
},
|
|
3127
|
-
setTableDataList:
|
|
3128
|
-
operateTableDataRow:
|
|
3154
|
+
setTableDataList: Te,
|
|
3155
|
+
operateTableDataRow: Ee,
|
|
3129
3156
|
setLoading: M,
|
|
3130
|
-
selectedKeys:
|
|
3131
|
-
selectedItems:
|
|
3157
|
+
selectedKeys: te,
|
|
3158
|
+
selectedItems: ne,
|
|
3132
3159
|
rowsSelection: {
|
|
3133
3160
|
clear: L,
|
|
3134
|
-
select:
|
|
3135
|
-
selectAll:
|
|
3161
|
+
select: F,
|
|
3162
|
+
selectAll: ae,
|
|
3136
3163
|
remove: I,
|
|
3137
3164
|
sync: R
|
|
3138
3165
|
}
|
|
3139
3166
|
}),
|
|
3140
3167
|
formRef: () => ({
|
|
3141
|
-
getFormSearch:
|
|
3142
|
-
getFormInnerState: () =>
|
|
3168
|
+
getFormSearch: Se,
|
|
3169
|
+
getFormInnerState: () => xe.value,
|
|
3143
3170
|
restFormState: (e) => {
|
|
3144
|
-
|
|
3171
|
+
Ce(), e?.();
|
|
3145
3172
|
}
|
|
3146
3173
|
})
|
|
3147
3174
|
}), () => {
|
|
@@ -3153,22 +3180,22 @@ var gr = (e) => {
|
|
|
3153
3180
|
}, [h("div", {
|
|
3154
3181
|
class: J(e.proClasses?.content, `${o.value}-content`),
|
|
3155
3182
|
style: e.proStyles?.content
|
|
3156
|
-
}, [
|
|
3183
|
+
}, [Ie.value && h(rr, {
|
|
3157
3184
|
prefixCls: o.value,
|
|
3158
|
-
formColumns:
|
|
3159
|
-
formState:
|
|
3160
|
-
defaultFormSearch:
|
|
3161
|
-
formConfig:
|
|
3162
|
-
formAutoRequest:
|
|
3163
|
-
formActions:
|
|
3164
|
-
loading:
|
|
3185
|
+
formColumns: ye.value,
|
|
3186
|
+
formState: xe.value,
|
|
3187
|
+
defaultFormSearch: be.value,
|
|
3188
|
+
formConfig: ge.value,
|
|
3189
|
+
formAutoRequest: _e.value,
|
|
3190
|
+
formActions: ve.value,
|
|
3191
|
+
loading: He.value,
|
|
3165
3192
|
cardBordered: e.cardBordered,
|
|
3166
3193
|
proClasses: e.proClasses ?? {},
|
|
3167
3194
|
proStyles: e.proStyles ?? {},
|
|
3168
|
-
onSearch:
|
|
3195
|
+
onSearch: Le,
|
|
3169
3196
|
onReset: (e) => r("reset", e)
|
|
3170
3197
|
}, { default: () => [n.form?.()] }), h("div", {
|
|
3171
|
-
ref:
|
|
3198
|
+
ref: Ae,
|
|
3172
3199
|
class: J(e.proClasses?.card, `${o.value}-card`, e.cardBordered && `${o.value}-card-border`),
|
|
3173
3200
|
style: e.proStyles?.card
|
|
3174
3201
|
}, [h(lr, {
|
|
@@ -3182,35 +3209,35 @@ var gr = (e) => {
|
|
|
3182
3209
|
listToolAfter: n.listToolAfter?.() ?? e.listToolAfter,
|
|
3183
3210
|
proClasses: e.proClasses ?? {},
|
|
3184
3211
|
proStyles: e.proStyles ?? {}
|
|
3185
|
-
}, null),
|
|
3212
|
+
}, null), h("div", { class: `${o.value}-loading-container` }, [Fe.value ? h("div", { class: J(`${o.value}-list`, e.proClasses?.list) }, [h("div", {
|
|
3186
3213
|
class: J(`${o.value}-list-content`, e.proClasses?.listContent),
|
|
3187
3214
|
style: e.proStyles?.listContent
|
|
3188
|
-
}, [
|
|
3215
|
+
}, [ze()]), w.value !== !1 && H.value?.length > 0 && h(B, x(w.value, {
|
|
3189
3216
|
align: T.value,
|
|
3190
3217
|
class: J(`${o.value}-pagination`, e.proClasses?.pagination),
|
|
3191
3218
|
style: e.proStyles?.pagination,
|
|
3192
|
-
onChange:
|
|
3193
|
-
}), null)])
|
|
3194
|
-
scroll:
|
|
3195
|
-
dataSource:
|
|
3196
|
-
columns: e.draggable ?
|
|
3197
|
-
components: e.draggable ?
|
|
3219
|
+
onChange: Ve
|
|
3220
|
+
}), null)]) : h(d, null, [h(le, x(Ue.value, {
|
|
3221
|
+
scroll: Pe.value,
|
|
3222
|
+
dataSource: H.value,
|
|
3223
|
+
columns: e.draggable ? V.value : ue.value,
|
|
3224
|
+
components: e.draggable ? he.value : Ue.value.components,
|
|
3198
3225
|
rowKey: e.rowKey,
|
|
3199
3226
|
size: O.value,
|
|
3200
3227
|
pagination: w.value,
|
|
3201
|
-
loading:
|
|
3202
|
-
rowSelection:
|
|
3203
|
-
onChange:
|
|
3204
|
-
"onUpdate:expandedRowKeys":
|
|
3205
|
-
onScroll:
|
|
3228
|
+
loading: !1,
|
|
3229
|
+
rowSelection: re.value,
|
|
3230
|
+
onChange: We,
|
|
3231
|
+
"onUpdate:expandedRowKeys": Ge,
|
|
3232
|
+
onScroll: Ke,
|
|
3206
3233
|
classes: {
|
|
3207
|
-
...
|
|
3208
|
-
...
|
|
3234
|
+
...Ue.value.classes,
|
|
3235
|
+
...Me.value ? { root: `${o.value}-overflow-hidden` } : {}
|
|
3209
3236
|
}
|
|
3210
|
-
}),
|
|
3211
|
-
ref:
|
|
3212
|
-
hasScrollY: !!
|
|
3213
|
-
}, null)] })])])])]);
|
|
3237
|
+
}), Je.value), W.value && h(f, { to: W.value }, { default: () => [h(xn, {
|
|
3238
|
+
ref: G,
|
|
3239
|
+
hasScrollY: !!Pe.value.y
|
|
3240
|
+
}, null)] })]), He.value && h("div", { class: J(`${o.value}-loading-mask`, c.value) }, [h(ce, { indicator: N.value }, null)])])])])]);
|
|
3214
3241
|
};
|
|
3215
3242
|
}, {
|
|
3216
3243
|
props: /*@__PURE__*/ b({
|
|
@@ -3651,4 +3678,4 @@ var gr = (e) => {
|
|
|
3651
3678
|
inheritAttrs: !1
|
|
3652
3679
|
});
|
|
3653
3680
|
//#endregion
|
|
3654
|
-
export { Sr as GProTable, zt as useFetchData,
|
|
3681
|
+
export { Sr as GProTable, zt as useFetchData, H as useInjectTableContext, Qt as usePagination, De as useProBreakpoints, $t as useRequestOptions, nn as useTable, on as useTableForm };
|