@dazhicheng/ui 1.6.0 → 1.6.2
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.js +4 -3
- package/dist/components/tt-api-component/index.vue2.js +4 -3
- package/dist/components/tt-area/TtArea.vue3.js +8 -7
- package/dist/components/tt-button/index.js +5 -4
- package/dist/components/tt-button/index.vue2.js +4 -3
- package/dist/components/tt-checkbox/index.js +4 -3
- package/dist/components/tt-checkbox/index.vue.js +4 -3
- package/dist/components/tt-drawer/index.js +4 -3
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +4 -3
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +8 -7
- 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-drawer/src/utils/drawer-api.js +4 -2
- package/dist/components/tt-empty/index.js +9 -8
- package/dist/components/tt-form/index.js +10 -9
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +3 -2
- package/dist/components/tt-form/src/components/FormActions.vue2.js +4 -2
- package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
- package/dist/components/tt-form/src/form/FormItem.vue.js +6 -5
- package/dist/components/tt-form/src/form/FormLabel.vue.js +8 -7
- package/dist/components/tt-form/src/form/RenderContent.vue.js +4 -3
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +30 -28
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +4 -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 +6 -4
- package/dist/components/tt-form/src/form-render/dependencies.js +19 -18
- package/dist/components/tt-form/src/form-render/form.vue2.js +4 -2
- package/dist/components/tt-form/src/form-render/helper.js +15 -14
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
- package/dist/components/tt-form/src/formApi.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +4 -3
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +2 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +4 -2
- package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -3
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +28 -27
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-form/src/useFormContext.js +11 -10
- package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +4 -3
- package/dist/components/tt-icon/index.js +6 -5
- package/dist/components/tt-image/index.js +6 -5
- package/dist/components/tt-image/src/components/ImageViewer.js +7 -6
- package/dist/components/tt-loading/index.js +4 -3
- package/dist/components/tt-loading/src/directive.js +24 -23
- package/dist/components/tt-log/index.js +4 -3
- package/dist/components/tt-log/index.vue.js +3 -2
- package/dist/components/tt-modal/index.js +3 -2
- 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 +15 -14
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-modal/src/utils/modal-api.js +4 -2
- package/dist/components/tt-modal-form/index.vue.js +4 -3
- package/dist/components/tt-nav-anchor/index.js +4 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +15 -14
- package/dist/components/tt-panel-select/index.js +4 -3
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +4 -3
- 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 +7 -6
- package/dist/components/tt-select/index.js +4 -3
- package/dist/components/tt-select/src/Select.vue.d.ts +8 -8
- package/dist/components/tt-select/src/Select.vue.js +4 -3
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +116 -7
- 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-select/src/hooks/useDataSource.js +4 -3
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +7 -1
- package/dist/components/tt-select/src/hooks/useSelect.js +3 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +28 -27
- package/dist/components/tt-select/src/props.d.ts +2 -2
- package/dist/components/tt-table/index.d.ts +6 -6
- 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 +178 -175
- package/dist/components/tt-table/src/TableForm.vue.d.ts +6 -6
- package/dist/components/tt-table/src/TableForm.vue.js +2 -2
- package/dist/components/tt-table/src/components/TableAction.vue.js +19 -17
- package/dist/components/tt-table/src/components/TableButtons.js +10 -9
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +4 -3
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +18 -17
- package/dist/components/tt-table/src/emits.d.ts +10 -1
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +17 -16
- package/dist/components/tt-table/src/hooks/useColumns.js +4 -3
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +34 -33
- package/dist/components/tt-table/src/hooks/usePagination.js +12 -11
- package/dist/components/tt-table/src/hooks/useQuery.js +6 -5
- package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +1 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +68 -54
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +5 -7
- package/dist/components/tt-table/src/hooks/useRowSelection.js +70 -68
- package/dist/components/tt-table/src/hooks/useSideSlot.js +4 -3
- package/dist/components/tt-table/src/hooks/useSyncProps.js +4 -3
- package/dist/components/tt-table/src/hooks/useTableData.js +6 -5
- package/dist/components/tt-table/src/hooks/useTableFooter.js +9 -8
- package/dist/components/tt-table/src/hooks/useTableForm.js +4 -3
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +37 -4
- package/dist/components/tt-table/src/props.d.ts +12 -6
- package/dist/components/tt-table/src/props.js +14 -7
- package/dist/components/tt-table/src/table-mutation-events.js +10 -9
- package/dist/components/tt-table/src/types/table.d.ts +16 -0
- package/dist/components/tt-table/src/utils/action-tab-index.js +15 -14
- package/dist/components/tt-table/src/utils/context.js +5 -4
- package/dist/components/tt-table/src/utils/table-api.js +4 -2
- package/dist/components/tt-table/src/utils/table-form-api.js +22 -20
- package/dist/components/tt-text/index.js +4 -3
- package/dist/components/tt-upload/index.js +6 -5
- package/dist/components/tt-upload/src/TtUpload.vue.js +4 -3
- package/dist/directives/disabled-tip/index.js +9 -8
- package/dist/hooks/useFormSchemasLink.js +4 -3
- package/dist/hooks/useFormat.d.ts +35 -71
- package/dist/hooks/useFormat.js +28 -39
- package/dist/hooks/usePanelSelectSchemas.js +4 -3
- package/dist/hooks/useScreenshotOss.js +16 -15
- package/dist/packages/hooks/src/useDebounce.js +5 -4
- package/dist/packages/hooks/src/useElementScreenshot.js +4 -3
- package/dist/packages/hooks/src/usePriorityValue.js +5 -4
- package/dist/packages/utils/src/format.js +48 -0
- package/dist/plugins/default/renderCellContent.js +4 -3
- package/dist/plugins/vxeTable/switchStatus.js +14 -13
- package/package.json +3 -3
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TtErrorTooltip as
|
|
3
|
-
import { useLoading as
|
|
1
|
+
import { defineComponent as It, mergeModels as he, useModel as Vt, useAttrs as Et, useSlots as _t, getCurrentInstance as zt, ref as q, shallowReactive as Dt, onScopeDispose as ye, computed as m, provide as be, unref as e, toRaw as Se, nextTick as J, onMounted as Kt, createElementBlock as g, openBlock as c, normalizeClass as z, createVNode as D, mergeProps as Q, toHandlers as Mt, createSlots as At, withCtx as n, renderSlot as d, createBlock as X, createCommentVNode as K, normalizeStyle as y, createElementVNode as f, normalizeProps as P, guardReactiveProps as M, Fragment as Ft, toDisplayString as Y, renderList as Z, createTextVNode as we, toValue as Lt } from "vue";
|
|
2
|
+
import { TtErrorTooltip as Nt } from "../../tt-form-item-error-tooltip/index.js";
|
|
3
|
+
import { useLoading as Ot } from "../../../hooks/useLoading.js";
|
|
4
4
|
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";
|
|
5
|
-
import { useDesign as
|
|
5
|
+
import { useDesign as Ht } from "../../../packages/hooks/src/useDesign.js";
|
|
6
6
|
import "axios";
|
|
7
|
-
import { ElScrollbar as
|
|
7
|
+
import { ElScrollbar as Ce } from "element-plus";
|
|
8
8
|
import "dayjs";
|
|
9
|
-
import
|
|
9
|
+
import "numeral";
|
|
10
|
+
import { extractResourceFromApi as Bt, generateTestId as xe } from "../../../packages/utils/src/testid-helper.js";
|
|
10
11
|
import "xe-utils";
|
|
11
12
|
import "dayjs/plugin/utc";
|
|
12
13
|
import "dayjs/plugin/timezone";
|
|
@@ -17,173 +18,175 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
|
|
|
17
18
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
18
19
|
import { omit as $e } from "lodash-es";
|
|
19
20
|
import "vue-router";
|
|
20
|
-
import { useStore as
|
|
21
|
-
import { VxePager as
|
|
22
|
-
import { VxeGrid as
|
|
23
|
-
import { tableProps as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { TtImage as
|
|
28
|
-
import { RowContext as
|
|
29
|
-
import { basicTableEmits as
|
|
30
|
-
import { useColumns as
|
|
31
|
-
import { useGridProps as
|
|
32
|
-
import { useKeyboardNav as
|
|
33
|
-
import { usePagination as
|
|
34
|
-
import { useQuery as
|
|
35
|
-
import { useRowIdentity as
|
|
36
|
-
import { useRowSelection as
|
|
37
|
-
import { useSideSlot as
|
|
38
|
-
import { useSyncProps as
|
|
39
|
-
import { createTableContext as
|
|
40
|
-
import { useTableData as
|
|
41
|
-
import { useTableFooter as
|
|
42
|
-
import { useTableMethods as
|
|
43
|
-
import { tableOtherProps as
|
|
44
|
-
import { forwardedEventEntries as
|
|
45
|
-
import { TableApi as
|
|
46
|
-
const Co = ["data-testid"],
|
|
21
|
+
import { useStore as Gt } from "@tanstack/vue-store";
|
|
22
|
+
import { VxePager as jt } from "vxe-pc-ui";
|
|
23
|
+
import { VxeGrid as Wt } from "vxe-table";
|
|
24
|
+
import { tableProps as Ut } from "vxe-table/es/table/src/props";
|
|
25
|
+
import qt from "../../../assets/svg/paixu-jiangxu.svg.js";
|
|
26
|
+
import Jt from "../../../assets/svg/paixu-moren.svg.js";
|
|
27
|
+
import Qt from "../../../assets/svg/paixu-shengxu.svg.js";
|
|
28
|
+
import { TtImage as Xt } from "../../tt-image/index.js";
|
|
29
|
+
import { RowContext as Yt } from "./components/RowContext.js";
|
|
30
|
+
import { basicTableEmits as Zt } from "./emits.js";
|
|
31
|
+
import { useColumns as eo } from "./hooks/useColumns.js";
|
|
32
|
+
import { useGridProps as to } from "./hooks/useGridProps.js";
|
|
33
|
+
import { useKeyboardNav as oo } from "./hooks/useKeyboardNav.js";
|
|
34
|
+
import { usePagination as ro } from "./hooks/usePagination.js";
|
|
35
|
+
import { useQuery as so } from "./hooks/useQuery.js";
|
|
36
|
+
import { useRowIdentity as lo } from "./hooks/useRowIdentity.js";
|
|
37
|
+
import { useRowSelection as ao } from "./hooks/useRowSelection.js";
|
|
38
|
+
import { useSideSlot as no } from "./hooks/useSideSlot.js";
|
|
39
|
+
import { useSyncProps as io } from "./hooks/useSyncProps.js";
|
|
40
|
+
import { createTableContext as co } from "./hooks/useTableContext.js";
|
|
41
|
+
import { useTableData as po } from "./hooks/useTableData.js";
|
|
42
|
+
import { useTableFooter as mo } from "./hooks/useTableFooter.js";
|
|
43
|
+
import { useTableMethods as uo } from "./hooks/useTableMethods.js";
|
|
44
|
+
import { tableOtherProps as go, tableProps as fo } from "./props.js";
|
|
45
|
+
import { forwardedEventEntries as ho, isDisplayOnlyEvent as yo, isRowDataMutationEvent as bo, getMutationCommitSource as So } from "./table-mutation-events.js";
|
|
46
|
+
import { TableApi as wo } from "./utils/table-api.js";
|
|
47
|
+
const Co = ["data-testid"], xo = ["src"], $o = ["src"], To = ["src"], Ro = {
|
|
47
48
|
style: {
|
|
48
49
|
color: "#009ffa"
|
|
49
50
|
}
|
|
50
|
-
}, Ro = {
|
|
51
|
-
key: 0
|
|
52
51
|
}, ko = {
|
|
52
|
+
key: 0
|
|
53
|
+
}, Po = {
|
|
53
54
|
key: 1
|
|
54
|
-
},
|
|
55
|
+
}, wr = /* @__PURE__ */ It({
|
|
55
56
|
name: "TtTable",
|
|
56
57
|
__name: "Table",
|
|
57
58
|
props: /* @__PURE__ */ he({
|
|
58
|
-
...
|
|
59
|
-
...
|
|
60
|
-
...
|
|
59
|
+
...Ut,
|
|
60
|
+
...fo,
|
|
61
|
+
...go
|
|
61
62
|
}, {
|
|
62
63
|
modelValue: {},
|
|
63
64
|
modelModifiers: {}
|
|
64
65
|
}),
|
|
65
|
-
emits: /* @__PURE__ */ he(["register", "fetch-success", "fetch-error", "selection-change", ...
|
|
66
|
+
emits: /* @__PURE__ */ he(["register", "fetch-success", "fetch-error", "selection-change", ...Zt], ["update:modelValue"]),
|
|
66
67
|
setup(ee, {
|
|
67
68
|
expose: Te,
|
|
68
69
|
emit: Re
|
|
69
70
|
}) {
|
|
70
71
|
var ue, ge;
|
|
71
|
-
const h = ee, ke =
|
|
72
|
+
const h = ee, ke = Vt(ee, "modelValue"), i = Re, te = Et(), A = _t(), C = zt(), {
|
|
72
73
|
prefixCls: b
|
|
73
|
-
} =
|
|
74
|
+
} = Ht("table"), Pe = Object.hasOwn(((ue = C == null ? void 0 : C.vnode) == null ? void 0 : ue.props) || {}, "data"), v = q(null), p = q(), F = q({});
|
|
74
75
|
let s = h.tableApi;
|
|
75
|
-
s || (s = new
|
|
76
|
-
const I =
|
|
76
|
+
s || (s = new wo($e(h, ["modelValue"])), s.useStore = (t) => Gt(s.store, t));
|
|
77
|
+
const I = Dt({});
|
|
77
78
|
function oe() {
|
|
78
79
|
Object.assign(I, Se(s.store.state) || {});
|
|
79
80
|
}
|
|
80
81
|
oe(), ye(s.store.subscribe(oe));
|
|
81
|
-
const l = m(() => I), ve = Pe ? () =>
|
|
82
|
+
const l = m(() => I), ve = Pe ? () => Lt(h.data) : () => I.data, Ie = () => I.api;
|
|
82
83
|
be(`${b}-props`, l);
|
|
83
|
-
const L = m(() => h.testId || (h.api ?
|
|
84
|
+
const L = m(() => h.testId || (h.api ? Bt(h.api) : "table")), Ve = m(() => xe(e(L), "table")), Ee = m(() => xe(e(L), "table-toolbar"));
|
|
84
85
|
be("tableIdContext", L);
|
|
85
86
|
const {
|
|
86
87
|
getLoading: x,
|
|
87
88
|
setLoading: re
|
|
88
|
-
} =
|
|
89
|
+
} = Ot(m(() => e(l).loading || !1)), {
|
|
89
90
|
pagination: $,
|
|
90
91
|
paginationInfo: S,
|
|
91
92
|
getPagination: _e,
|
|
92
93
|
setPagination: N,
|
|
93
94
|
onPageChange: ze
|
|
94
|
-
} =
|
|
95
|
+
} = ro(l, i), {
|
|
95
96
|
getRowKey: De,
|
|
97
|
+
getRowKeys: Ke,
|
|
96
98
|
prepareRows: O,
|
|
97
99
|
toVxeRowConfig: Me
|
|
98
|
-
} =
|
|
100
|
+
} = lo(l), {
|
|
99
101
|
selectedKeys: H,
|
|
100
102
|
selectedRows: B,
|
|
101
|
-
selectedKeyList:
|
|
102
|
-
getSelectRowKeys:
|
|
103
|
-
getSelectRows:
|
|
104
|
-
syncSelection:
|
|
105
|
-
setSelectedRowKeys:
|
|
103
|
+
selectedKeyList: Ae,
|
|
104
|
+
getSelectRowKeys: Fe,
|
|
105
|
+
getSelectRows: Le,
|
|
106
|
+
syncSelection: Ne,
|
|
107
|
+
setSelectedRowKeys: Oe,
|
|
106
108
|
clearSelectedRowKeys: se,
|
|
107
|
-
resetSelectionAfterFetch:
|
|
108
|
-
onCheckboxChange:
|
|
109
|
-
onCheckboxAll:
|
|
110
|
-
onCheckboxRangeChange:
|
|
111
|
-
onRadioChange:
|
|
112
|
-
onCellAreaSelectionEnd:
|
|
113
|
-
} =
|
|
114
|
-
getRowKey: De
|
|
109
|
+
resetSelectionAfterFetch: He,
|
|
110
|
+
onCheckboxChange: Be,
|
|
111
|
+
onCheckboxAll: Ge,
|
|
112
|
+
onCheckboxRangeChange: je,
|
|
113
|
+
onRadioChange: We,
|
|
114
|
+
onCellAreaSelectionEnd: Ue
|
|
115
|
+
} = ao(l, p, i, {
|
|
116
|
+
getRowKey: De,
|
|
117
|
+
getRowKeys: Ke
|
|
115
118
|
}), {
|
|
116
119
|
rows: V,
|
|
117
|
-
applyRows:
|
|
118
|
-
getDataSource:
|
|
119
|
-
runDataOperation:
|
|
120
|
+
applyRows: qe,
|
|
121
|
+
getDataSource: Je,
|
|
122
|
+
runDataOperation: Qe,
|
|
120
123
|
scheduleRowsCommit: G,
|
|
121
|
-
cancelRowsCommit:
|
|
122
|
-
onDataChange:
|
|
123
|
-
createTableInstanceFacade:
|
|
124
|
-
isActive:
|
|
125
|
-
} =
|
|
124
|
+
cancelRowsCommit: Xe,
|
|
125
|
+
onDataChange: Ye,
|
|
126
|
+
createTableInstanceFacade: Ze,
|
|
127
|
+
isActive: et
|
|
128
|
+
} = po(l, p, ke, i, {
|
|
126
129
|
data: ve,
|
|
127
130
|
api: Ie,
|
|
128
131
|
prepareRows: O,
|
|
129
|
-
onSelectionMutated:
|
|
132
|
+
onSelectionMutated: Ne
|
|
130
133
|
}), {
|
|
131
|
-
refresh:
|
|
132
|
-
syncScroll:
|
|
134
|
+
refresh: tt,
|
|
135
|
+
syncScroll: ot,
|
|
133
136
|
rowNodes: le,
|
|
134
137
|
headerHeight: ae,
|
|
135
138
|
bodyHeight: E,
|
|
136
|
-
bodyWrapperHeight:
|
|
139
|
+
bodyWrapperHeight: w,
|
|
137
140
|
bodyOffsetTop: ne,
|
|
138
141
|
bodyScrollHeight: ie,
|
|
139
|
-
leftScrollbarRef:
|
|
140
|
-
rightScrollbarRef:
|
|
141
|
-
} =
|
|
142
|
-
reload:
|
|
142
|
+
leftScrollbarRef: rt,
|
|
143
|
+
rightScrollbarRef: st
|
|
144
|
+
} = no(l, p, V), {
|
|
145
|
+
reload: lt,
|
|
143
146
|
reloadFilter: de,
|
|
144
147
|
isLoaded: ce
|
|
145
|
-
} =
|
|
148
|
+
} = so(l, {
|
|
146
149
|
grid: p,
|
|
147
150
|
pagination: $,
|
|
148
151
|
paginationInfo: S,
|
|
149
152
|
setPagination: N,
|
|
150
153
|
setLoading: re,
|
|
151
|
-
resetSelectionAfterFetch:
|
|
154
|
+
resetSelectionAfterFetch: He,
|
|
152
155
|
rows: V,
|
|
153
|
-
applyRows:
|
|
156
|
+
applyRows: qe
|
|
154
157
|
}, i), {
|
|
155
|
-
gridColumns:
|
|
156
|
-
hasExpandColumn:
|
|
157
|
-
sortIconSlots:
|
|
158
|
-
validSlots:
|
|
159
|
-
setTableColumns:
|
|
160
|
-
getTableColumns:
|
|
161
|
-
onColumnDragend:
|
|
162
|
-
} =
|
|
163
|
-
footerSummaryMethod:
|
|
164
|
-
} =
|
|
158
|
+
gridColumns: at,
|
|
159
|
+
hasExpandColumn: nt,
|
|
160
|
+
sortIconSlots: it,
|
|
161
|
+
validSlots: dt,
|
|
162
|
+
setTableColumns: ct,
|
|
163
|
+
getTableColumns: pt,
|
|
164
|
+
onColumnDragend: mt
|
|
165
|
+
} = eo(l, p, i), {
|
|
166
|
+
footerSummaryMethod: ut
|
|
167
|
+
} = mo(at), {
|
|
165
168
|
bindValues: j,
|
|
166
|
-
gridProps:
|
|
167
|
-
} =
|
|
169
|
+
gridProps: gt
|
|
170
|
+
} = to(l, {
|
|
168
171
|
attrs: te,
|
|
169
172
|
slots: A
|
|
170
173
|
}, {
|
|
171
|
-
hasExpandColumn:
|
|
172
|
-
footerSummaryMethod:
|
|
174
|
+
hasExpandColumn: nt,
|
|
175
|
+
footerSummaryMethod: ut,
|
|
173
176
|
onTreeLoadResolved: G,
|
|
174
177
|
prepareRows: O,
|
|
175
178
|
toVxeRowConfig: Me
|
|
176
179
|
}), {
|
|
177
180
|
onTableKeydown: pe
|
|
178
|
-
} =
|
|
179
|
-
runDataOperation:
|
|
181
|
+
} = oo(v), ft = m(U), ht = uo(l, p, s, {
|
|
182
|
+
runDataOperation: Qe,
|
|
180
183
|
clearSelectedRowKeys: se,
|
|
181
184
|
getTableInstance: U,
|
|
182
|
-
isActive:
|
|
185
|
+
isActive: et,
|
|
183
186
|
prepareRows: O
|
|
184
187
|
});
|
|
185
|
-
|
|
186
|
-
const
|
|
188
|
+
io(h, s.setState, ["tableApi", "formApi", "modelValue"]);
|
|
189
|
+
const yt = m(() => ({
|
|
187
190
|
...e(l).emptyImageStyle
|
|
188
191
|
})), W = m(() => {
|
|
189
192
|
const {
|
|
@@ -193,27 +196,27 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
193
196
|
} = e(l);
|
|
194
197
|
return e(ce) || !t ? o : r;
|
|
195
198
|
}), u = {};
|
|
196
|
-
|
|
199
|
+
ho.forEach(([t, o]) => {
|
|
197
200
|
u[o] = (...r) => {
|
|
198
|
-
t === "data-change" &&
|
|
201
|
+
t === "data-change" && Ye(), yo(t) && Xe(), bo(t, r, () => e(B)) && G(So(t)), i(t, ...r);
|
|
199
202
|
};
|
|
200
203
|
});
|
|
201
|
-
const
|
|
204
|
+
const bt = m(() => ({
|
|
202
205
|
...u,
|
|
203
206
|
headerCellClick: Ct,
|
|
204
|
-
sortChange:
|
|
205
|
-
radioChange:
|
|
206
|
-
checkboxChange:
|
|
207
|
-
checkboxAll:
|
|
208
|
-
checkboxRangeChange:
|
|
209
|
-
cellAreaSelectionEnd:
|
|
210
|
-
columnDragend:
|
|
211
|
-
scroll:
|
|
212
|
-
scrollBoundary:
|
|
213
|
-
toggleRowExpand:
|
|
214
|
-
editClosed:
|
|
207
|
+
sortChange: xt,
|
|
208
|
+
radioChange: We,
|
|
209
|
+
checkboxChange: Be,
|
|
210
|
+
checkboxAll: Ge,
|
|
211
|
+
checkboxRangeChange: je,
|
|
212
|
+
cellAreaSelectionEnd: Ue,
|
|
213
|
+
columnDragend: mt,
|
|
214
|
+
scroll: $t,
|
|
215
|
+
scrollBoundary: Tt,
|
|
216
|
+
toggleRowExpand: Rt,
|
|
217
|
+
editClosed: kt
|
|
215
218
|
}));
|
|
216
|
-
async function
|
|
219
|
+
async function St(t) {
|
|
217
220
|
s.setState(t);
|
|
218
221
|
}
|
|
219
222
|
function me() {
|
|
@@ -222,7 +225,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
222
225
|
return (t = e(p)) == null ? void 0 : t.recalculate(!0);
|
|
223
226
|
});
|
|
224
227
|
}
|
|
225
|
-
function
|
|
228
|
+
function wt(t, o) {
|
|
226
229
|
if (t) {
|
|
227
230
|
F.value[o] = t;
|
|
228
231
|
return;
|
|
@@ -243,14 +246,14 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
243
246
|
...$e(r, ["order"])
|
|
244
247
|
});
|
|
245
248
|
}
|
|
246
|
-
function
|
|
249
|
+
function xt(t) {
|
|
247
250
|
var o;
|
|
248
251
|
(o = u.sortChange) == null || o.call(u, t), de("sort");
|
|
249
252
|
}
|
|
250
|
-
function xt(t) {
|
|
251
|
-
i("scroll", t), ((t == null ? void 0 : t.type) === "body" || (t == null ? void 0 : t.type) === "table") && tt(t == null ? void 0 : t.scrollTop);
|
|
252
|
-
}
|
|
253
253
|
function $t(t) {
|
|
254
|
+
i("scroll", t), ((t == null ? void 0 : t.type) === "body" || (t == null ? void 0 : t.type) === "table") && ot(t == null ? void 0 : t.scrollTop);
|
|
255
|
+
}
|
|
256
|
+
function Tt(t) {
|
|
254
257
|
i("scroll-boundary", t);
|
|
255
258
|
const {
|
|
256
259
|
isScrollFetch: o
|
|
@@ -264,52 +267,52 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
264
267
|
currentPage: r + 1
|
|
265
268
|
});
|
|
266
269
|
}
|
|
267
|
-
function Tt(t) {
|
|
268
|
-
i("toggle-row-expand", t), et(!1);
|
|
269
|
-
}
|
|
270
270
|
function Rt(t) {
|
|
271
|
+
i("toggle-row-expand", t), tt(!1);
|
|
272
|
+
}
|
|
273
|
+
function kt(t) {
|
|
271
274
|
G(), i("edit-closed", t);
|
|
272
275
|
}
|
|
273
276
|
function U() {
|
|
274
|
-
return
|
|
277
|
+
return Ze(e(p));
|
|
275
278
|
}
|
|
276
|
-
function
|
|
279
|
+
function Pt(t) {
|
|
277
280
|
return Object.keys(t).filter((o) => o !== "empty");
|
|
278
281
|
}
|
|
279
282
|
const _ = {
|
|
280
|
-
reload:
|
|
281
|
-
setProps:
|
|
282
|
-
setTableColumns:
|
|
283
|
+
reload: lt,
|
|
284
|
+
setProps: St,
|
|
285
|
+
setTableColumns: ct,
|
|
283
286
|
setPagination: N,
|
|
284
287
|
setLoading: re,
|
|
285
288
|
redoHeight: me,
|
|
286
|
-
getDataSource:
|
|
289
|
+
getDataSource: Je,
|
|
287
290
|
getPagination: _e,
|
|
288
|
-
getSelectRowKeys:
|
|
289
|
-
getSelectRows:
|
|
291
|
+
getSelectRowKeys: Fe,
|
|
292
|
+
getSelectRows: Le,
|
|
290
293
|
getTableInstance: U,
|
|
291
294
|
getLoading: x,
|
|
292
|
-
getTableColumns:
|
|
293
|
-
setSelectedRowKeys:
|
|
295
|
+
getTableColumns: pt,
|
|
296
|
+
setSelectedRowKeys: Oe,
|
|
294
297
|
clearSelectedRowKeys: se,
|
|
295
298
|
selectedKeys: H,
|
|
296
299
|
selectedRows: B,
|
|
297
|
-
...
|
|
300
|
+
...ht
|
|
298
301
|
};
|
|
299
|
-
return
|
|
302
|
+
return co({
|
|
300
303
|
..._,
|
|
301
304
|
wrapRef: v,
|
|
302
305
|
getBindValues: j
|
|
303
306
|
}), Te({
|
|
304
307
|
..._,
|
|
305
|
-
xGrid:
|
|
308
|
+
xGrid: ft
|
|
306
309
|
}), (ge = s.bindState) == null || ge.call(s, {
|
|
307
310
|
loading: x,
|
|
308
311
|
selectedKeys: H,
|
|
309
312
|
selectedRows: B
|
|
310
|
-
}),
|
|
313
|
+
}), C && i("register", _, `${C.uid}`), J(() => {
|
|
311
314
|
e(l).autoHeight && me();
|
|
312
|
-
}),
|
|
315
|
+
}), Kt(() => {
|
|
313
316
|
var t;
|
|
314
317
|
(t = s.mount) == null || t.call(s, e(p), _), J(() => {
|
|
315
318
|
var o, r;
|
|
@@ -325,34 +328,34 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
325
328
|
"data-testid": Ve.value,
|
|
326
329
|
onKeydownCapture: o[3] || (o[3] = //@ts-ignore
|
|
327
330
|
(...r) => e(pe) && e(pe)(...r))
|
|
328
|
-
}, [D(e(
|
|
331
|
+
}, [D(e(Wt), Q({
|
|
329
332
|
ref_key: "xGrid",
|
|
330
333
|
ref: p
|
|
331
|
-
}, e(
|
|
334
|
+
}, e(gt), Mt(bt.value), {
|
|
332
335
|
onFilterChange: o[2] || (o[2] = (r) => e(de)())
|
|
333
|
-
}),
|
|
334
|
-
empty: n(() => [d(t.$slots, "empty", P(
|
|
336
|
+
}), At({
|
|
337
|
+
empty: n(() => [d(t.$slots, "empty", P(M({
|
|
335
338
|
isLoaded: e(ce),
|
|
336
339
|
loading: e(x),
|
|
337
340
|
emptyTip: W.value
|
|
338
341
|
})), () => [f("div", {
|
|
339
342
|
class: z(`${e(b)}-empty-image`)
|
|
340
|
-
}, [e(x) ? (c(), g("span",
|
|
343
|
+
}, [e(x) ? (c(), g("span", Po, Y(l.value.emptyText || ""), 1)) : (c(), g(Ft, {
|
|
341
344
|
key: 0
|
|
342
|
-
}, [D(e(
|
|
343
|
-
style: y(
|
|
345
|
+
}, [D(e(Xt), {
|
|
346
|
+
style: y(yt.value),
|
|
344
347
|
status: l.value.emptyImageStatus
|
|
345
|
-
}, null, 8, ["style", "status"]), W.value ? (c(), g("span",
|
|
346
|
-
left: n(() => [d(t.$slots, "left", {}, () => [e(
|
|
348
|
+
}, null, 8, ["style", "status"]), W.value ? (c(), g("span", ko, Y(W.value), 1)) : K("", !0)], 64))], 2)])]),
|
|
349
|
+
left: n(() => [d(t.$slots, "left", {}, () => [e(w) ? (c(), X(e(Ce), {
|
|
347
350
|
key: 0,
|
|
348
351
|
ref_key: "leftScrollbarRef",
|
|
349
|
-
ref:
|
|
352
|
+
ref: rt,
|
|
350
353
|
"wrap-class": "overflow-hidden",
|
|
351
354
|
class: "tt-table-left-right-scroll",
|
|
352
|
-
height: `${e(
|
|
355
|
+
height: `${e(w)}px`,
|
|
353
356
|
style: y({
|
|
354
357
|
width: `${l.value.leftSlotWidth}px`,
|
|
355
|
-
height: `${e(
|
|
358
|
+
height: `${e(w)}px`,
|
|
356
359
|
marginTop: `${e(ae)}px`
|
|
357
360
|
})
|
|
358
361
|
}, {
|
|
@@ -368,23 +371,23 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
368
371
|
height: `${e(E)}px`,
|
|
369
372
|
marginTop: `${e(ne)}px`
|
|
370
373
|
})
|
|
371
|
-
}, [d(t.$slots, "tableLeft", P(
|
|
374
|
+
}, [d(t.$slots, "tableLeft", P(M({
|
|
372
375
|
rowNodes: e(le),
|
|
373
376
|
height: e(E)
|
|
374
377
|
})))], 4)]),
|
|
375
378
|
_: 3
|
|
376
|
-
}, 8, ["height", "style"])) :
|
|
377
|
-
right: n(() => [d(t.$slots, "right", {}, () => [e(
|
|
379
|
+
}, 8, ["height", "style"])) : K("", !0)])]),
|
|
380
|
+
right: n(() => [d(t.$slots, "right", {}, () => [e(w) ? (c(), X(e(Ce), {
|
|
378
381
|
key: 0,
|
|
379
382
|
ref_key: "rightScrollbarRef",
|
|
380
|
-
ref:
|
|
383
|
+
ref: st,
|
|
381
384
|
"wrap-class": "overflow-hidden",
|
|
382
385
|
class: "tt-table-left-right-scroll",
|
|
383
386
|
always: "",
|
|
384
|
-
height: `${e(
|
|
387
|
+
height: `${e(w)}px`,
|
|
385
388
|
style: y({
|
|
386
389
|
width: `${l.value.rightSlotWidth}px`,
|
|
387
|
-
height: `${e(
|
|
390
|
+
height: `${e(w)}px`,
|
|
388
391
|
marginTop: `${e(ae)}px`
|
|
389
392
|
})
|
|
390
393
|
}, {
|
|
@@ -400,14 +403,14 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
400
403
|
height: `${e(E)}px`,
|
|
401
404
|
marginTop: `${e(ne)}px`
|
|
402
405
|
})
|
|
403
|
-
}, [d(t.$slots, "tableRight", P(
|
|
406
|
+
}, [d(t.$slots, "tableRight", P(M({
|
|
404
407
|
rowNodes: e(le),
|
|
405
408
|
height: e(E)
|
|
406
409
|
})))], 4)]),
|
|
407
410
|
_: 3
|
|
408
|
-
}, 8, ["height", "style"])) :
|
|
411
|
+
}, 8, ["height", "style"])) : K("", !0)])]),
|
|
409
412
|
_: 2
|
|
410
|
-
}, [Z(e(
|
|
413
|
+
}, [Z(e(it), (r) => ({
|
|
411
414
|
name: r,
|
|
412
415
|
fn: n(({
|
|
413
416
|
column: a
|
|
@@ -418,17 +421,17 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
418
421
|
}])
|
|
419
422
|
}, [a.order === "asc" ? (c(), g("img", {
|
|
420
423
|
key: 0,
|
|
421
|
-
src: e(
|
|
422
|
-
}, null, 8,
|
|
424
|
+
src: e(Qt)
|
|
425
|
+
}, null, 8, xo)) : a.order === "desc" ? (c(), g("img", {
|
|
423
426
|
key: 1,
|
|
424
|
-
src: e(Ut)
|
|
425
|
-
}, null, 8, xo)) : (c(), g("img", {
|
|
426
|
-
key: 2,
|
|
427
427
|
src: e(qt)
|
|
428
|
-
}, null, 8, $o))
|
|
429
|
-
|
|
428
|
+
}, null, 8, $o)) : (c(), g("img", {
|
|
429
|
+
key: 2,
|
|
430
|
+
src: e(Jt)
|
|
431
|
+
}, null, 8, To))], 2)])
|
|
432
|
+
})), Z(Pt(t.$slots), (r) => ({
|
|
430
433
|
name: r,
|
|
431
|
-
fn: n((a) => [r.includes("action") ? (c(), X(e(
|
|
434
|
+
fn: n((a) => [r.includes("action") ? (c(), X(e(Yt), {
|
|
432
435
|
key: 0,
|
|
433
436
|
"row-index": a.$rowIndex
|
|
434
437
|
}, {
|
|
@@ -443,7 +446,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
443
446
|
name: "top",
|
|
444
447
|
fn: n(() => [f("div", {
|
|
445
448
|
class: z(`${e(b)}-top-alert`)
|
|
446
|
-
}, [o[4] || (o[4] =
|
|
449
|
+
}, [o[4] || (o[4] = we(" 已选中 ", -1)), f("span", Ro, Y(e(Ae).length), 1), o[5] || (o[5] = we(" 条 ", -1)), d(t.$slots, "top_title")], 2)]),
|
|
447
450
|
key: "0"
|
|
448
451
|
} : void 0, e(A).toolbar_buttons ? {
|
|
449
452
|
name: "toolbar_buttons",
|
|
@@ -453,7 +456,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
453
456
|
name: "toolbar_tools",
|
|
454
457
|
fn: n(() => [d(t.$slots, "toolbar_tools")]),
|
|
455
458
|
key: "2"
|
|
456
|
-
} : void 0, Z(e(
|
|
459
|
+
} : void 0, Z(e(dt), (r) => ({
|
|
457
460
|
name: r,
|
|
458
461
|
fn: n(({
|
|
459
462
|
content: a,
|
|
@@ -463,18 +466,18 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
463
466
|
fixed: fe
|
|
464
467
|
}) => [!fe || fe === k.fixed ? (c(), g("div", {
|
|
465
468
|
key: 0,
|
|
466
|
-
ref: (
|
|
469
|
+
ref: (vt) => wt(vt, `valid_${T}_${R}`),
|
|
467
470
|
class: "h-full w-full"
|
|
468
|
-
}, [D(e(
|
|
471
|
+
}, [D(e(Nt), {
|
|
469
472
|
placement: l.value.toolTipErrorPlacement,
|
|
470
473
|
"err-msg": a,
|
|
471
474
|
"ref-dom": F.value[`valid_${T}_${R}`]
|
|
472
|
-
}, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) :
|
|
475
|
+
}, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : K("", !0)])
|
|
473
476
|
})), e(j).showPager ? {
|
|
474
477
|
name: "pager",
|
|
475
478
|
fn: n(() => {
|
|
476
479
|
var r, a, T, R;
|
|
477
|
-
return [D(e(
|
|
480
|
+
return [D(e(jt), {
|
|
478
481
|
"current-page": e($).currentPage,
|
|
479
482
|
"onUpdate:currentPage": o[0] || (o[0] = (k) => e($).currentPage = k),
|
|
480
483
|
"page-size": e($).pageSize,
|
|
@@ -486,7 +489,7 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
486
489
|
"class-name": `${e(b)}-vxe-pager`,
|
|
487
490
|
onPageChange: e(ze)
|
|
488
491
|
}, {
|
|
489
|
-
left: n(() => [d(t.$slots, "pager_left", P(
|
|
492
|
+
left: n(() => [d(t.$slots, "pager_left", P(M({
|
|
490
493
|
selectedKeys: e(H)
|
|
491
494
|
}))), d(t.$slots, "buttom_left")]),
|
|
492
495
|
_: 3
|
|
@@ -497,5 +500,5 @@ const Co = ["data-testid"], wo = ["src"], xo = ["src"], $o = ["src"], To = {
|
|
|
497
500
|
}
|
|
498
501
|
});
|
|
499
502
|
export {
|
|
500
|
-
|
|
503
|
+
wr as default
|
|
501
504
|
};
|
|
@@ -272,9 +272,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
272
272
|
headerTooltipConfig?: import("vxe-table").VxeTablePropTypes.HeaderTooltipConfig<any> | undefined;
|
|
273
273
|
tooltipConfig?: import("vxe-table").VxeTablePropTypes.TooltipConfig<any> | undefined;
|
|
274
274
|
footerTooltipConfig?: import("vxe-table").VxeTablePropTypes.FooterTooltipConfig<any> | undefined;
|
|
275
|
-
exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig | undefined;
|
|
276
|
-
importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig | undefined;
|
|
277
|
-
printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig | undefined;
|
|
275
|
+
exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig<any> | undefined;
|
|
276
|
+
importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig<any> | undefined;
|
|
277
|
+
printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig<any> | undefined;
|
|
278
278
|
expandConfig?: import("vxe-table").VxeTablePropTypes.ExpandConfig<any> | undefined;
|
|
279
279
|
treeConfig?: import("vxe-table").VxeTablePropTypes.TreeConfig<any> | undefined;
|
|
280
280
|
mouseConfig?: import("vxe-table").VxeTablePropTypes.MouseConfig | undefined;
|
|
@@ -499,9 +499,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
499
499
|
headerTooltipConfig?: import("vxe-table").VxeTablePropTypes.HeaderTooltipConfig<any> | undefined;
|
|
500
500
|
tooltipConfig?: import("vxe-table").VxeTablePropTypes.TooltipConfig<any> | undefined;
|
|
501
501
|
footerTooltipConfig?: import("vxe-table").VxeTablePropTypes.FooterTooltipConfig<any> | undefined;
|
|
502
|
-
exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig | undefined;
|
|
503
|
-
importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig | undefined;
|
|
504
|
-
printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig | undefined;
|
|
502
|
+
exportConfig?: import("vxe-table").VxeTablePropTypes.ExportConfig<any> | undefined;
|
|
503
|
+
importConfig?: import("vxe-table").VxeTablePropTypes.ImportConfig<any> | undefined;
|
|
504
|
+
printConfig?: import("vxe-table").VxeTablePropTypes.PrintConfig<any> | undefined;
|
|
505
505
|
expandConfig?: import("vxe-table").VxeTablePropTypes.ExpandConfig<any> | undefined;
|
|
506
506
|
treeConfig?: import("vxe-table").VxeTablePropTypes.TreeConfig<any> | undefined;
|
|
507
507
|
mouseConfig?: import("vxe-table").VxeTablePropTypes.MouseConfig | undefined;
|
|
@@ -5,9 +5,10 @@ import "../../tt-empty/index.js";
|
|
|
5
5
|
import "axios";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import { isFunction as xe } from "../../../packages/utils/src/is.js";
|
|
8
|
+
import "dayjs";
|
|
9
|
+
import "numeral";
|
|
8
10
|
import { extractResourceFromApi as Ne, generateTestId as M } from "../../../packages/utils/src/testid-helper.js";
|
|
9
11
|
import "xe-utils";
|
|
10
|
-
import "dayjs";
|
|
11
12
|
import "dayjs/plugin/utc";
|
|
12
13
|
import "dayjs/plugin/timezone";
|
|
13
14
|
import { mergeWithArrayOverride as He } from "../../../packages/utils/src/merge.js";
|
|
@@ -59,7 +60,6 @@ import "../../tt-log/index.js";
|
|
|
59
60
|
import "../../tt-loading/index.js";
|
|
60
61
|
import "../index.js";
|
|
61
62
|
import "../../../hooks/basicDataCodes.js";
|
|
62
|
-
import "numeral";
|
|
63
63
|
import { useTemplateSlot as ae } from "../../../hooks/useTemplateSlot.js";
|
|
64
64
|
import Qe from "./components/TableColumnModal.vue2.js";
|
|
65
65
|
/* empty css */
|