@dazhicheng/ui 1.5.261 → 1.5.262
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/components/tt-api-component/index.vue2.js +41 -40
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.vue2.js +10 -9
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
- 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 +3 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-form/index.js +7 -6
- package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/form.vue2.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 +26 -25
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
- package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/index.vue.js +3 -2
- package/dist/components/tt-radio-group/index.vue.js +11 -10
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- 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.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-table/index.d.ts +12 -12
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/src/Table.vue.js +45 -44
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
- package/dist/components/tt-table/src/components/TableButtons.js +3 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
- package/dist/components/tt-table/src/props.js +5 -4
- package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
- package/dist/hooks/basicDataCodes.d.ts +4 -1
- package/dist/hooks/basicDataCodes.js +35 -33
- package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
- package/dist/hooks/usePanelSelectSchemas.js +62 -62
- package/dist/hooks/useScreenshotOss.js +3 -2
- package/dist/plugins/vxeTable/switchStatus.js +3 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -412,15 +412,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
412
412
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
413
413
|
showPager: any;
|
|
414
414
|
showCheckbox: any;
|
|
415
|
-
showRadio: any;
|
|
416
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
417
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
418
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
419
415
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
420
416
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
421
417
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
422
418
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
423
419
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
420
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
421
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
422
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
424
423
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
425
424
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
426
425
|
emptyText: string;
|
|
@@ -437,6 +436,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
437
436
|
showRefresh: boolean;
|
|
438
437
|
columnsKey: string | (() => string);
|
|
439
438
|
showExpand: any;
|
|
439
|
+
showRadio: any;
|
|
440
440
|
showIndex: any;
|
|
441
441
|
isCellResize: any;
|
|
442
442
|
isColumnsDrag: any;
|
|
@@ -1044,15 +1044,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1044
1044
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1045
1045
|
showPager: any;
|
|
1046
1046
|
showCheckbox: any;
|
|
1047
|
-
showRadio: any;
|
|
1048
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1049
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1050
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1051
1047
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1052
1048
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1053
1049
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1054
1050
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1055
1051
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1052
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1053
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1054
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1056
1055
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1057
1056
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1058
1057
|
emptyText: string;
|
|
@@ -1069,6 +1068,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1069
1068
|
showRefresh: boolean;
|
|
1070
1069
|
columnsKey: string | (() => string);
|
|
1071
1070
|
showExpand: any;
|
|
1071
|
+
showRadio: any;
|
|
1072
1072
|
showIndex: any;
|
|
1073
1073
|
isCellResize: any;
|
|
1074
1074
|
isColumnsDrag: any;
|
|
@@ -1409,15 +1409,14 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1409
1409
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1410
1410
|
showPager: any;
|
|
1411
1411
|
showCheckbox: any;
|
|
1412
|
-
showRadio: any;
|
|
1413
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1414
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1415
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1416
1412
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1417
1413
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1418
1414
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1419
1415
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1420
1416
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1417
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1418
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1419
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1421
1420
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1422
1421
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1423
1422
|
emptyText: string;
|
|
@@ -1434,6 +1433,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1434
1433
|
showRefresh: boolean;
|
|
1435
1434
|
columnsKey: string | (() => string);
|
|
1436
1435
|
showExpand: any;
|
|
1436
|
+
showRadio: any;
|
|
1437
1437
|
showIndex: any;
|
|
1438
1438
|
isCellResize: any;
|
|
1439
1439
|
isColumnsDrag: any;
|
|
@@ -30,6 +30,7 @@ import "es-toolkit/compat";
|
|
|
30
30
|
import "zod";
|
|
31
31
|
import "../tt-form/src/shared/zod-defaults.js";
|
|
32
32
|
import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
33
|
+
import "vue-router";
|
|
33
34
|
import "@vueuse/core";
|
|
34
35
|
import "../tt-icon/index.js";
|
|
35
36
|
/* empty css */
|
|
@@ -57,7 +58,6 @@ import "../tt-log/index.js";
|
|
|
57
58
|
/* empty css */
|
|
58
59
|
/* empty css */
|
|
59
60
|
import "../tt-loading/index.js";
|
|
60
|
-
import "vue-router";
|
|
61
61
|
import "../../hooks/basicDataCodes.js";
|
|
62
62
|
import "numeral";
|
|
63
63
|
import "sortablejs";
|
|
@@ -809,15 +809,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
809
809
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
810
810
|
showPager: any;
|
|
811
811
|
showCheckbox: any;
|
|
812
|
-
showRadio: any;
|
|
813
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
814
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
815
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
816
812
|
columns: import('vue').MaybeRef<VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
817
813
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
818
814
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
819
815
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
820
816
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
817
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
818
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
819
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
821
820
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
822
821
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
823
822
|
emptyText: string;
|
|
@@ -834,6 +833,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
834
833
|
showRefresh: boolean;
|
|
835
834
|
columnsKey: string | (() => string);
|
|
836
835
|
showExpand: any;
|
|
836
|
+
showRadio: any;
|
|
837
837
|
showIndex: any;
|
|
838
838
|
isCellResize: any;
|
|
839
839
|
isColumnsDrag: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Pt, useAttrs as Rt, useSlots as $t, ref as _, getCurrentInstance as Et, computed as T, provide as $e, reactive as Ot, toValue as K, toRaw as I, unref as t, watch as J, nextTick as B, onMounted as _t, onUnmounted as It, createElementBlock as y, openBlock as p, normalizeClass as A, createVNode as F, mergeProps as re, toHandlers as Dt, createSlots as Nt, withCtx as
|
|
1
|
+
import { defineComponent as Pt, useAttrs as Rt, useSlots as $t, ref as _, getCurrentInstance as Et, computed as T, provide as $e, reactive as Ot, toValue as K, toRaw as I, unref as t, watch as J, nextTick as B, onMounted as _t, onUnmounted as It, createElementBlock as y, openBlock as p, normalizeClass as A, createVNode as F, mergeProps as re, toHandlers as Dt, createSlots as Nt, withCtx as m, renderSlot as S, createBlock as ne, createCommentVNode as H, normalizeStyle as $, createElementVNode as P, normalizeProps as j, guardReactiveProps as X, Fragment as Ee, toDisplayString as M, renderList as se, withModifiers as zt, createTextVNode as le } from "vue";
|
|
2
2
|
import { useLoading as Bt } from "../../../hooks/useLoading.js";
|
|
3
3
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
4
4
|
import { useDesign as Ft } from "../../../packages/hooks/src/useDesign.js";
|
|
@@ -15,6 +15,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
|
|
|
15
15
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
16
|
import { checkVersion as jt } from "../../../packages/utils/src/check.js";
|
|
17
17
|
import { omit as G, cloneDeep as Mt } from "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import { TtErrorTooltip as Gt } from "../../tt-form-item-error-tooltip/index.js";
|
|
19
20
|
import { useStore as Ut } from "@tanstack/vue-store";
|
|
20
21
|
import { VxeUI as Wt, VxePager as qt } from "vxe-pc-ui";
|
|
@@ -38,7 +39,7 @@ import { createTableContext as co } from "./hooks/useTableContext.js";
|
|
|
38
39
|
import { useTableEvents as uo } from "./hooks/useTableEvent.js";
|
|
39
40
|
import { tableOtherProps as fo, tableProps as Ne } from "./props.js";
|
|
40
41
|
import { TableApi as po } from "./utils/table-api.js";
|
|
41
|
-
const
|
|
42
|
+
const mo = ["data-testid", "data-table-columns"], go = ["onClick"], bo = {
|
|
42
43
|
class: "mr-4px flex-1 overflow-hidden"
|
|
43
44
|
}, ho = ["src"], yo = ["src"], So = ["src"], xo = {
|
|
44
45
|
style: {
|
|
@@ -48,7 +49,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
48
49
|
key: 0
|
|
49
50
|
}, Co = {
|
|
50
51
|
key: 0
|
|
51
|
-
}, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])',
|
|
52
|
+
}, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])', ur = /* @__PURE__ */ Pt({
|
|
52
53
|
name: "TtTable",
|
|
53
54
|
__name: "Table",
|
|
54
55
|
props: {
|
|
@@ -75,9 +76,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
75
76
|
if (!a) return !0;
|
|
76
77
|
const c = a.getBoundingClientRect();
|
|
77
78
|
return !l.some((u) => {
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
80
|
-
const w =
|
|
79
|
+
const g = u.closest('[class*="table-action"]');
|
|
80
|
+
if (!g || g === a) return !1;
|
|
81
|
+
const w = g.getBoundingClientRect();
|
|
81
82
|
return Math.abs(w.top - c.top) <= 2 && w.left > c.left;
|
|
82
83
|
});
|
|
83
84
|
}).sort((n, s) => {
|
|
@@ -116,9 +117,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
116
117
|
if (!(o instanceof HTMLElement)) return;
|
|
117
118
|
const r = Q(), n = o.closest(U), s = n ? r.indexOf(n) : -1;
|
|
118
119
|
if (s < 0) return;
|
|
119
|
-
const l = !e.shiftKey, a = Ve(l), c = Le(l), u = a && c ? a.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a : c : a || c,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
const l = !e.shiftKey, a = Ve(l), c = Le(l), u = a && c ? a.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a : c : a || c, g = r[s + (e.shiftKey ? -1 : 1)] || u;
|
|
121
|
+
g && (e.preventDefault(), e.stopPropagation(), B(() => {
|
|
122
|
+
g.focus();
|
|
122
123
|
}));
|
|
123
124
|
}
|
|
124
125
|
function fe(e) {
|
|
@@ -136,9 +137,9 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
136
137
|
const u = Array.from(document.querySelectorAll(U)).filter((h) => {
|
|
137
138
|
const Y = window.getComputedStyle(h);
|
|
138
139
|
return !h.closest('[class*="table-action"]') && Y.display !== "none" && Y.visibility !== "hidden" && !!h.offsetParent;
|
|
139
|
-
}),
|
|
140
|
-
if (
|
|
141
|
-
const w = u[
|
|
140
|
+
}), g = u.indexOf(o);
|
|
141
|
+
if (g < 0) return;
|
|
142
|
+
const w = u[g + (e.shiftKey ? -1 : 1)];
|
|
142
143
|
!w || !r.contains(w) || (e.preventDefault(), e.stopPropagation(), c.focus());
|
|
143
144
|
}
|
|
144
145
|
const pe = _({}), x = Et();
|
|
@@ -155,7 +156,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
155
156
|
noSearchText: K(V).noSearchText,
|
|
156
157
|
isFirstLoad: !0,
|
|
157
158
|
emptyImageStatus: K(V).emptyImageStatus
|
|
158
|
-
}),
|
|
159
|
+
}), me = _({}), d = T(() => {
|
|
159
160
|
const {
|
|
160
161
|
toolTipErrorPlacement: e,
|
|
161
162
|
...o
|
|
@@ -168,7 +169,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
168
169
|
$e(`${E}-props`, d);
|
|
169
170
|
const {
|
|
170
171
|
getLoading: W,
|
|
171
|
-
setLoading:
|
|
172
|
+
setLoading: ge
|
|
172
173
|
} = Bt(T(() => t(d).loading || !1)), {
|
|
173
174
|
configRef: L,
|
|
174
175
|
getPaginationInfo: N,
|
|
@@ -210,7 +211,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
210
211
|
tableData: ce,
|
|
211
212
|
paginationRef: L,
|
|
212
213
|
getPaginationInfo: N,
|
|
213
|
-
setLoading:
|
|
214
|
+
setLoading: ge,
|
|
214
215
|
setPagination: ee,
|
|
215
216
|
clearSelectedRowKeys: oe,
|
|
216
217
|
getIsTableEvent: i.getIsTableEvent
|
|
@@ -238,7 +239,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
238
239
|
toolbarConfig: a = {},
|
|
239
240
|
showPager: c,
|
|
240
241
|
autoHeight: u,
|
|
241
|
-
virtualYConfig:
|
|
242
|
+
virtualYConfig: g = {},
|
|
242
243
|
expandConfig: w = {}
|
|
243
244
|
} = t(d), h = {}, Y = G(t(d), ["data", "columns"]);
|
|
244
245
|
return l && (h.toolbarConfig = {
|
|
@@ -250,7 +251,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
250
251
|
}), c || (h.pagerConfig = void 0), u && (h.height = "auto", h.autoResize = !0, h.syncResize = !0), jt(Wt.tableVersion, 4, 16) ? h.virtualYConfig = {
|
|
251
252
|
enabled: !0,
|
|
252
253
|
mode: "wheel",
|
|
253
|
-
...
|
|
254
|
+
...g
|
|
254
255
|
} : h.scrollY = {
|
|
255
256
|
enabled: !0,
|
|
256
257
|
mode: "wheel",
|
|
@@ -326,7 +327,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
326
327
|
const o = Xt.camelCase(e);
|
|
327
328
|
ue[o] = (...r) => f(e, ...r);
|
|
328
329
|
});
|
|
329
|
-
const
|
|
330
|
+
const mt = T(() => ({
|
|
330
331
|
...ue,
|
|
331
332
|
radioChange: Qe,
|
|
332
333
|
checkboxChange: Ue,
|
|
@@ -348,7 +349,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
348
349
|
f("update:modelValue", r ? Mt(o) : o), f("edit-closed", e);
|
|
349
350
|
}
|
|
350
351
|
}));
|
|
351
|
-
async function
|
|
352
|
+
async function gt(e) {
|
|
352
353
|
i.setState(e);
|
|
353
354
|
}
|
|
354
355
|
function Pe() {
|
|
@@ -358,7 +359,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
358
359
|
});
|
|
359
360
|
}
|
|
360
361
|
function bt(e, o) {
|
|
361
|
-
e && (
|
|
362
|
+
e && (me.value[o] = e);
|
|
362
363
|
}
|
|
363
364
|
async function ht(e) {
|
|
364
365
|
if (!e.sortable) {
|
|
@@ -422,8 +423,8 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
422
423
|
filterExclude: n = []
|
|
423
424
|
} = r.filterRender.props || {};
|
|
424
425
|
o && ((s = t(ie)) == null || s.hidePopper(), B(() => {
|
|
425
|
-
var c, u,
|
|
426
|
-
const l = (c = e == null ? void 0 : e.$event) == null ? void 0 : c.target, a = (
|
|
426
|
+
var c, u, g, w;
|
|
427
|
+
const l = (c = e == null ? void 0 : e.$event) == null ? void 0 : c.target, a = (g = (u = l == null ? void 0 : l.parentNode) == null ? void 0 : u.parentNode) == null ? void 0 : g.parentNode;
|
|
427
428
|
(w = t(ie)) == null || w.showPopper(a), Object.assign(He.value, {
|
|
428
429
|
column: e.column,
|
|
429
430
|
$event: e.$event,
|
|
@@ -441,10 +442,10 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
441
442
|
});
|
|
442
443
|
const O = {
|
|
443
444
|
reload: rt,
|
|
444
|
-
setProps:
|
|
445
|
+
setProps: gt,
|
|
445
446
|
setTableColumns: ct,
|
|
446
447
|
setPagination: ee,
|
|
447
|
-
setLoading:
|
|
448
|
+
setLoading: ge,
|
|
448
449
|
redoHeight: Pe,
|
|
449
450
|
getDataSource: nt,
|
|
450
451
|
getPagination: je,
|
|
@@ -528,10 +529,10 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
528
529
|
ref: b
|
|
529
530
|
}, pe.value, {
|
|
530
531
|
onFilterChange: o[2] || (o[2] = (r) => t(Ce)())
|
|
531
|
-
}, Dt(
|
|
532
|
+
}, Dt(mt.value), {
|
|
532
533
|
onFilterVisible: vt
|
|
533
534
|
}), Nt({
|
|
534
|
-
empty:
|
|
535
|
+
empty: m(() => [t(W) ? (p(), y("div", {
|
|
535
536
|
key: 1,
|
|
536
537
|
class: A(`${t(E)}-empty-image`)
|
|
537
538
|
}, [P("span", null, M(R.emptyText || ""), 1)], 2)) : (p(), y("div", {
|
|
@@ -548,7 +549,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
548
549
|
style: $(ke.value),
|
|
549
550
|
status: R.emptyImageStatus
|
|
550
551
|
}, null, 8, ["style", "status"]), R.noSearchText ? (p(), y("span", Co, M(R.noSearchText), 1)) : H("", !0)], 64))], 2))]),
|
|
551
|
-
left:
|
|
552
|
+
left: m(() => [S(e.$slots, "left", {}, () => [t(z) ? (p(), ne(t(Oe), {
|
|
552
553
|
key: 0,
|
|
553
554
|
ref_key: "leftSlotScrollbarRef",
|
|
554
555
|
ref: tt,
|
|
@@ -561,7 +562,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
561
562
|
marginTop: `${t(Se)}px`
|
|
562
563
|
})
|
|
563
564
|
}, {
|
|
564
|
-
default:
|
|
565
|
+
default: m(() => [P("div", {
|
|
565
566
|
class: "float-left w-0",
|
|
566
567
|
style: $({
|
|
567
568
|
height: `${t(xe)}px`
|
|
@@ -579,7 +580,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
579
580
|
})))], 4)]),
|
|
580
581
|
_: 3
|
|
581
582
|
}, 8, ["height", "style"])) : H("", !0)])]),
|
|
582
|
-
right:
|
|
583
|
+
right: m(() => [S(e.$slots, "right", {}, () => [t(z) ? (p(), ne(t(Oe), {
|
|
583
584
|
key: 0,
|
|
584
585
|
ref_key: "rightSlotScrollbarRef",
|
|
585
586
|
ref: ot,
|
|
@@ -593,7 +594,7 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
593
594
|
marginTop: `${t(Se)}px`
|
|
594
595
|
})
|
|
595
596
|
}, {
|
|
596
|
-
default:
|
|
597
|
+
default: m(() => [P("div", {
|
|
597
598
|
class: "float-left w-0",
|
|
598
599
|
style: $({
|
|
599
600
|
height: `${t(xe)}px`
|
|
@@ -614,13 +615,13 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
614
615
|
_: 2
|
|
615
616
|
}, [se(t(at), (r) => ({
|
|
616
617
|
name: r,
|
|
617
|
-
fn:
|
|
618
|
+
fn: m((n) => [P("div", {
|
|
618
619
|
class: "flex items-center",
|
|
619
620
|
onClick: zt((s) => ht(n.column), ["stop"])
|
|
620
621
|
}, [P("div", bo, [S(e.$slots, Tt(n), j(X(n)), () => [F(t(to), {
|
|
621
622
|
"tool-tip": ft.value
|
|
622
623
|
}, {
|
|
623
|
-
default:
|
|
624
|
+
default: m(() => [le(M(n.column.title), 1)]),
|
|
624
625
|
_: 2
|
|
625
626
|
}, 1032, ["tool-tip"])])]), n.column.sortable ? (p(), y("div", {
|
|
626
627
|
key: 0,
|
|
@@ -637,14 +638,14 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
637
638
|
}, null, 8, yo)) : (p(), y("img", {
|
|
638
639
|
key: 2,
|
|
639
640
|
src: t(Zt)
|
|
640
|
-
}, null, 8, So))], 2)) : H("", !0)], 8,
|
|
641
|
+
}, null, 8, So))], 2)) : H("", !0)], 8, go)])
|
|
641
642
|
})), se(Object.keys(e.$slots), (r) => ({
|
|
642
643
|
name: r,
|
|
643
|
-
fn:
|
|
644
|
+
fn: m((n) => [r.includes("action") ? (p(), ne(t(oo), {
|
|
644
645
|
key: 0,
|
|
645
646
|
"row-index": n.$rowIndex
|
|
646
647
|
}, {
|
|
647
|
-
default:
|
|
648
|
+
default: m(() => [S(e.$slots, r, re(n, {
|
|
648
649
|
rowIndex: n.$rowIndex
|
|
649
650
|
}))]),
|
|
650
651
|
_: 2
|
|
@@ -653,21 +654,21 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
653
654
|
}, n)))])
|
|
654
655
|
})), C.value.showTableAlert ? {
|
|
655
656
|
name: "top",
|
|
656
|
-
fn:
|
|
657
|
+
fn: m(() => [P("div", {
|
|
657
658
|
class: A(`${t(E)}-top-alert`)
|
|
658
659
|
}, [o[3] || (o[3] = le(" 已选中 ", -1)), P("span", xo, M(t(Ge).length), 1), o[4] || (o[4] = le(" 条 ", -1)), S(e.$slots, "top_title")], 2)]),
|
|
659
660
|
key: "0"
|
|
660
661
|
} : void 0, t(D).toolbar_buttons ? {
|
|
661
662
|
name: "toolbar_buttons",
|
|
662
|
-
fn:
|
|
663
|
+
fn: m(() => [S(e.$slots, "toolbar_buttons")]),
|
|
663
664
|
key: "1"
|
|
664
665
|
} : void 0, t(D).toolbar_tools ? {
|
|
665
666
|
name: "toolbar_tools",
|
|
666
|
-
fn:
|
|
667
|
+
fn: m(() => [S(e.$slots, "toolbar_tools")]),
|
|
667
668
|
key: "2"
|
|
668
669
|
} : void 0, se(t(it), (r) => ({
|
|
669
670
|
name: r,
|
|
670
|
-
fn:
|
|
671
|
+
fn: m(({
|
|
671
672
|
content: n,
|
|
672
673
|
rowIndex: s,
|
|
673
674
|
columnIndex: l,
|
|
@@ -680,11 +681,11 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
680
681
|
}, [F(t(Gt), {
|
|
681
682
|
placement: d.value.toolTipErrorPlacement,
|
|
682
683
|
"err-msg": n,
|
|
683
|
-
"ref-dom":
|
|
684
|
+
"ref-dom": me.value[`valid_${s}_${l}`]
|
|
684
685
|
}, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : H("", !0)])
|
|
685
686
|
})), C.value.showPager ? {
|
|
686
687
|
name: "pager",
|
|
687
|
-
fn:
|
|
688
|
+
fn: m(() => {
|
|
688
689
|
var r, n, s, l;
|
|
689
690
|
return [F(t(qt), {
|
|
690
691
|
"current-page": t(L).currentPage,
|
|
@@ -698,16 +699,16 @@ const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
|
698
699
|
"class-name": `${t(E)}-vxe-pager`,
|
|
699
700
|
onPageChange: t(Me)
|
|
700
701
|
}, {
|
|
701
|
-
left:
|
|
702
|
+
left: m(() => [S(e.$slots, "pager_left", j(X({
|
|
702
703
|
selectedKeys: t(te)
|
|
703
704
|
}))), S(e.$slots, "buttom_left")]),
|
|
704
705
|
_: 3
|
|
705
706
|
}, 8, ["current-page", "page-size", "page-sizes", "layouts", "total", "size", "class-name", "onPageChange"])];
|
|
706
707
|
}),
|
|
707
708
|
key: "3"
|
|
708
|
-
} : void 0]), 1040)], 42,
|
|
709
|
+
} : void 0]), 1040)], 42, mo));
|
|
709
710
|
}
|
|
710
711
|
});
|
|
711
712
|
export {
|
|
712
|
-
|
|
713
|
+
ur as default
|
|
713
714
|
};
|
|
@@ -34,6 +34,7 @@ import "../../tt-nav-anchor/index.js";
|
|
|
34
34
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
35
35
|
import { useDesign as Ue } from "../../../packages/hooks/src/useDesign.js";
|
|
36
36
|
import { useDebounceFn as _ } from "../../../packages/hooks/src/useDebounce.js";
|
|
37
|
+
import "vue-router";
|
|
37
38
|
import "../../tt-icon/index.js";
|
|
38
39
|
import "../../tt-form/src/components/Slot.js";
|
|
39
40
|
import "../../tt-form-item-error-tooltip/index.js";
|
|
@@ -57,7 +58,6 @@ import "../../tt-log/index.js";
|
|
|
57
58
|
/* empty css */
|
|
58
59
|
import "../../tt-loading/index.js";
|
|
59
60
|
import "../index.js";
|
|
60
|
-
import "vue-router";
|
|
61
61
|
import "../../../hooks/basicDataCodes.js";
|
|
62
62
|
import "numeral";
|
|
63
63
|
import Ge from "./components/TableColumnModal.vue2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as
|
|
1
|
+
import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as p, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as pe, createTextVNode as ce } from "vue";
|
|
2
2
|
import { propTypes as y } from "../../../../packages/hooks/src/propTypes.js";
|
|
3
3
|
import { useDesign as fe } from "../../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
@@ -12,12 +12,13 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
12
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
14
14
|
import "lodash-es";
|
|
15
|
+
import "vue-router";
|
|
15
16
|
import { TtButton as A } from "../../../tt-button/index.js";
|
|
16
17
|
import { TtIcon as E } from "../../../tt-icon/index.js";
|
|
17
18
|
import K from "../../../../directives/disabled-tip/index.js";
|
|
18
19
|
import Ce from "../../../../assets/svg/action_more.svg.js";
|
|
19
20
|
import { ROW_INDEX_KEY as ke } from "./RowContext.js";
|
|
20
|
-
const Ie = { key: 1 }, Be = ["onClick"],
|
|
21
|
+
const Ie = { key: 1 }, Be = ["onClick"], qe = /* @__PURE__ */ oe({
|
|
21
22
|
name: "TtTableAction",
|
|
22
23
|
__name: "TableAction",
|
|
23
24
|
props: {
|
|
@@ -50,8 +51,8 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
|
50
51
|
setup(S) {
|
|
51
52
|
const i = S, x = ne(), { prefixCls: $ } = fe("table-action"), g = I(!1), L = M(
|
|
52
53
|
"tableIdContext",
|
|
53
|
-
|
|
54
|
-
), U = M(ke, void 0), q =
|
|
54
|
+
p(() => "")
|
|
55
|
+
), U = M(ke, void 0), q = p(() => {
|
|
55
56
|
if (i.rowIndex !== void 0 && i.rowIndex !== null)
|
|
56
57
|
return i.rowIndex;
|
|
57
58
|
const t = r(U);
|
|
@@ -71,7 +72,7 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
|
71
72
|
let e = !0;
|
|
72
73
|
return ge(o) && (e = o), ye(o) && (e = o(t)), e;
|
|
73
74
|
}
|
|
74
|
-
const G =
|
|
75
|
+
const G = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = p(() => r(w).length > 0), X = p(() => "left flex items-center"), Y = p(() => {
|
|
75
76
|
const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e = w.value.map((s) => we(s.label, "12px", o) + 22), n = Math.max(...e);
|
|
76
77
|
return n > i.popoverWidth ? n : i.popoverWidth;
|
|
77
78
|
});
|
|
@@ -104,12 +105,12 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
|
104
105
|
t.forEach((e) => {
|
|
105
106
|
const n = e.closest(".vxe-table");
|
|
106
107
|
if (!n) return;
|
|
107
|
-
const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(),
|
|
108
|
-
|
|
108
|
+
const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), c = d.get(a) || [];
|
|
109
|
+
c.push(e), d.set(a, c), o.set(n, d);
|
|
109
110
|
}), o.forEach((e) => {
|
|
110
111
|
e.forEach((n) => {
|
|
111
112
|
const s = n.sort((a, d) => {
|
|
112
|
-
const
|
|
113
|
+
const c = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = c != null && c.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
|
|
113
114
|
return R !== _ ? _ - R : d.getBoundingClientRect().left - a.getBoundingClientRect().left;
|
|
114
115
|
})[0];
|
|
115
116
|
n.forEach((a) => {
|
|
@@ -228,10 +229,10 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
|
228
229
|
type: e.type || "primary",
|
|
229
230
|
style: D({ color: e.color }),
|
|
230
231
|
"data-testid": h(e.label || "")
|
|
231
|
-
},
|
|
232
|
+
}, pe({
|
|
232
233
|
default: m(() => [
|
|
233
234
|
e.label ? (l(), u(v, { key: 0 }, [
|
|
234
|
-
|
|
235
|
+
ce(j(e.label), 1)
|
|
235
236
|
], 64)) : f("", !0)
|
|
236
237
|
]),
|
|
237
238
|
_: 2
|
|
@@ -257,5 +258,5 @@ const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
|
257
258
|
}
|
|
258
259
|
});
|
|
259
260
|
export {
|
|
260
|
-
|
|
261
|
+
qe as default
|
|
261
262
|
};
|
|
@@ -15,6 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import { TtButton as U } from "../../../tt-button/index.js";
|
|
19
20
|
import { TtIcon as b } from "../../../tt-icon/index.js";
|
|
20
21
|
import V from "../../../../directives/disabled-tip/index.js";
|
|
@@ -23,7 +24,7 @@ import { componentMap as _ } from "../componentMap.js";
|
|
|
23
24
|
function E(i) {
|
|
24
25
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !j(i);
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
+
const dt = /* @__PURE__ */ I({
|
|
27
28
|
name: "TtTableButton",
|
|
28
29
|
directives: {
|
|
29
30
|
disabledTip: V
|
|
@@ -126,5 +127,5 @@ const ft = /* @__PURE__ */ I({
|
|
|
126
127
|
}
|
|
127
128
|
});
|
|
128
129
|
export {
|
|
129
|
-
|
|
130
|
+
dt as default
|
|
130
131
|
};
|