@dazhicheng/ui 1.5.203 → 1.5.205
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/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +24 -0
- package/dist/_virtual/aes.js +4 -0
- package/dist/_virtual/cipher-core.js +4 -0
- package/dist/_virtual/core.js +4 -0
- package/dist/_virtual/enc-base64.js +4 -0
- package/dist/_virtual/enc-utf8.js +4 -0
- package/dist/_virtual/evpkdf.js +4 -0
- package/dist/_virtual/hmac.js +4 -0
- package/dist/_virtual/md5.js +4 -0
- package/dist/_virtual/mode-ecb.js +4 -0
- package/dist/_virtual/pad-pkcs7.js +4 -0
- package/dist/_virtual/sha1.js +4 -0
- package/dist/components/tt-api-component/index.js +17 -4
- package/dist/components/tt-api-component/index.vue2.js +24 -13
- package/dist/components/tt-area/TtArea.vue3.js +24 -13
- package/dist/components/tt-button/index.js +18 -5
- package/dist/components/tt-button/index.vue2.js +27 -16
- package/dist/components/tt-checkbox/index.js +17 -4
- package/dist/components/tt-checkbox/index.vue.js +38 -28
- package/dist/components/tt-drawer/index.js +17 -7
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
- package/dist/components/tt-drawer/src/props.js +22 -9
- package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
- package/dist/components/tt-empty/index.js +28 -18
- package/dist/components/tt-form/index.js +22 -14
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
- package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
- package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
- package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
- package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
- package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
- package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
- package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
- package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
- package/dist/components/tt-form/src/form-render/helper.js +29 -16
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
- package/dist/components/tt-form/src/formApi.js +59 -48
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
- package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
- package/dist/components/tt-form/src/index.vue2.js +53 -45
- package/dist/components/tt-form/src/useFormContext.js +74 -62
- package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
- package/dist/components/tt-icon/index.js +20 -7
- package/dist/components/tt-image/index.js +19 -6
- package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
- package/dist/components/tt-loading/index.js +16 -4
- package/dist/components/tt-loading/src/directive.js +34 -22
- package/dist/components/tt-log/index.js +17 -4
- package/dist/components/tt-log/index.vue.js +21 -8
- package/dist/components/tt-modal/index.js +16 -5
- package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
- package/dist/components/tt-modal/src/props.js +22 -9
- package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
- package/dist/components/tt-modal-form/index.vue.js +44 -36
- package/dist/components/tt-nav-anchor/index.js +17 -4
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
- package/dist/components/tt-panel-select/index.js +17 -4
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
- package/dist/components/tt-panel-select/src/index.vue.js +35 -24
- package/dist/components/tt-select/index.js +17 -4
- package/dist/components/tt-select/src/Select.vue.js +79 -68
- package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
- package/dist/components/tt-select/src/components/Table.vue.js +86 -76
- package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
- package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
- package/dist/components/tt-table/index.js +19 -12
- package/dist/components/tt-table/src/Table.vue.js +82 -71
- package/dist/components/tt-table/src/TableForm.vue.js +77 -65
- package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
- package/dist/components/tt-table/src/components/TableButtons.js +73 -60
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
- package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
- package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
- package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
- package/dist/components/tt-table/src/props.js +55 -42
- package/dist/components/tt-table/src/utils/table-api.js +33 -22
- package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
- package/dist/components/tt-text/index.js +17 -4
- package/dist/components/tt-upload/index.d.ts +15 -6
- package/dist/components/tt-upload/index.js +19 -6
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +9 -3
- package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
- package/dist/components/tt-upload/src/typing.d.ts +4 -1
- package/dist/components/tt-upload/src/typing.js +4 -0
- package/dist/directives/disabled-tip/index.js +37 -26
- package/dist/hooks/useFormSchemasLink.js +90 -79
- package/dist/hooks/useScreenshotOss.js +49 -35
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
- package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
- package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
- package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
- package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
- package/dist/packages/hooks/src/propTypes.js +17 -0
- package/dist/packages/hooks/src/tools.js +6 -0
- package/dist/packages/hooks/src/useDebounce.js +32 -0
- package/dist/packages/hooks/src/useDesign.js +12 -0
- package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
- package/dist/packages/hooks/src/useIsScroll.js +12 -0
- package/dist/packages/hooks/src/usePriorityValue.js +45 -0
- package/dist/packages/utils/src/calc.js +14 -0
- package/dist/packages/utils/src/check.js +10 -0
- package/dist/packages/utils/src/install.js +11 -0
- package/dist/packages/utils/src/is.js +64 -0
- package/dist/packages/utils/src/merge.js +13 -0
- package/dist/packages/utils/src/stateHandler.js +33 -0
- package/dist/packages/utils/src/string.js +6 -0
- package/dist/packages/utils/src/testid-helper.js +14 -0
- package/dist/packages/utils/src/tool.js +181 -0
- package/dist/plugins/default/renderCellContent.js +39 -28
- package/dist/plugins/vxeTable/switchStatus.js +37 -26
- package/package.json +3 -3
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { defineComponent as vt, useAttrs as St, useSlots as xt, ref as P, getCurrentInstance as wt, computed as v, provide as Ce, reactive as Ct, toValue as B, toRaw as _, unref as t, watch as M, nextTick as F, onMounted as Tt, onUnmounted as kt, createElementBlock as
|
|
1
|
+
import { defineComponent as vt, useAttrs as St, useSlots as xt, ref as P, getCurrentInstance as wt, computed as v, provide as Ce, reactive as Ct, toValue as B, toRaw as _, unref as t, watch as M, nextTick as F, onMounted as Tt, onUnmounted as kt, createElementBlock as m, openBlock as d, normalizeClass as K, createVNode as O, mergeProps as ee, toHandlers as $t, createSlots as Rt, withCtx as u, renderSlot as g, createBlock as te, createCommentVNode as V, normalizeStyle as k, createElementVNode as w, normalizeProps as j, guardReactiveProps as J, Fragment as Te, toDisplayString as L, renderList as oe, withModifiers as Pt, createTextVNode as re } from "vue";
|
|
2
2
|
import { useLoading as _t } from "../../../hooks/useLoading.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { ElScrollbar as
|
|
8
|
-
import {
|
|
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
|
+
import { useDesign as Et } from "../../../packages/hooks/src/useDesign.js";
|
|
5
|
+
import { kebabToCamelCase as It } from "../../../packages/utils/src/string.js";
|
|
6
|
+
import "axios";
|
|
7
|
+
import { ElScrollbar as ke } from "element-plus";
|
|
8
|
+
import { isBoolean as zt, isString as Ot } from "../../../packages/utils/src/is.js";
|
|
9
|
+
import { extractResourceFromApi as Vt, generateTestId as $e } from "../../../packages/utils/src/testid-helper.js";
|
|
10
|
+
import { getDifference as Dt } from "../../../packages/utils/src/tool.js";
|
|
11
|
+
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
|
+
import { checkVersion as Ht } from "../../../packages/utils/src/check.js";
|
|
17
|
+
import { omit as N, cloneDeep as Bt } from "lodash-es";
|
|
18
|
+
import { TtErrorTooltip as Ft } from "../../tt-form-item-error-tooltip/index.js";
|
|
19
|
+
import { useStore as Kt } from "@tanstack/vue-store";
|
|
9
20
|
import { VxeUI as jt, VxePager as Lt } from "vxe-pc-ui";
|
|
10
21
|
import { VxeGrid as Nt } from "vxe-table";
|
|
11
22
|
import { tableProps as Gt } from "vxe-table/es/table/src/props";
|
|
@@ -29,15 +40,15 @@ import { tableOtherProps as so, tableProps as _e } from "./props.js";
|
|
|
29
40
|
import { TableApi as lo } from "./utils/table-api.js";
|
|
30
41
|
const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
31
42
|
class: "mr-4px flex-1 overflow-hidden"
|
|
32
|
-
}, co = ["src"], uo = ["src"], fo = ["src"],
|
|
43
|
+
}, co = ["src"], uo = ["src"], fo = ["src"], po = {
|
|
33
44
|
style: {
|
|
34
45
|
color: "#009ffa"
|
|
35
46
|
}
|
|
36
|
-
}, po = {
|
|
37
|
-
key: 0
|
|
38
47
|
}, mo = {
|
|
39
48
|
key: 0
|
|
40
|
-
},
|
|
49
|
+
}, go = {
|
|
50
|
+
key: 0
|
|
51
|
+
}, or = /* @__PURE__ */ vt({
|
|
41
52
|
name: "TtTable",
|
|
42
53
|
__name: "Table",
|
|
43
54
|
props: {
|
|
@@ -53,14 +64,14 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
53
64
|
var we;
|
|
54
65
|
const b = Ee, c = ze, se = St(), E = xt(), {
|
|
55
66
|
prefixCls: $
|
|
56
|
-
} = Et("table"), le = P(), Oe = P({}), G = P(null),
|
|
67
|
+
} = Et("table"), le = P(), Oe = P({}), G = P(null), p = P(), ne = P([]), ae = {}, ie = P({}), h = wt();
|
|
57
68
|
let l = b.tableApi;
|
|
58
69
|
if (!l) {
|
|
59
70
|
l = new lo(b);
|
|
60
71
|
const e = l;
|
|
61
|
-
e.useStore = (o) =>
|
|
72
|
+
e.useStore = (o) => Kt(l.store, o), l = e;
|
|
62
73
|
}
|
|
63
|
-
const D = (we = l == null ? void 0 : l.useStore) == null ? void 0 : we.call(l), q = v(() => b.testId ? b.testId : b.api ?
|
|
74
|
+
const D = (we = l == null ? void 0 : l.useStore) == null ? void 0 : we.call(l), q = v(() => b.testId ? b.testId : b.api ? Vt(b.api) : "table"), Ve = v(() => $e(q.value, "table"));
|
|
64
75
|
Ce("tableIdContext", q);
|
|
65
76
|
const C = Ct({
|
|
66
77
|
emptyText: B(D).emptyText,
|
|
@@ -100,25 +111,25 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
100
111
|
onCellAreaSelectionEndSetCheckbox: Ge,
|
|
101
112
|
onCheckboxRangeChange: fe,
|
|
102
113
|
onRadioChange: We
|
|
103
|
-
} = to(a, c,
|
|
114
|
+
} = to(a, c, p), {
|
|
104
115
|
handleLeftRightSlotInit: Ae,
|
|
105
116
|
handleLeftRightSlotScroll: Ue,
|
|
106
|
-
leftRightSlotRows:
|
|
117
|
+
leftRightSlotRows: pe,
|
|
107
118
|
tableBodyWrapHeight: z,
|
|
108
|
-
tableHeaderHight:
|
|
109
|
-
tableBodyScrollHeight:
|
|
119
|
+
tableHeaderHight: me,
|
|
120
|
+
tableBodyScrollHeight: ge,
|
|
110
121
|
tableBodyHeight: A,
|
|
111
122
|
leftSlotScrollbarRef: Ye,
|
|
112
123
|
rightSlotScrollbarRef: Me,
|
|
113
124
|
tableBodyScrollTop: he
|
|
114
|
-
} = Zt(a,
|
|
125
|
+
} = Zt(a, p, ne), {
|
|
115
126
|
reload: Je,
|
|
116
127
|
reloadFilter: be,
|
|
117
128
|
getDataSource: qe,
|
|
118
129
|
dataSource: Xe,
|
|
119
130
|
isloaded: Qe
|
|
120
131
|
} = Qt(a, {
|
|
121
|
-
xGrid:
|
|
132
|
+
xGrid: p,
|
|
122
133
|
tableData: ne,
|
|
123
134
|
paginationRef: H,
|
|
124
135
|
getPaginationInfo: I,
|
|
@@ -137,7 +148,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
137
148
|
onResizableChange: ot,
|
|
138
149
|
onColumnDragend: rt
|
|
139
150
|
} = Xt(a, {
|
|
140
|
-
xGrid:
|
|
151
|
+
xGrid: p,
|
|
141
152
|
tableWidth: v(() => t(G).offsetWidth)
|
|
142
153
|
}, c), y = v(() => {
|
|
143
154
|
const {
|
|
@@ -159,7 +170,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
159
170
|
buttons: E.toolbar_buttons ? "toolbar_buttons" : void 0
|
|
160
171
|
} : void 0,
|
|
161
172
|
...f
|
|
162
|
-
}), S || (T.pagerConfig = void 0), x && (T.height = "auto", T.autoResize = !0, T.syncResize = !0),
|
|
173
|
+
}), S || (T.pagerConfig = void 0), x && (T.height = "auto", T.autoResize = !0, T.syncResize = !0), Ht(jt.tableVersion, 4, 16) ? T.virtualYConfig = {
|
|
163
174
|
enabled: !0,
|
|
164
175
|
mode: "wheel",
|
|
165
176
|
...U
|
|
@@ -202,12 +213,12 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
202
213
|
round: !0,
|
|
203
214
|
loading: !1
|
|
204
215
|
};
|
|
205
|
-
}), st = v(() =>
|
|
216
|
+
}), st = v(() => zt(t(y).showHeaderOverflow) ? t(y).showHeaderOverflow : Ot(t(y).showHeaderOverflow) ? t(y).showHeaderOverflow === "tooltip" : !1), {
|
|
206
217
|
onCellAreaSelectionEnd: lt
|
|
207
|
-
} = qt(y, c,
|
|
218
|
+
} = qt(y, c, p, {
|
|
208
219
|
onCellAreaSelectionEndSetCheckbox: Ge,
|
|
209
220
|
onCheckboxRangeChange: fe
|
|
210
|
-
}), ve = ro(
|
|
221
|
+
}), ve = ro(p, C, c, l, a, {
|
|
211
222
|
clearSelectedRowKeys: Z
|
|
212
223
|
});
|
|
213
224
|
M(() => y.value, (e, o) => {
|
|
@@ -256,7 +267,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
256
267
|
} = e.$grid.getTableData(), {
|
|
257
268
|
isDataCloneDeep: r
|
|
258
269
|
} = t(a);
|
|
259
|
-
c("update:modelValue", r ?
|
|
270
|
+
c("update:modelValue", r ? Bt(o) : o), c("edit-closed", e);
|
|
260
271
|
}
|
|
261
272
|
}));
|
|
262
273
|
async function at(e) {
|
|
@@ -265,7 +276,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
265
276
|
function xe() {
|
|
266
277
|
F(() => {
|
|
267
278
|
var e;
|
|
268
|
-
(e = t(
|
|
279
|
+
(e = t(p)) == null || e.recalculate(!0);
|
|
269
280
|
});
|
|
270
281
|
}
|
|
271
282
|
function it(e, o) {
|
|
@@ -280,7 +291,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
280
291
|
});
|
|
281
292
|
return;
|
|
282
293
|
}
|
|
283
|
-
const o =
|
|
294
|
+
const o = p.value;
|
|
284
295
|
switch (e.order) {
|
|
285
296
|
case "desc":
|
|
286
297
|
await (o == null ? void 0 : o.sort(e.field, "asc"));
|
|
@@ -314,7 +325,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
314
325
|
total: i = 0
|
|
315
326
|
} = t(I), {
|
|
316
327
|
fullData: n = []
|
|
317
|
-
} = ((f = t(
|
|
328
|
+
} = ((f = t(p)) == null ? void 0 : f.getTableData()) || {};
|
|
318
329
|
i <= n.length || X({
|
|
319
330
|
currentPage: s + 1
|
|
320
331
|
});
|
|
@@ -324,7 +335,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
324
335
|
Ae(!1);
|
|
325
336
|
}, 30);
|
|
326
337
|
}
|
|
327
|
-
const
|
|
338
|
+
const pt = (e) => {
|
|
328
339
|
var i;
|
|
329
340
|
const {
|
|
330
341
|
visible: o,
|
|
@@ -361,7 +372,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
361
372
|
getPagination: De,
|
|
362
373
|
getSelectRowKeys: je,
|
|
363
374
|
getSelectRows: Le,
|
|
364
|
-
getTableInstance: () => t(
|
|
375
|
+
getTableInstance: () => t(p),
|
|
365
376
|
getLoading: W,
|
|
366
377
|
getTableColumns: ye,
|
|
367
378
|
setSelectedRowKeys: Ne,
|
|
@@ -376,7 +387,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
376
387
|
getBindValues: y
|
|
377
388
|
}), Ie({
|
|
378
389
|
...R,
|
|
379
|
-
xGrid:
|
|
390
|
+
xGrid: p
|
|
380
391
|
}), h && c("register", R, `${h == null ? void 0 : h.uid}`), M(() => W.value, (e) => {
|
|
381
392
|
l.setProxyState({
|
|
382
393
|
loading: e
|
|
@@ -385,10 +396,10 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
385
396
|
h && ((o = R.emitLoading) == null || o.call(R, e, h == null ? void 0 : h.uid));
|
|
386
397
|
});
|
|
387
398
|
});
|
|
388
|
-
function
|
|
399
|
+
function mt(e) {
|
|
389
400
|
return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
|
|
390
401
|
}
|
|
391
|
-
function
|
|
402
|
+
function gt(e, o) {
|
|
392
403
|
return Object.fromEntries(Object.keys(e).map((r) => [r, o[r]]));
|
|
393
404
|
}
|
|
394
405
|
function ht(e) {
|
|
@@ -398,10 +409,10 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
398
409
|
var n;
|
|
399
410
|
const e = {}, o = ((n = h == null ? void 0 : h.vnode) == null ? void 0 : n.props) || {}, r = new Set(Object.keys(b));
|
|
400
411
|
for (const [f, S] of Object.entries(o)) {
|
|
401
|
-
const x =
|
|
412
|
+
const x = It(f);
|
|
402
413
|
r.has(x) && (e[x] = S);
|
|
403
414
|
}
|
|
404
|
-
const s =
|
|
415
|
+
const s = mt(e), i = gt(s, b);
|
|
405
416
|
l.setState(i);
|
|
406
417
|
}, {
|
|
407
418
|
deep: !0
|
|
@@ -411,12 +422,12 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
411
422
|
selectedRows: t(ue)
|
|
412
423
|
});
|
|
413
424
|
});
|
|
414
|
-
const bt = v(() =>
|
|
425
|
+
const bt = v(() => $e(q.value, "table-toolbar"));
|
|
415
426
|
return Tt(() => {
|
|
416
427
|
var e;
|
|
417
428
|
l.setState({
|
|
418
429
|
modelValue: b.modelValue
|
|
419
|
-
}), (e = l.mount) == null || e.call(l,
|
|
430
|
+
}), (e = l.mount) == null || e.call(l, p.value, R), F(() => {
|
|
420
431
|
var r;
|
|
421
432
|
const o = (r = G.value) == null ? void 0 : r.querySelector(".vxe-toolbar");
|
|
422
433
|
o && o.setAttribute("data-testid", t(bt));
|
|
@@ -424,7 +435,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
424
435
|
}), kt(() => {
|
|
425
436
|
var e;
|
|
426
437
|
(e = l == null ? void 0 : l.unmount) == null || e.call(l);
|
|
427
|
-
}), (e, o) => (d(),
|
|
438
|
+
}), (e, o) => (d(), m("div", {
|
|
428
439
|
ref_key: "wrapRef",
|
|
429
440
|
ref: G,
|
|
430
441
|
class: K([t($), t(se).class]),
|
|
@@ -435,30 +446,30 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
435
446
|
})))
|
|
436
447
|
}, [O(t(Nt), ee({
|
|
437
448
|
ref_key: "xGrid",
|
|
438
|
-
ref:
|
|
449
|
+
ref: p
|
|
439
450
|
}, ie.value, {
|
|
440
451
|
onFilterChange: o[2] || (o[2] = (r) => t(be)())
|
|
441
452
|
}, $t(nt.value), {
|
|
442
|
-
onFilterVisible:
|
|
453
|
+
onFilterVisible: pt
|
|
443
454
|
}), Rt({
|
|
444
|
-
empty: u(() => [t(W) ? (d(),
|
|
455
|
+
empty: u(() => [t(W) ? (d(), m("div", {
|
|
445
456
|
key: 1,
|
|
446
457
|
class: K(`${t($)}-empty-image`)
|
|
447
|
-
}, [w("span", null, L(C.emptyText || ""), 1)], 2)) : (d(),
|
|
458
|
+
}, [w("span", null, L(C.emptyText || ""), 1)], 2)) : (d(), m("div", {
|
|
448
459
|
key: 0,
|
|
449
460
|
class: K(`${t($)}-empty-image`)
|
|
450
|
-
}, [t(Qe) || !a.value.api ? (d(),
|
|
461
|
+
}, [t(Qe) || !a.value.api ? (d(), m(Te, {
|
|
451
462
|
key: 0
|
|
452
463
|
}, [O(t(Re), {
|
|
453
464
|
style: k(Se.value),
|
|
454
465
|
status: C.emptyImageStatus
|
|
455
|
-
}, null, 8, ["style", "status"]), C.emptyText ? (d(),
|
|
466
|
+
}, null, 8, ["style", "status"]), C.emptyText ? (d(), m("span", mo, L(C.emptyText), 1)) : V("", !0)], 64)) : (d(), m(Te, {
|
|
456
467
|
key: 1
|
|
457
468
|
}, [O(t(Re), {
|
|
458
469
|
style: k(Se.value),
|
|
459
470
|
status: C.emptyImageStatus
|
|
460
|
-
}, null, 8, ["style", "status"]), C.noSearchText ? (d(),
|
|
461
|
-
left: u(() => [
|
|
471
|
+
}, null, 8, ["style", "status"]), C.noSearchText ? (d(), m("span", go, L(C.noSearchText), 1)) : V("", !0)], 64))], 2))]),
|
|
472
|
+
left: u(() => [g(e.$slots, "left", {}, () => [t(z) ? (d(), te(t(ke), {
|
|
462
473
|
key: 0,
|
|
463
474
|
ref_key: "leftSlotScrollbarRef",
|
|
464
475
|
ref: Ye,
|
|
@@ -468,13 +479,13 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
468
479
|
style: k({
|
|
469
480
|
width: `${a.value.leftSlotWidth}px`,
|
|
470
481
|
height: `${t(z)}px`,
|
|
471
|
-
marginTop: `${t(
|
|
482
|
+
marginTop: `${t(me)}px`
|
|
472
483
|
})
|
|
473
484
|
}, {
|
|
474
485
|
default: u(() => [w("div", {
|
|
475
486
|
class: "float-left w-0",
|
|
476
487
|
style: k({
|
|
477
|
-
height: `${t(
|
|
488
|
+
height: `${t(ge)}px`
|
|
478
489
|
})
|
|
479
490
|
}, null, 4), w("div", {
|
|
480
491
|
style: k({
|
|
@@ -483,13 +494,13 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
483
494
|
marginTop: `${t(he)}`
|
|
484
495
|
}),
|
|
485
496
|
class: "relative"
|
|
486
|
-
}, [
|
|
487
|
-
rowNodes: t(
|
|
497
|
+
}, [g(e.$slots, "tableLeft", j(J({
|
|
498
|
+
rowNodes: t(pe),
|
|
488
499
|
height: t(A)
|
|
489
500
|
})))], 4)]),
|
|
490
501
|
_: 3
|
|
491
502
|
}, 8, ["height", "style"])) : V("", !0)])]),
|
|
492
|
-
right: u(() => [
|
|
503
|
+
right: u(() => [g(e.$slots, "right", {}, () => [t(z) ? (d(), te(t(ke), {
|
|
493
504
|
key: 0,
|
|
494
505
|
ref_key: "rightSlotScrollbarRef",
|
|
495
506
|
ref: Me,
|
|
@@ -500,13 +511,13 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
500
511
|
style: k({
|
|
501
512
|
width: `${a.value.rightSlotWidth}px`,
|
|
502
513
|
height: `${t(z)}px`,
|
|
503
|
-
marginTop: `${t(
|
|
514
|
+
marginTop: `${t(me)}px`
|
|
504
515
|
})
|
|
505
516
|
}, {
|
|
506
517
|
default: u(() => [w("div", {
|
|
507
518
|
class: "float-left w-0",
|
|
508
519
|
style: k({
|
|
509
|
-
height: `${t(
|
|
520
|
+
height: `${t(ge)}px`
|
|
510
521
|
})
|
|
511
522
|
}, null, 4), w("div", {
|
|
512
523
|
style: k({
|
|
@@ -515,8 +526,8 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
515
526
|
marginTop: `${t(he)}`
|
|
516
527
|
}),
|
|
517
528
|
class: "relative"
|
|
518
|
-
}, [
|
|
519
|
-
rowNodes: t(
|
|
529
|
+
}, [g(e.$slots, "tableRight", j(J({
|
|
530
|
+
rowNodes: t(pe),
|
|
520
531
|
height: t(A)
|
|
521
532
|
})))], 4)]),
|
|
522
533
|
_: 3
|
|
@@ -527,24 +538,24 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
527
538
|
fn: u((s) => [w("div", {
|
|
528
539
|
class: "flex items-center",
|
|
529
540
|
onClick: Pt((i) => ct(s.column), ["stop"])
|
|
530
|
-
}, [w("div", io, [
|
|
541
|
+
}, [w("div", io, [g(e.$slots, ht(s), j(J(s)), () => [O(t(Mt), {
|
|
531
542
|
"tool-tip": st.value
|
|
532
543
|
}, {
|
|
533
544
|
default: u(() => [re(L(s.column.title), 1)]),
|
|
534
545
|
_: 2
|
|
535
|
-
}, 1032, ["tool-tip"])])]), s.column.sortable ? (d(),
|
|
546
|
+
}, 1032, ["tool-tip"])])]), s.column.sortable ? (d(), m("div", {
|
|
536
547
|
key: 0,
|
|
537
548
|
class: K(["flex-x", {
|
|
538
549
|
"is-order": s.column.order,
|
|
539
550
|
[`${t($)}-custom-sort`]: !0
|
|
540
551
|
}])
|
|
541
|
-
}, [s.column.order === "asc" ? (d(),
|
|
552
|
+
}, [s.column.order === "asc" ? (d(), m("img", {
|
|
542
553
|
key: 0,
|
|
543
554
|
src: t(Yt)
|
|
544
|
-
}, null, 8, co)) : s.column.order === "desc" ? (d(),
|
|
555
|
+
}, null, 8, co)) : s.column.order === "desc" ? (d(), m("img", {
|
|
545
556
|
key: 1,
|
|
546
557
|
src: t(At)
|
|
547
|
-
}, null, 8, uo)) : (d(),
|
|
558
|
+
}, null, 8, uo)) : (d(), m("img", {
|
|
548
559
|
key: 2,
|
|
549
560
|
src: t(Ut)
|
|
550
561
|
}, null, 8, fo))], 2)) : V("", !0)], 8, ao)])
|
|
@@ -554,26 +565,26 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
554
565
|
key: 0,
|
|
555
566
|
"row-index": s.$rowIndex
|
|
556
567
|
}, {
|
|
557
|
-
default: u(() => [
|
|
568
|
+
default: u(() => [g(e.$slots, r, ee(s, {
|
|
558
569
|
rowIndex: s.$rowIndex
|
|
559
570
|
}))]),
|
|
560
571
|
_: 2
|
|
561
|
-
}, 1032, ["row-index"])) :
|
|
572
|
+
}, 1032, ["row-index"])) : g(e.$slots, r, j(ee({
|
|
562
573
|
key: 1
|
|
563
574
|
}, s)))])
|
|
564
575
|
})), y.value.showTableAlert ? {
|
|
565
576
|
name: "top",
|
|
566
577
|
fn: u(() => [w("div", {
|
|
567
578
|
class: K(`${t($)}-top-alert`)
|
|
568
|
-
}, [o[3] || (o[3] = re(" 已选中 ", -1)), w("span",
|
|
579
|
+
}, [o[3] || (o[3] = re(" 已选中 ", -1)), w("span", po, L(t(Be).length), 1), o[4] || (o[4] = re(" 条 ", -1)), g(e.$slots, "top_title")], 2)]),
|
|
569
580
|
key: "0"
|
|
570
581
|
} : void 0, t(E).toolbar_buttons ? {
|
|
571
582
|
name: "toolbar_buttons",
|
|
572
|
-
fn: u(() => [
|
|
583
|
+
fn: u(() => [g(e.$slots, "toolbar_buttons")]),
|
|
573
584
|
key: "1"
|
|
574
585
|
} : void 0, t(E).toolbar_tools ? {
|
|
575
586
|
name: "toolbar_tools",
|
|
576
|
-
fn: u(() => [
|
|
587
|
+
fn: u(() => [g(e.$slots, "toolbar_tools")]),
|
|
577
588
|
key: "2"
|
|
578
589
|
} : void 0, oe(t(et), (r) => ({
|
|
579
590
|
name: r,
|
|
@@ -583,11 +594,11 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
583
594
|
columnIndex: n,
|
|
584
595
|
column: f,
|
|
585
596
|
fixed: S
|
|
586
|
-
}) => [!S || S === f.fixed ? (d(),
|
|
597
|
+
}) => [!S || S === f.fixed ? (d(), m("div", {
|
|
587
598
|
key: 0,
|
|
588
599
|
ref: (x) => it(x, `valid_${i}_${n}`),
|
|
589
600
|
class: "h-full w-full"
|
|
590
|
-
}, [O(t(
|
|
601
|
+
}, [O(t(Ft), {
|
|
591
602
|
placement: a.value.toolTipErrorPlacement,
|
|
592
603
|
"err-msg": s,
|
|
593
604
|
"ref-dom": ce.value[`valid_${i}_${n}`]
|
|
@@ -608,9 +619,9 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
608
619
|
"class-name": `${t($)}-vxe-pager`,
|
|
609
620
|
onPageChange: t(He)
|
|
610
621
|
}, {
|
|
611
|
-
left: u(() => [
|
|
622
|
+
left: u(() => [g(e.$slots, "pager_left", j(J({
|
|
612
623
|
selectedKeys: t(Q)
|
|
613
|
-
}))),
|
|
624
|
+
}))), g(e.$slots, "buttom_left")]),
|
|
614
625
|
_: 3
|
|
615
626
|
}, 8, ["current-page", "page-size", "page-sizes", "layouts", "total", "size", "class-name", "onPageChange"])];
|
|
616
627
|
}),
|
|
@@ -619,5 +630,5 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
619
630
|
}
|
|
620
631
|
});
|
|
621
632
|
export {
|
|
622
|
-
|
|
633
|
+
or as default
|
|
623
634
|
};
|