@dazhicheng/ui 1.6.71 → 1.6.72
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/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-api-component/index.js +4 -3
- package/dist/components/tt-api-component/index.vue2.js +3 -2
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-area/TtArea.vue3.js +3 -2
- package/dist/components/tt-button/index.d.ts +28 -28
- package/dist/components/tt-button/index.js +5 -4
- package/dist/components/tt-button/index.vue.d.ts +16 -16
- package/dist/components/tt-button/index.vue2.js +18 -17
- package/dist/components/tt-checkbox/index.js +4 -3
- package/dist/components/tt-checkbox/index.vue.js +9 -8
- package/dist/components/tt-config-provider/index.js +4 -3
- package/dist/components/tt-custom-export-modal/index.js +4 -3
- package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
- package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
- package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +3 -2
- package/dist/components/tt-custom-export-panel/index.js +4 -3
- package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue.js +3 -2
- package/dist/components/tt-drawer/index.d.ts +109 -109
- package/dist/components/tt-drawer/index.js +4 -3
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +3 -2
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +7 -6
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.js +3 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-empty/index.js +4 -3
- package/dist/components/tt-form/index.js +9 -8
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +8 -7
- package/dist/components/tt-form/src/components/FormActions.vue2.js +33 -32
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
- package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
- package/dist/components/tt-form/src/form/FormItem.vue.js +3 -2
- package/dist/components/tt-form/src/form/FormLabel.vue.js +6 -5
- package/dist/components/tt-form/src/form/RenderContent.vue.js +7 -6
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
- package/dist/components/tt-form/src/form-render/array-register/utils.js +3 -2
- package/dist/components/tt-form/src/form-render/dependencies.js +30 -29
- package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/helper.js +3 -2
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +1 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
- package/dist/components/tt-form/src/group-form/groupFormApi.js +3 -2
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +13 -12
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +3 -2
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-form/src/useFormContext.js +10 -9
- package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +3 -2
- package/dist/components/tt-icon/index.js +6 -5
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/index.js +6 -5
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/src/components/ImageViewer.js +8 -7
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.js +4 -3
- package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
- package/dist/components/tt-input-textarea/index.vue.js +3 -2
- package/dist/components/tt-loading/index.js +4 -3
- package/dist/components/tt-loading/src/directive.js +4 -3
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-log/index.js +4 -3
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/index.d.ts +150 -150
- package/dist/components/tt-modal/index.js +8 -7
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-modal/src/utils/modal-api.js +9 -8
- package/dist/components/tt-modal-form/index.vue.js +3 -2
- package/dist/components/tt-nav-anchor/index.js +4 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
- package/dist/components/tt-panel-select/index.js +4 -3
- package/dist/components/tt-panel-select/src/common.js +5 -4
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +3 -2
- package/dist/components/tt-panel-select/src/index.vue.d.ts +5 -5
- package/dist/components/tt-panel-select/src/index.vue.js +3 -2
- package/dist/components/tt-radio-group/index.js +4 -3
- package/dist/components/tt-radio-group/index.vue.js +18 -17
- package/dist/components/tt-select/index.js +4 -3
- package/dist/components/tt-select/src/Select.vue.js +3 -2
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-select/src/hooks/useDataSource.js +3 -2
- package/dist/components/tt-select/src/hooks/useSelect.js +18 -17
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +3 -2
- package/dist/components/tt-table/index.js +6 -5
- package/dist/components/tt-table/src/Table.vue.js +3 -2
- package/dist/components/tt-table/src/TableForm.vue.js +3 -2
- package/dist/components/tt-table/src/components/TableAction.vue.js +8 -7
- package/dist/components/tt-table/src/components/TableButtons.js +3 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +3 -2
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +3 -2
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +17 -16
- package/dist/components/tt-table/src/hooks/useColumns.js +3 -2
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +18 -17
- package/dist/components/tt-table/src/hooks/usePagination.js +20 -19
- package/dist/components/tt-table/src/hooks/useQuery.js +9 -8
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +3 -2
- package/dist/components/tt-table/src/hooks/useRowSelection.js +25 -24
- package/dist/components/tt-table/src/hooks/useSideSlot.js +9 -8
- package/dist/components/tt-table/src/hooks/useSyncProps.js +11 -10
- package/dist/components/tt-table/src/hooks/useTableData.js +5 -4
- package/dist/components/tt-table/src/hooks/useTableFooter.js +13 -12
- package/dist/components/tt-table/src/hooks/useTableForm.js +20 -19
- package/dist/components/tt-table/src/props.js +7 -6
- package/dist/components/tt-table/src/table-mutation-events.js +12 -11
- package/dist/components/tt-table/src/utils/action-tab-index.js +5 -4
- package/dist/components/tt-table/src/utils/context.js +9 -8
- package/dist/components/tt-text/index.js +4 -3
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/index.js +6 -5
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/TtUpload.vue.js +3 -2
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/directives/disabled-tip/index.js +3 -2
- package/dist/hooks/useFormSchemasLink.js +3 -2
- package/dist/hooks/useFormat.js +3 -2
- package/dist/hooks/usePanelSelectSchemas.js +3 -2
- package/dist/hooks/useScreenshotOss.js +3 -2
- package/dist/packages/hooks/src/useDebounce.js +3 -2
- package/dist/packages/hooks/src/useElementScreenshot.js +3 -2
- package/dist/packages/hooks/src/usePriorityValue.js +9 -8
- package/dist/packages/utils/src/stateHandler.js +15 -9
- package/dist/plugins/default/renderCellContent.js +12 -11
- package/dist/plugins/vxeTable/switchStatus.js +13 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -16,6 +16,7 @@ import "xe-utils";
|
|
|
16
16
|
import "dayjs/plugin/utc";
|
|
17
17
|
import "dayjs/plugin/timezone";
|
|
18
18
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
19
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
19
20
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
20
21
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
21
22
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
@@ -24,7 +25,7 @@ import "lodash-es";
|
|
|
24
25
|
import "vue-router";
|
|
25
26
|
import re from "sortablejs";
|
|
26
27
|
import { useModalRender as ue } from "../../../tt-modal/src/hooks/useModalRender.js";
|
|
27
|
-
const de = ["aria-label", "onClick"],
|
|
28
|
+
const de = ["aria-label", "onClick"], De = /* @__PURE__ */ X({
|
|
28
29
|
__name: "TableColumnModal",
|
|
29
30
|
props: {
|
|
30
31
|
openColumn: { type: Function },
|
|
@@ -228,5 +229,5 @@ const de = ["aria-label", "onClick"], Ie = /* @__PURE__ */ X({
|
|
|
228
229
|
}
|
|
229
230
|
});
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
De as default
|
|
232
233
|
};
|
|
@@ -10,6 +10,7 @@ import "xe-utils";
|
|
|
10
10
|
import "dayjs/plugin/utc";
|
|
11
11
|
import "dayjs/plugin/timezone";
|
|
12
12
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
13
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
15
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
@@ -19,7 +20,7 @@ import { toolProps as z } from "../toolProps.js";
|
|
|
19
20
|
import F from "../../../../assets/svg/RiRefreshLine.svg.js";
|
|
20
21
|
import L from "../../../../assets/svg/columnSet.svg.js";
|
|
21
22
|
import k from "./TableExportButton.vue.js";
|
|
22
|
-
const P = ["data-testid"],
|
|
23
|
+
const P = ["data-testid"], st = /* @__PURE__ */ E({
|
|
23
24
|
__name: "TableToolbarTools",
|
|
24
25
|
props: z,
|
|
25
26
|
emits: ["on-refresh", "on-columns-setting", "on-export", "on-custom-export"],
|
|
@@ -100,5 +101,5 @@ const P = ["data-testid"], it = /* @__PURE__ */ E({
|
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
+
st as default
|
|
104
105
|
};
|
|
@@ -9,50 +9,51 @@ import "xe-utils";
|
|
|
9
9
|
import "dayjs/plugin/utc";
|
|
10
10
|
import "dayjs/plugin/timezone";
|
|
11
11
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
17
|
import "lodash-es";
|
|
17
|
-
function
|
|
18
|
+
function _({
|
|
18
19
|
getTableProps: K,
|
|
19
20
|
getProps: O,
|
|
20
21
|
tableMethods: S
|
|
21
22
|
}) {
|
|
22
|
-
const
|
|
23
|
+
const u = B();
|
|
23
24
|
let p = 0, d = !1;
|
|
24
25
|
const A = (t) => w(t) ? t() : t ?? "";
|
|
25
26
|
async function q() {
|
|
26
|
-
var e,
|
|
27
|
+
var e, s, i, m;
|
|
27
28
|
const t = ++p;
|
|
28
29
|
try {
|
|
29
|
-
const { columns:
|
|
30
|
-
if (!((
|
|
31
|
-
const o = (i = a(
|
|
30
|
+
const { columns: r, columnsKey: j, defaultDisplayFields: c, getColumnsApi: C } = f(K), g = A(j);
|
|
31
|
+
if (!((s = (e = a(O)) == null ? void 0 : e.table) != null && s.useHttpCache) || !g || !v.userId) return;
|
|
32
|
+
const o = (i = a(r)) != null && i.length ? a(r) : S.getTableColumns(), y = await (C == null ? void 0 : C({ permissionOnlyCode: g, userId: v.userId }));
|
|
32
33
|
if (d || t !== p) return;
|
|
33
|
-
const n = (
|
|
34
|
+
const n = (m = y == null ? void 0 : y.records) == null ? void 0 : m[0];
|
|
34
35
|
let I;
|
|
35
36
|
if (n != null && n.json) {
|
|
36
37
|
const h = JSON.parse(n.json), x = new Map((o == null ? void 0 : o.map((l) => [l.field, l])) ?? []);
|
|
37
38
|
I = h.map((l) => x.get(l)).filter(Boolean);
|
|
38
39
|
} else
|
|
39
40
|
I = c != null && c.length ? o == null ? void 0 : o.filter((h) => c.includes(h.field)) : o;
|
|
40
|
-
|
|
41
|
+
u.value = n == null ? void 0 : n.id, S.setTableColumns(I);
|
|
41
42
|
} catch {
|
|
42
43
|
if (d || t !== p) return;
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
async function b(t) {
|
|
46
|
-
var i,
|
|
47
|
-
const e = (i = a(O)) == null ? void 0 : i.table,
|
|
47
|
+
var i, m;
|
|
48
|
+
const e = (i = a(O)) == null ? void 0 : i.table, s = {
|
|
48
49
|
userId: v.userId,
|
|
49
|
-
permissionOnlyCode: A((
|
|
50
|
+
permissionOnlyCode: A((m = f(K)) == null ? void 0 : m.columnsKey)
|
|
50
51
|
};
|
|
51
|
-
if (f(
|
|
52
|
-
return await e.updateColumnsApi({ id: f(
|
|
52
|
+
if (f(u) && w(e == null ? void 0 : e.updateColumnsApi))
|
|
53
|
+
return await e.updateColumnsApi({ id: f(u), json: t, ...s });
|
|
53
54
|
if (w(e == null ? void 0 : e.setColumnsApi)) {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
55
|
+
const r = await e.setColumnsApi({ ...s, json: t });
|
|
56
|
+
return u.value = r, r;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
return D() && G(() => {
|
|
@@ -60,5 +61,5 @@ function Z({
|
|
|
60
61
|
}), { restoreColumns: q, saveColumns: b };
|
|
61
62
|
}
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
_ as useColumnPersistence
|
|
64
65
|
};
|
|
@@ -9,6 +9,7 @@ import J from "xe-utils";
|
|
|
9
9
|
import "dayjs/plugin/utc";
|
|
10
10
|
import "dayjs/plugin/timezone";
|
|
11
11
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
@@ -59,7 +60,7 @@ function T(e) {
|
|
|
59
60
|
}
|
|
60
61
|
);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function ft(e, i, s) {
|
|
63
64
|
const r = K([]), u = U(!1), m = d(() => {
|
|
64
65
|
const { customizeColumn: t, editRules: l } = o(e);
|
|
65
66
|
return {
|
|
@@ -134,5 +135,5 @@ function mt(e, i, s) {
|
|
|
134
135
|
};
|
|
135
136
|
}
|
|
136
137
|
export {
|
|
137
|
-
|
|
138
|
+
ft as useColumns
|
|
138
139
|
};
|
|
@@ -8,28 +8,29 @@ import "xe-utils";
|
|
|
8
8
|
import "dayjs/plugin/utc";
|
|
9
9
|
import "dayjs/plugin/timezone";
|
|
10
10
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
11
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
11
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
16
|
import "lodash-es";
|
|
16
17
|
const f = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])';
|
|
17
|
-
function m(
|
|
18
|
-
const d = window.getComputedStyle(
|
|
19
|
-
return d.display !== "none" && d.visibility !== "hidden" && !!
|
|
18
|
+
function m(c) {
|
|
19
|
+
const d = window.getComputedStyle(c);
|
|
20
|
+
return d.display !== "none" && d.visibility !== "hidden" && !!c.offsetParent;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
function d(t =
|
|
22
|
+
function j(c) {
|
|
23
|
+
function d(t = c.value) {
|
|
23
24
|
const e = t == null ? void 0 : t.querySelector(".vxe-table");
|
|
24
25
|
return e ? Array.from(e.querySelectorAll(f)).filter(m).filter((o, r, n) => {
|
|
25
26
|
const s = o.closest('[class*="table-action"]');
|
|
26
27
|
if (!s) return !0;
|
|
27
|
-
const
|
|
28
|
+
const i = s.getBoundingClientRect();
|
|
28
29
|
return !n.some((l) => {
|
|
29
30
|
const u = l.closest('[class*="table-action"]');
|
|
30
31
|
if (!u || u === s) return !1;
|
|
31
32
|
const a = u.getBoundingClientRect();
|
|
32
|
-
return Math.abs(a.top -
|
|
33
|
+
return Math.abs(a.top - i.top) <= 2 && a.left > i.left;
|
|
33
34
|
});
|
|
34
35
|
}).sort((o, r) => {
|
|
35
36
|
const n = (o.closest(".vxe-body--column") || o).getBoundingClientRect(), s = (r.closest(".vxe-body--column") || r).getBoundingClientRect();
|
|
@@ -37,7 +38,7 @@ function U(i) {
|
|
|
37
38
|
}) : [];
|
|
38
39
|
}
|
|
39
40
|
function x(t) {
|
|
40
|
-
const e =
|
|
41
|
+
const e = c.value;
|
|
41
42
|
if (!e) return;
|
|
42
43
|
const o = Array.from(document.querySelectorAll(f)).filter((r) => {
|
|
43
44
|
if (!m(r) || e.contains(r) || r.closest(".tt-table")) return !1;
|
|
@@ -47,18 +48,18 @@ function U(i) {
|
|
|
47
48
|
return t ? o[0] : o[o.length - 1];
|
|
48
49
|
}
|
|
49
50
|
function E(t) {
|
|
50
|
-
const e =
|
|
51
|
+
const e = c.value;
|
|
51
52
|
if (!e) return;
|
|
52
53
|
const o = Array.from(document.querySelectorAll(".tt-table")), r = o[o.indexOf(e) + (t ? 1 : -1)], n = r ? b(r) : [];
|
|
53
54
|
if (n.length)
|
|
54
55
|
return t ? n[0] : n[n.length - 1];
|
|
55
56
|
}
|
|
56
|
-
function T(t =
|
|
57
|
+
function T(t = c.value) {
|
|
57
58
|
return t ? Array.from(t.querySelectorAll(f)).filter(
|
|
58
59
|
(e) => !e.closest(".vxe-table") && m(e)
|
|
59
60
|
) : [];
|
|
60
61
|
}
|
|
61
|
-
function b(t =
|
|
62
|
+
function b(t = c.value) {
|
|
62
63
|
return [...T(t), ...d(t)];
|
|
63
64
|
}
|
|
64
65
|
function y(t) {
|
|
@@ -67,12 +68,12 @@ function U(i) {
|
|
|
67
68
|
if (!O(e)) return;
|
|
68
69
|
const o = b(), r = e.closest(f), n = r ? o.indexOf(r) : -1;
|
|
69
70
|
if (n < 0) return;
|
|
70
|
-
const s = !t.shiftKey,
|
|
71
|
+
const s = !t.shiftKey, i = x(s), l = E(s), u = i && l ? !!(i.compareDocumentPosition(l) & Node.DOCUMENT_POSITION_FOLLOWING) === s ? i : l : i || l, a = o[n + (s ? 1 : -1)] || u;
|
|
71
72
|
a && (t.preventDefault(), t.stopPropagation(), S(() => a.focus()));
|
|
72
73
|
}
|
|
73
74
|
function g(t) {
|
|
74
75
|
if (t.key !== "Tab") return;
|
|
75
|
-
const e = t.target, o =
|
|
76
|
+
const e = t.target, o = c.value;
|
|
76
77
|
if (!O(e) || !o) return;
|
|
77
78
|
const r = e.closest(".tt-table");
|
|
78
79
|
if (r && r !== o) return;
|
|
@@ -82,17 +83,17 @@ function U(i) {
|
|
|
82
83
|
}
|
|
83
84
|
const n = e.closest(f);
|
|
84
85
|
if (!n) return;
|
|
85
|
-
const s = b(),
|
|
86
|
-
if (!
|
|
86
|
+
const s = b(), i = t.shiftKey ? s[s.length - 1] : s[0];
|
|
87
|
+
if (!i) return;
|
|
87
88
|
const l = Array.from(document.querySelectorAll(f)).filter(
|
|
88
89
|
(p) => !p.closest('[class*="table-action"]') && m(p)
|
|
89
90
|
), u = l.indexOf(n);
|
|
90
91
|
if (u < 0) return;
|
|
91
92
|
const a = l[u + (t.shiftKey ? -1 : 1)];
|
|
92
|
-
!a || !o.contains(a) || (t.preventDefault(), t.stopPropagation(),
|
|
93
|
+
!a || !o.contains(a) || (t.preventDefault(), t.stopPropagation(), i.focus());
|
|
93
94
|
}
|
|
94
95
|
return C(() => document.addEventListener("keydown", g, !0)), N(() => document.removeEventListener("keydown", g, !0)), { onTableKeydown: y };
|
|
95
96
|
}
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
j as useKeyboardNav
|
|
98
99
|
};
|
|
@@ -2,7 +2,7 @@ import { GlobalConfig as s } from "../../../../hooks/useSetup.js";
|
|
|
2
2
|
import "axios";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { isFunction as P } from "../../../../packages/utils/src/is.js";
|
|
5
|
-
import { ref as h, unref as
|
|
5
|
+
import { ref as h, unref as e, computed as C, watch as y } from "vue";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "numeral";
|
|
8
8
|
import "xe-utils";
|
|
@@ -10,6 +10,7 @@ import "dayjs/plugin/utc";
|
|
|
10
10
|
import "dayjs/plugin/timezone";
|
|
11
11
|
import { mergeWithArrayOverride as b } from "../../../../packages/utils/src/merge.js";
|
|
12
12
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
13
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
15
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
@@ -22,45 +23,45 @@ const z = {
|
|
|
22
23
|
pageSizes: [300, 500, 1e3, 2e3],
|
|
23
24
|
layouts: ["Total", "PrevPage", "JumpNumber", "NextPage", "Sizes", "FullJump"]
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
-
var
|
|
26
|
+
function E(i, f) {
|
|
27
|
+
var m;
|
|
27
28
|
const r = h(
|
|
28
|
-
b(
|
|
29
|
+
b(e(i).pagerConfig || {}, ((m = s.table) == null ? void 0 : m.pagerConfig) || {})
|
|
29
30
|
), g = C(() => {
|
|
30
|
-
const { showPager:
|
|
31
|
-
if (!(!
|
|
32
|
-
return { ...z, ...
|
|
31
|
+
const { showPager: t, pagerConfig: n } = e(i);
|
|
32
|
+
if (!(!t && !n))
|
|
33
|
+
return { ...z, ...e(r) };
|
|
33
34
|
});
|
|
34
35
|
function c() {
|
|
35
|
-
return
|
|
36
|
+
return e(g);
|
|
36
37
|
}
|
|
37
|
-
function o(
|
|
38
|
-
r.value = { ...
|
|
38
|
+
function o(t) {
|
|
39
|
+
r.value = { ...e(r), ...t };
|
|
39
40
|
}
|
|
40
41
|
let a = !1;
|
|
41
|
-
async function l(
|
|
42
|
-
const { currentPage: n, pageSize:
|
|
43
|
-
if (P(
|
|
42
|
+
async function l(t) {
|
|
43
|
+
const { currentPage: n, pageSize: p } = t, { beforePageChange: u } = e(i);
|
|
44
|
+
if (P(u)) {
|
|
44
45
|
if (a) return;
|
|
45
46
|
a = !0;
|
|
46
47
|
try {
|
|
47
|
-
if (await
|
|
48
|
+
if (await u({ ...e(r), currentPage: n, pageSize: p }) === !1) return;
|
|
48
49
|
} catch {
|
|
49
50
|
return;
|
|
50
51
|
} finally {
|
|
51
52
|
a = !1;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
o({ currentPage: n, pageSize:
|
|
55
|
+
o({ currentPage: n, pageSize: p }), f("page-change", t);
|
|
55
56
|
}
|
|
56
57
|
return y(
|
|
57
|
-
() =>
|
|
58
|
-
(
|
|
59
|
-
|
|
58
|
+
() => e(i).pagerConfig,
|
|
59
|
+
(t) => {
|
|
60
|
+
t && o(t);
|
|
60
61
|
},
|
|
61
62
|
{ deep: !0 }
|
|
62
63
|
), { pagination: r, paginationInfo: g, getPagination: c, setPagination: o, onPageChange: l };
|
|
63
64
|
}
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
E as usePagination
|
|
66
67
|
};
|
|
@@ -9,12 +9,13 @@ import "xe-utils";
|
|
|
9
9
|
import "dayjs/plugin/utc";
|
|
10
10
|
import "dayjs/plugin/timezone";
|
|
11
11
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
|
-
import { omit as me, set as R, get as
|
|
17
|
-
function
|
|
17
|
+
import { omit as me, set as R, get as p } from "lodash-es";
|
|
18
|
+
function qe(s, W, x) {
|
|
18
19
|
const { grid: u, pagination: f, paginationInfo: d, setPagination: O, setLoading: q, resetSelectionAfterFetch: T, rows: X, applyRows: j } = W, P = K({ currentPage: 1 }), y = K(!1);
|
|
19
20
|
let w = !0, D = !1, S = !1, g;
|
|
20
21
|
const L = oe(() => {
|
|
@@ -42,9 +43,9 @@ function Oe(s, W, p) {
|
|
|
42
43
|
return { ...t(d) || t(f), ...ae(e) ? e : {} };
|
|
43
44
|
}
|
|
44
45
|
function $(e) {
|
|
45
|
-
const r = se(e), i = r ? 0 :
|
|
46
|
+
const r = se(e), i = r ? 0 : p(e, t(s).totalField);
|
|
46
47
|
return {
|
|
47
|
-
items: r ? e :
|
|
48
|
+
items: r ? e : p(e, t(s).dataField),
|
|
48
49
|
total: ne(i) ? 0 : Number(i)
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -52,7 +53,7 @@ function Oe(s, W, p) {
|
|
|
52
53
|
var n;
|
|
53
54
|
const { isScrollFetch: o, currentPageField: l = "" } = t(s), c = t(s).afterFetch ?? ((n = k.table) == null ? void 0 : n.afterFetch);
|
|
54
55
|
let a = e;
|
|
55
|
-
return b(c) && (a = await c(a, i) || a), o &&
|
|
56
|
+
return b(c) && (a = await c(a, i) || a), o && p(r, l, 1) !== 1 && (a = [...t(X), ...a]), a;
|
|
56
57
|
}
|
|
57
58
|
async function h(e) {
|
|
58
59
|
var G, U, B;
|
|
@@ -88,10 +89,10 @@ function Oe(s, W, p) {
|
|
|
88
89
|
await Q({ tablePage: { currentPage: 1, pageSize: m.pageSize } });
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
|
-
if (!await j(I, n) || !n() || (O({ total: H, currentPage: v }), P.value = A(t(d)),
|
|
92
|
+
if (!await j(I, n) || !n() || (O({ total: H, currentPage: v }), P.value = A(t(d)), x("fetch-success", { items: I, total: E, rawDataSource: F }), !n()) || (T(), !n())) return;
|
|
92
93
|
y.value = !0;
|
|
93
94
|
} catch (m) {
|
|
94
|
-
if (!n() || (
|
|
95
|
+
if (!n() || (x("fetch-error", m), !n()) || !await j([], n) || !n() || (O({ total: 0 }), P.value = A(t(d)), T(), !n())) return;
|
|
95
96
|
y.value = !0;
|
|
96
97
|
} finally {
|
|
97
98
|
g === a && (g = void 0, q(!1));
|
|
@@ -144,5 +145,5 @@ function Oe(s, W, p) {
|
|
|
144
145
|
}), { query: h, reload: Q, reloadFilter: V, isLoaded: y };
|
|
145
146
|
}
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
qe as useQuery
|
|
148
149
|
};
|
|
@@ -8,6 +8,7 @@ import "xe-utils";
|
|
|
8
8
|
import "dayjs/plugin/utc";
|
|
9
9
|
import "dayjs/plugin/timezone";
|
|
10
10
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
11
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
11
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
@@ -23,7 +24,7 @@ function A(r) {
|
|
|
23
24
|
function O(r, d) {
|
|
24
25
|
return A(d) ? S(r, d) : r[d];
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function re(r) {
|
|
27
28
|
var v;
|
|
28
29
|
const d = ((v = q()) == null ? void 0 : v.uid) || 0;
|
|
29
30
|
let w = 0;
|
|
@@ -106,5 +107,5 @@ function ne(r) {
|
|
|
106
107
|
return { getRowKey: x, getRowKeys: B, prepareRows: D, toVxeRowConfig: M };
|
|
107
108
|
}
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
re as useRowIdentity
|
|
110
111
|
};
|
|
@@ -9,13 +9,14 @@ import "xe-utils";
|
|
|
9
9
|
import "dayjs/plugin/utc";
|
|
10
10
|
import "dayjs/plugin/timezone";
|
|
11
11
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
17
|
import "lodash-es";
|
|
17
|
-
function
|
|
18
|
-
const { getRowKey:
|
|
18
|
+
function ie(f, r, i, A) {
|
|
19
|
+
const { getRowKey: p, getRowKeys: b } = A, l = $([]), k = j([]), B = q(() => {
|
|
19
20
|
const { showCheckbox: e, showRadio: o } = t(f), n = z(l);
|
|
20
21
|
return e ? n || [] : o ? n ? [n] : [] : [];
|
|
21
22
|
});
|
|
@@ -23,67 +24,67 @@ function re(f, s, i, A) {
|
|
|
23
24
|
return t(l);
|
|
24
25
|
}
|
|
25
26
|
function y() {
|
|
26
|
-
var c,
|
|
27
|
+
var c, s, a;
|
|
27
28
|
const { showCheckbox: e, showRadio: o, reserveSelection: n } = t(f);
|
|
28
29
|
if (e) {
|
|
29
|
-
const u = ((c = t(
|
|
30
|
+
const u = ((c = t(r)) == null ? void 0 : c.getCheckboxRecords(!0)) || [];
|
|
30
31
|
if (!n) return u;
|
|
31
|
-
const C = ((
|
|
32
|
+
const C = ((s = t(r)) == null ? void 0 : s.getCheckboxReserveRecords(!0)) || [];
|
|
32
33
|
if (!C.length) return u;
|
|
33
34
|
const w = /* @__PURE__ */ new Map(), m = b(u), g = b(C);
|
|
34
35
|
return u.forEach((R, v) => w.set(m[v], R)), C.forEach((R, v) => {
|
|
35
36
|
w.has(g[v]) || w.set(g[v], R);
|
|
36
37
|
}), [...w.values()];
|
|
37
38
|
}
|
|
38
|
-
return o ? (a = t(
|
|
39
|
+
return o ? (a = t(r)) == null ? void 0 : a.getRadioRecord(!0) : [];
|
|
39
40
|
}
|
|
40
41
|
function E() {
|
|
41
42
|
var e;
|
|
42
|
-
return ((e = t(
|
|
43
|
+
return ((e = t(r)) == null ? void 0 : e.getTableData().fullData) || [];
|
|
43
44
|
}
|
|
44
45
|
function h(e) {
|
|
45
46
|
const o = y();
|
|
46
|
-
k.value = o, l.value = S(o) ? b(o) : o ?
|
|
47
|
+
k.value = o, l.value = S(o) ? b(o) : o ? p(o) : void 0, i("selection-change", { keys: x(), rows: o, data: e });
|
|
47
48
|
}
|
|
48
49
|
const T = (e) => {
|
|
49
50
|
h(e), i("checkbox-change", e);
|
|
50
51
|
}, D = (e) => {
|
|
51
52
|
h(e), i("checkbox-all", e);
|
|
52
|
-
},
|
|
53
|
+
}, K = (e) => {
|
|
53
54
|
var o;
|
|
54
55
|
i("checkbox-range-change", e), ((o = e.records) == null ? void 0 : o.length) !== 1 && h(e);
|
|
55
56
|
};
|
|
56
57
|
function P(e) {
|
|
57
|
-
k.value = e.row, l.value = e.row ?
|
|
58
|
+
k.value = e.row, l.value = e.row ? p(e.row) : void 0, i("radio-change", e), i("selection-change", { keys: x(), rows: y(), data: e });
|
|
58
59
|
}
|
|
59
60
|
async function F(e) {
|
|
60
61
|
const { rows: o, cols: n } = e;
|
|
61
62
|
if (o.length === 1) return;
|
|
62
|
-
const c = t(
|
|
63
|
-
!c || !n.some((
|
|
63
|
+
const c = t(r);
|
|
64
|
+
!c || !n.some((s) => s.type === "checkbox") || (await c.setCheckboxRow(o, !c.isCheckedByCheckboxRow(o[0])), h(e));
|
|
64
65
|
}
|
|
65
66
|
const G = (e) => {
|
|
66
67
|
var c;
|
|
67
68
|
const { checkboxConfig: o, showCheckbox: n } = t(f);
|
|
68
|
-
o != null && o.range && n ?
|
|
69
|
+
o != null && o.range && n ? K({ records: e.rows }) : (c = _.table) != null && c.isAreaCheckboxSelection && F(e), i("cell-area-selection-end", e);
|
|
69
70
|
};
|
|
70
71
|
async function L(e, o = []) {
|
|
71
72
|
var g, R;
|
|
72
|
-
const { showCheckbox: n, showRadio: c } = t(f),
|
|
73
|
-
...b(
|
|
73
|
+
const { showCheckbox: n, showRadio: c } = t(f), s = S(e) ? e : e ? [e] : [], a = /* @__PURE__ */ new Set([
|
|
74
|
+
...b(s),
|
|
74
75
|
...S(o) ? o : o == null ? [] : [o]
|
|
75
|
-
]), u = E(), C = b(u), w = u.filter((v, V) => a.has(C[V])), m = w.length ? w :
|
|
76
|
-
n && await ((g = t(
|
|
76
|
+
]), u = E(), C = b(u), w = u.filter((v, V) => a.has(C[V])), m = w.length ? w : s;
|
|
77
|
+
n && await ((g = t(r)) == null ? void 0 : g.setCheckboxRow(m, !0)), c && await ((R = t(r)) == null ? void 0 : R.setRadioRow(m[0])), await H(), h();
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
var c,
|
|
79
|
+
function d() {
|
|
80
|
+
var c, s, a;
|
|
80
81
|
const { showCheckbox: e, showRadio: o, reserveSelection: n } = t(f);
|
|
81
|
-
!e && !o || (e && (l.value = [], k.value = [], (c = t(
|
|
82
|
+
!e && !o || (e && (l.value = [], k.value = [], (c = t(r)) == null || c.clearCheckboxRow(), n && ((s = t(r)) == null || s.clearCheckboxReserve())), o && (l.value = void 0, k.value = void 0, (a = t(r)) == null || a.clearRadioRow()), i("selection-change", { keys: x(), rows: y() }));
|
|
82
83
|
}
|
|
83
84
|
function M() {
|
|
84
85
|
const { showCheckbox: e, reserveSelection: o } = t(f);
|
|
85
86
|
if (!e || !o) {
|
|
86
|
-
|
|
87
|
+
d();
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
90
|
h();
|
|
@@ -96,15 +97,15 @@ function re(f, s, i, A) {
|
|
|
96
97
|
getSelectRows: y,
|
|
97
98
|
syncSelection: h,
|
|
98
99
|
setSelectedRowKeys: L,
|
|
99
|
-
clearSelectedRowKeys:
|
|
100
|
+
clearSelectedRowKeys: d,
|
|
100
101
|
resetSelectionAfterFetch: M,
|
|
101
102
|
onCheckboxChange: T,
|
|
102
103
|
onCheckboxAll: D,
|
|
103
|
-
onCheckboxRangeChange:
|
|
104
|
+
onCheckboxRangeChange: K,
|
|
104
105
|
onRadioChange: P,
|
|
105
106
|
onCellAreaSelectionEnd: G
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
ie as useRowSelection
|
|
110
111
|
};
|
|
@@ -8,13 +8,14 @@ import "xe-utils";
|
|
|
8
8
|
import "dayjs/plugin/utc";
|
|
9
9
|
import "dayjs/plugin/timezone";
|
|
10
10
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
11
|
+
import "../../../../packages/utils/src/stateHandler.js";
|
|
11
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
12
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
16
|
import "lodash-es";
|
|
16
|
-
function
|
|
17
|
-
const f = E(() => !!(t(c).leftSlotWidth || t(c).rightSlotWidth)), w = b(), g = b(),
|
|
17
|
+
function X(c, s, N) {
|
|
18
|
+
const f = E(() => !!(t(c).leftSlotWidth || t(c).rightSlotWidth)), w = b(), g = b(), m = u(0), d = u(0), p = u(0), h = u(0), y = u(0), v = b([]), a = /* @__PURE__ */ new Set();
|
|
18
19
|
function q() {
|
|
19
20
|
return new Promise((r) => {
|
|
20
21
|
let e = !1, o;
|
|
@@ -38,7 +39,7 @@ function V(c, s, N) {
|
|
|
38
39
|
var o, n, i, l;
|
|
39
40
|
if (!t(f) || !await q()) return;
|
|
40
41
|
const e = (n = (o = t(s)) == null ? void 0 : o.$el) == null ? void 0 : n.querySelector(".vxe-table--body");
|
|
41
|
-
e && (
|
|
42
|
+
e && (d.value = e.clientHeight, y.value = Number.parseFloat(e.style.marginTop) || 0, v.value = Array.from(e.querySelectorAll(".vxe-body--row")).map((H) => {
|
|
42
43
|
var F;
|
|
43
44
|
return {
|
|
44
45
|
...(F = t(s)) == null ? void 0 : F.getRowNode(H),
|
|
@@ -50,14 +51,14 @@ function V(c, s, N) {
|
|
|
50
51
|
var o, n, i, l;
|
|
51
52
|
if (!t(f) || !await q()) return;
|
|
52
53
|
const e = (o = t(s)) == null ? void 0 : o.$el;
|
|
53
|
-
|
|
54
|
+
m.value = ((n = e == null ? void 0 : e.querySelector(".vxe-table--body-wrapper")) == null ? void 0 : n.clientHeight) || 0, p.value = ((i = e == null ? void 0 : e.querySelector(".vxe-table--header")) == null ? void 0 : i.clientHeight) || 0, h.value = Number.parseFloat((l = e == null ? void 0 : e.querySelector(".vxe-body--y-space")) == null ? void 0 : l.style.height) || 0, x(r ? 0 : void 0);
|
|
54
55
|
}
|
|
55
56
|
return W(N, () => S()), W([() => t(c).leftSlotWidth, () => t(c).rightSlotWidth], () => {
|
|
56
57
|
if (t(f)) {
|
|
57
58
|
S();
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
+
m.value = 0, d.value = 0, p.value = 0, y.value = 0, h.value = 0, v.value = [];
|
|
61
62
|
}), R(() => {
|
|
62
63
|
a.forEach((r) => r()), a.clear();
|
|
63
64
|
}), {
|
|
@@ -65,8 +66,8 @@ function V(c, s, N) {
|
|
|
65
66
|
syncScroll: x,
|
|
66
67
|
rowNodes: v,
|
|
67
68
|
headerHeight: p,
|
|
68
|
-
bodyHeight:
|
|
69
|
-
bodyWrapperHeight:
|
|
69
|
+
bodyHeight: d,
|
|
70
|
+
bodyWrapperHeight: m,
|
|
70
71
|
bodyOffsetTop: y,
|
|
71
72
|
bodyScrollHeight: h,
|
|
72
73
|
leftScrollbarRef: w,
|
|
@@ -74,5 +75,5 @@ function V(c, s, N) {
|
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
X as useSideSlot
|
|
78
79
|
};
|