@dazhicheng/ui 1.5.219 → 1.5.221
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.
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ae, useSlots as Ee, ref as Oe, computed as f, toValue as E, getCurrentInstance as _e, onMounted as q, watch as O, onUnmounted as ke, createElementBlock as G, openBlock as J, normalizeClass as V, unref as s, createCommentVNode as Re, createElementVNode as $e, createVNode as _, renderSlot as g, createSlots as Q, renderList as X, withCtx as M, normalizeProps as Y, guardReactiveProps as Z, mergeProps as ee, toHandlers as Be, nextTick as Ve } from "vue";
|
|
2
2
|
import "../../tt-button/index.js";
|
|
3
3
|
import "../../tt-checkbox/index.js";
|
|
4
4
|
import "../../tt-empty/index.js";
|
|
5
|
-
import { kebabToCamelCase as
|
|
5
|
+
import { kebabToCamelCase as Le } from "../../../packages/utils/src/string.js";
|
|
6
6
|
import "axios";
|
|
7
7
|
import "element-plus";
|
|
8
|
-
import { isFunction as
|
|
9
|
-
import { extractResourceFromApi as
|
|
10
|
-
import
|
|
8
|
+
import { isFunction as xe } from "../../../packages/utils/src/is.js";
|
|
9
|
+
import { extractResourceFromApi as Ke, generateTestId as k } from "../../../packages/utils/src/testid-helper.js";
|
|
10
|
+
import je from "xe-utils";
|
|
11
11
|
import "dayjs";
|
|
12
12
|
import "dayjs/plugin/utc";
|
|
13
13
|
import "dayjs/plugin/timezone";
|
|
14
|
-
import { mergeWithArrayOverride as
|
|
14
|
+
import { mergeWithArrayOverride as ze } from "../../../packages/utils/src/merge.js";
|
|
15
15
|
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
16
16
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
17
17
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
18
18
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
19
19
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
20
|
-
import { omit as
|
|
20
|
+
import { omit as De } from "lodash-es";
|
|
21
21
|
import "../../tt-select/index.js";
|
|
22
22
|
import "../../tt-radio-group/index.js";
|
|
23
23
|
import "../../tt-panel-select/index.js";
|
|
24
24
|
import "../../tt-upload/index.js";
|
|
25
25
|
import "../../tt-api-component/index.js";
|
|
26
26
|
import "vee-validate";
|
|
27
|
-
import { useForm as
|
|
27
|
+
import { useForm as Ne } from "../../tt-form/src/useForm.js";
|
|
28
28
|
import "zod";
|
|
29
29
|
import "@vee-validate/zod";
|
|
30
|
-
import { useStore as
|
|
30
|
+
import { useStore as He } from "@tanstack/vue-store";
|
|
31
31
|
import "es-toolkit/compat";
|
|
32
32
|
import "../../tt-form/src/shared/zod-defaults.js";
|
|
33
33
|
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
|
-
import { useDesign as
|
|
36
|
-
import { useDebounceFn as
|
|
35
|
+
import { useDesign as We } from "../../../packages/hooks/src/useDesign.js";
|
|
36
|
+
import { useDebounceFn as L } from "../../../packages/hooks/src/useDebounce.js";
|
|
37
37
|
import "../../tt-icon/index.js";
|
|
38
38
|
import "../../tt-form/src/components/Slot.js";
|
|
39
39
|
import "../../tt-form-item-error-tooltip/index.js";
|
|
@@ -48,7 +48,7 @@ import "../../tt-drawer/index.js";
|
|
|
48
48
|
import "../../tt-modal/index.js";
|
|
49
49
|
import "../../tt-text/index.js";
|
|
50
50
|
import "../../../directives/disabled-tip/index.js";
|
|
51
|
-
import { GlobalConfig as
|
|
51
|
+
import { GlobalConfig as Ue } from "../../../hooks/useSetup.js";
|
|
52
52
|
import "../../tt-log/index.js";
|
|
53
53
|
/* empty css */
|
|
54
54
|
/* empty css */
|
|
@@ -59,24 +59,24 @@ import "../../tt-loading/index.js";
|
|
|
59
59
|
import "../index.js";
|
|
60
60
|
import "vue-router";
|
|
61
61
|
import "numeral";
|
|
62
|
-
import
|
|
62
|
+
import qe from "./components/TableColumnModal.vue2.js";
|
|
63
63
|
/* empty css */
|
|
64
|
-
import { provideFormActionTestIds as
|
|
65
|
-
import
|
|
66
|
-
import { basicTableEmits as
|
|
67
|
-
import
|
|
64
|
+
import { provideFormActionTestIds as Ge } from "./utils/context.js";
|
|
65
|
+
import Je from "./components/TableToobalTools.vue.js";
|
|
66
|
+
import { basicTableEmits as te } from "./emits.js";
|
|
67
|
+
import Qe from "./Table.vue.js";
|
|
68
68
|
/* empty css */
|
|
69
|
-
import { createTableFormContext as
|
|
70
|
-
import { useTableForm as
|
|
71
|
-
import { useCustomColumns as
|
|
72
|
-
import { useTableSlot as
|
|
73
|
-
import { tableFormProps as
|
|
74
|
-
import { getDefaultState as
|
|
75
|
-
import { TableFormApi as
|
|
76
|
-
const
|
|
69
|
+
import { createTableFormContext as Xe } from "./hooks/useTableContext.js";
|
|
70
|
+
import { useTableForm as Ye } from "./hooks/useTableForm.js";
|
|
71
|
+
import { useCustomColumns as Ze } from "./hooks/useCustomColumns.js";
|
|
72
|
+
import { useTableSlot as et } from "./hooks/useTableSlot.js";
|
|
73
|
+
import { tableFormProps as tt } from "./props.js";
|
|
74
|
+
import { getDefaultState as ot } from "./utils/table-api.js";
|
|
75
|
+
import { TableFormApi as rt } from "./utils/table-form-api.js";
|
|
76
|
+
const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
|
|
77
77
|
name: "TtTableForm",
|
|
78
78
|
__name: "TableForm",
|
|
79
|
-
props:
|
|
79
|
+
props: tt,
|
|
80
80
|
emits: [
|
|
81
81
|
"register",
|
|
82
82
|
"update:table-data",
|
|
@@ -85,101 +85,101 @@ const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
|
85
85
|
"export",
|
|
86
86
|
"import",
|
|
87
87
|
"set-columns",
|
|
88
|
-
...
|
|
88
|
+
...te
|
|
89
89
|
],
|
|
90
|
-
setup(
|
|
91
|
-
var
|
|
92
|
-
const p =
|
|
90
|
+
setup(oe, { expose: re, emit: se }) {
|
|
91
|
+
var H, W, U;
|
|
92
|
+
const p = oe, S = se, x = Ee(), { prefixCls: R } = We("table-form"), T = Oe();
|
|
93
93
|
let t = p.tableFormApi;
|
|
94
94
|
if (!t) {
|
|
95
|
-
t = new
|
|
95
|
+
t = new rt(p);
|
|
96
96
|
const e = t;
|
|
97
|
-
e.useStore = (o) =>
|
|
97
|
+
e.useStore = (o) => He(t.store, o), t = e;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const $ = (H = t == null ? void 0 : t.useStore) == null ? void 0 : H.call(t), C = f(() => {
|
|
100
100
|
var o;
|
|
101
101
|
if (p.testId) return p.testId;
|
|
102
|
-
const e = (o =
|
|
103
|
-
return e != null && e.api ?
|
|
104
|
-
}),
|
|
105
|
-
submit:
|
|
106
|
-
reset:
|
|
102
|
+
const e = (o = E($)) == null ? void 0 : o.table;
|
|
103
|
+
return e != null && e.api ? Ke(e.api) : "table";
|
|
104
|
+
}), ae = f(() => k(C.value, "tableform")), ie = f(() => k(C.value, "search-form-header")), le = f(() => k(C.value, "search-btn-query")), ne = f(() => k(C.value, "search-btn-reset")), me = f(() => ({
|
|
105
|
+
submit: le.value,
|
|
106
|
+
reset: ne.value
|
|
107
107
|
}));
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
tableData:
|
|
111
|
-
getFormProps:
|
|
108
|
+
Ge(me);
|
|
109
|
+
const K = {}, u = _e(), v = f(() => E($)), { getFormSlotKeysFunc: pe, getTableSlotKeysFunc: ue, replaceTableSlotKey: ce, replaceFormSlotKey: de } = et(), {
|
|
110
|
+
tableData: be,
|
|
111
|
+
getFormProps: B,
|
|
112
112
|
getTableProps: c,
|
|
113
113
|
getTableToolProps: fe,
|
|
114
|
-
handleSearchInfoChange:
|
|
115
|
-
} =
|
|
116
|
-
|
|
114
|
+
handleSearchInfoChange: j
|
|
115
|
+
} = Ye(
|
|
116
|
+
v,
|
|
117
117
|
t.tableApi.reload,
|
|
118
118
|
t.tableApi.getLoading,
|
|
119
119
|
t.tableApi.getPagination,
|
|
120
|
-
|
|
121
|
-
), { run:
|
|
120
|
+
S
|
|
121
|
+
), { run: ge } = L(
|
|
122
122
|
async () => {
|
|
123
123
|
const e = await r.getValues();
|
|
124
124
|
await r.resetForm(e, { force: !0 });
|
|
125
125
|
const o = await r.getValues();
|
|
126
|
-
r.setLatestSubmissionValues(o), (await (r == null ? void 0 : r.validate())).valid &&
|
|
126
|
+
r.setLatestSubmissionValues(o), (await (r == null ? void 0 : r.validate())).valid && j(o);
|
|
127
127
|
},
|
|
128
128
|
200,
|
|
129
129
|
{ leading: !0 }
|
|
130
|
-
), { run:
|
|
130
|
+
), { run: he } = L(
|
|
131
131
|
async (e) => {
|
|
132
|
-
await t.grid.clearFilter(), await
|
|
132
|
+
await t.grid.clearFilter(), await j(e);
|
|
133
133
|
},
|
|
134
134
|
200,
|
|
135
135
|
{ leading: !0 }
|
|
136
|
-
), [
|
|
137
|
-
...
|
|
138
|
-
handleSubmit:
|
|
139
|
-
handleReset:
|
|
136
|
+
), [Ce, r] = Ne({
|
|
137
|
+
...E(B),
|
|
138
|
+
handleSubmit: he,
|
|
139
|
+
handleReset: ge,
|
|
140
140
|
submitOnEnter: !0,
|
|
141
141
|
submitButtonOptions: {
|
|
142
|
-
content: (
|
|
142
|
+
content: (W = Ue.form) == null ? void 0 : W.submitTitle
|
|
143
143
|
},
|
|
144
144
|
showCollapseButton: !0,
|
|
145
145
|
collapsed: !0,
|
|
146
146
|
collapseTriggerResize: !0
|
|
147
|
-
}), { initCustomSetting:
|
|
147
|
+
}), { initCustomSetting: ve, saveColumns: Se } = Ze({
|
|
148
148
|
getTableProps: c,
|
|
149
149
|
tableMethods: t.tableApi,
|
|
150
|
-
getProps:
|
|
151
|
-
}),
|
|
152
|
-
await
|
|
150
|
+
getProps: v
|
|
151
|
+
}), z = async () => {
|
|
152
|
+
await Ve(), t.tableApi && t.tableApi.redoHeight();
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
const o =
|
|
156
|
-
|
|
154
|
+
te.forEach((e) => {
|
|
155
|
+
const o = je.camelCase(e);
|
|
156
|
+
K[o] = (...a) => S(e, ...a);
|
|
157
157
|
});
|
|
158
|
-
const
|
|
159
|
-
...
|
|
158
|
+
const Te = {
|
|
159
|
+
...K
|
|
160
160
|
};
|
|
161
|
-
function
|
|
162
|
-
t.setState((o) => o.table ? (o.table.getSyncSlotComponent = p.table.getSyncSlotComponent,
|
|
161
|
+
function we(e) {
|
|
162
|
+
t.setState((o) => o.table ? (o.table.getSyncSlotComponent = p.table.getSyncSlotComponent, ze(
|
|
163
163
|
{
|
|
164
164
|
...e,
|
|
165
165
|
table: {
|
|
166
|
-
...
|
|
166
|
+
...ot(),
|
|
167
167
|
...e.table
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
o
|
|
171
171
|
)) : {}), e.table && t.tableApi.setState(e.table), e.form && (r == null || r.setState(e.form));
|
|
172
172
|
}
|
|
173
|
-
const { run:
|
|
173
|
+
const { run: ye } = L(
|
|
174
174
|
async (e) => {
|
|
175
|
-
r.isMounted &&
|
|
175
|
+
r.isMounted && s(v).useSearchForm ? r.validate().then(async (o) => {
|
|
176
176
|
if (o.valid) {
|
|
177
|
-
const
|
|
177
|
+
const a = await r.getValues();
|
|
178
178
|
await t.tableApi.reload({
|
|
179
179
|
...e,
|
|
180
180
|
searchInfo: {
|
|
181
181
|
...e == null ? void 0 : e.searchInfo,
|
|
182
|
-
...
|
|
182
|
+
...a
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
}
|
|
@@ -192,58 +192,62 @@ const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
|
192
192
|
},
|
|
193
193
|
200,
|
|
194
194
|
{ leading: !0 }
|
|
195
|
-
),
|
|
195
|
+
), A = {
|
|
196
196
|
tableMethods: t.tableApi,
|
|
197
197
|
formMethods: r,
|
|
198
198
|
setTableProps: t.tableApi.setState,
|
|
199
199
|
setFormProps: r.setState,
|
|
200
|
-
setProps:
|
|
201
|
-
reload:
|
|
202
|
-
selectedKeys:
|
|
200
|
+
setProps: we,
|
|
201
|
+
reload: ye,
|
|
202
|
+
selectedKeys: f(() => E(t.tableApi.selectedKeys))
|
|
203
203
|
};
|
|
204
|
-
async function
|
|
205
|
-
const { tableRefreshBefore: e } =
|
|
206
|
-
e &&
|
|
204
|
+
async function Fe() {
|
|
205
|
+
const { tableRefreshBefore: e } = v.value;
|
|
206
|
+
e && xe(e) && await e(), A.reload();
|
|
207
207
|
}
|
|
208
|
-
async function
|
|
208
|
+
async function Pe(e) {
|
|
209
209
|
var d, m;
|
|
210
|
-
const o = ((m = (d =
|
|
210
|
+
const o = ((m = (d = v.value) == null ? void 0 : d.table) == null ? void 0 : m.columns) || [], a = new Map(o.map((n) => [n.field, n])), l = e.checkedModel.map((n) => a.get(n)).filter(Boolean);
|
|
211
211
|
if (e.isExport) {
|
|
212
|
-
|
|
212
|
+
S("export", e.checkedModel, e.modalApi);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
215
|
e.modalApi.setModalProps({
|
|
216
216
|
confirmLoading: !0
|
|
217
217
|
}), c.value.useHttpCache && await Se(JSON.stringify(e.checkedModel)), t.tableApi.setTableColumns(l), e.modalApi.setModalProps({
|
|
218
218
|
confirmLoading: !1
|
|
219
|
-
}), e.modalApi.closeModal(),
|
|
219
|
+
}), e.modalApi.closeModal(), S("set-columns", l);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
var m, n, h,
|
|
223
|
-
const { notSetColumnField: o, columns:
|
|
224
|
-
(P =
|
|
225
|
-
columns:
|
|
221
|
+
function D(e = !1) {
|
|
222
|
+
var m, n, h, b, w, y, F, P, I;
|
|
223
|
+
const { notSetColumnField: o, columns: a } = s(c), l = (b = (h = (n = ((m = t.tableApi.getTableInstance()) == null ? void 0 : m.getTableColumn()) || []) == null ? void 0 : n.visibleColumn) == null ? void 0 : h.map((i) => i.field)) == null ? void 0 : b.filter(Boolean), d = ((y = (w = s(a)) == null ? void 0 : w.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : y.map((i) => i.field)) || [];
|
|
224
|
+
(P = T.value) == null || P.openModal({
|
|
225
|
+
columns: (((F = t.tableApi) == null ? void 0 : F.getTableColumns()) || []).filter(
|
|
226
|
+
(i) => i.visible !== !1
|
|
227
|
+
),
|
|
226
228
|
displayFields: e ? d : l,
|
|
227
229
|
disabledColumnField: o || []
|
|
228
|
-
}), (I =
|
|
230
|
+
}), (I = T.value) == null || I.setModalProps({
|
|
229
231
|
title: "列设置"
|
|
230
232
|
});
|
|
231
233
|
}
|
|
232
|
-
function
|
|
233
|
-
var m, n, h,
|
|
234
|
-
const { notSetColumnField: o, columns:
|
|
235
|
-
(P =
|
|
236
|
-
columns:
|
|
234
|
+
function N(e = !1) {
|
|
235
|
+
var m, n, h, b, w, y, F, P, I;
|
|
236
|
+
const { notSetColumnField: o, columns: a } = s(c), l = (b = (h = (n = ((m = t.tableApi.getTableInstance()) == null ? void 0 : m.getTableColumn()) || []) == null ? void 0 : n.visibleColumn) == null ? void 0 : h.map((i) => i.field)) == null ? void 0 : b.filter(Boolean), d = ((y = (w = s(a)) == null ? void 0 : w.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : y.map((i) => i.field)) || [];
|
|
237
|
+
(P = T.value) == null || P.openModal({
|
|
238
|
+
columns: (((F = t.tableApi) == null ? void 0 : F.getTableColumns()) || []).filter(
|
|
239
|
+
(i) => i.visible !== !1
|
|
240
|
+
),
|
|
237
241
|
displayFields: e ? d : l,
|
|
238
242
|
disabledColumnField: o || [],
|
|
239
243
|
isExport: !0
|
|
240
|
-
}), (I =
|
|
244
|
+
}), (I = T.value) == null || I.setModalProps({
|
|
241
245
|
title: "自定义导出"
|
|
242
246
|
});
|
|
243
247
|
}
|
|
244
|
-
|
|
245
|
-
u &&
|
|
246
|
-
|
|
248
|
+
Xe({ formInstance: r }), q(() => {
|
|
249
|
+
u && S("register", A, u == null ? void 0 : u.uid), setTimeout(() => {
|
|
250
|
+
ve();
|
|
247
251
|
}, 16);
|
|
248
252
|
}), O(
|
|
249
253
|
() => t.tableApi.getLoading.value,
|
|
@@ -252,9 +256,9 @@ const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
|
252
256
|
submitButtonOptions: { loading: t.tableApi.getLoading.value }
|
|
253
257
|
});
|
|
254
258
|
},
|
|
255
|
-
{ immediate: (
|
|
259
|
+
{ immediate: (U = $.value.table) == null ? void 0 : U.immediate }
|
|
256
260
|
), O(
|
|
257
|
-
() =>
|
|
261
|
+
() => B.value,
|
|
258
262
|
(e) => {
|
|
259
263
|
r && (r == null || r.setState(e));
|
|
260
264
|
},
|
|
@@ -266,79 +270,79 @@ const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
|
266
270
|
t != null && t.tableApi && ((o = t == null ? void 0 : t.tableApi) == null || o.setState(e));
|
|
267
271
|
},
|
|
268
272
|
{ deep: !0 }
|
|
269
|
-
), window.addEventListener("resize",
|
|
270
|
-
t == null || t.mount(
|
|
273
|
+
), window.addEventListener("resize", z), q(() => {
|
|
274
|
+
t == null || t.mount(A, r), r == null || r.setState(B.value);
|
|
271
275
|
});
|
|
272
|
-
function
|
|
276
|
+
function Ie(e) {
|
|
273
277
|
return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
|
|
274
278
|
}
|
|
275
|
-
function
|
|
276
|
-
return Object.fromEntries(Object.keys(e).map((
|
|
279
|
+
function Me(e, o) {
|
|
280
|
+
return Object.fromEntries(Object.keys(e).map((a) => [a, o[a]]));
|
|
277
281
|
}
|
|
278
282
|
return O(
|
|
279
|
-
() =>
|
|
283
|
+
() => De(p, ["tableFormApi"]),
|
|
280
284
|
() => {
|
|
281
285
|
var m;
|
|
282
|
-
const e = {}, o = ((m = u == null ? void 0 : u.vnode) == null ? void 0 : m.props) || {},
|
|
286
|
+
const e = {}, o = ((m = u == null ? void 0 : u.vnode) == null ? void 0 : m.props) || {}, a = new Set(Object.keys(p));
|
|
283
287
|
for (const [n, h] of Object.entries(o)) {
|
|
284
|
-
const
|
|
285
|
-
|
|
288
|
+
const b = Le(n);
|
|
289
|
+
a.has(b) && (e[b] = h);
|
|
286
290
|
}
|
|
287
|
-
const l =
|
|
291
|
+
const l = Ie(e), d = Me(l, p);
|
|
288
292
|
t.setState(d);
|
|
289
293
|
},
|
|
290
294
|
{ deep: !0 }
|
|
291
|
-
),
|
|
292
|
-
t == null || t.unmount(), window.removeEventListener("resize",
|
|
293
|
-
}),
|
|
294
|
-
class:
|
|
295
|
-
"data-testid":
|
|
295
|
+
), ke(() => {
|
|
296
|
+
t == null || t.unmount(), window.removeEventListener("resize", z);
|
|
297
|
+
}), re({ ...A, instance: u }), (e, o) => (J(), G("div", {
|
|
298
|
+
class: V(s(R)),
|
|
299
|
+
"data-testid": ae.value
|
|
296
300
|
}, [
|
|
297
|
-
|
|
301
|
+
v.value.useSearchForm ? (J(), G("div", {
|
|
298
302
|
key: 0,
|
|
299
|
-
class:
|
|
300
|
-
"data-testid":
|
|
303
|
+
class: V(`${s(R)}-header`),
|
|
304
|
+
"data-testid": ie.value
|
|
301
305
|
}, [
|
|
302
|
-
|
|
306
|
+
_(s(Ce), {
|
|
303
307
|
"test-id": `${C.value}-search-form`
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
name:
|
|
308
|
+
}, Q({ _: 2 }, [
|
|
309
|
+
X(s(pe)(s(x)), (a) => ({
|
|
310
|
+
name: s(de)(a),
|
|
307
311
|
fn: M((l) => [
|
|
308
|
-
g(e.$slots,
|
|
312
|
+
g(e.$slots, a, Y(Z(l || {})))
|
|
309
313
|
])
|
|
310
314
|
}))
|
|
311
315
|
]), 1032, ["test-id"]),
|
|
312
316
|
g(e.$slots, "header-down")
|
|
313
|
-
], 10,
|
|
314
|
-
|
|
315
|
-
class:
|
|
316
|
-
[`${
|
|
317
|
+
], 10, at)) : Re("", !0),
|
|
318
|
+
$e("div", {
|
|
319
|
+
class: V({
|
|
320
|
+
[`${s(R)}-wrapper`]: !0,
|
|
317
321
|
"pt-(--tt-base-padding)!": !0,
|
|
318
|
-
"pb-(--tt-base-padding)!": !
|
|
322
|
+
"pb-(--tt-base-padding)!": !s(c).showPager
|
|
319
323
|
})
|
|
320
324
|
}, [
|
|
321
325
|
g(e.$slots, "table-top"),
|
|
322
|
-
|
|
323
|
-
data:
|
|
326
|
+
_(Qe, ee(s(c), {
|
|
327
|
+
data: s(be),
|
|
324
328
|
"table-row-id": e.tableRowId,
|
|
325
329
|
"table-id": C.value,
|
|
326
|
-
"form-api":
|
|
327
|
-
"table-api":
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
name:
|
|
330
|
+
"form-api": s(r),
|
|
331
|
+
"table-api": s(t).tableApi
|
|
332
|
+
}, Be(Te)), Q({ _: 2 }, [
|
|
333
|
+
X(s(ue)(s(x)), (a) => ({
|
|
334
|
+
name: s(ce)(a),
|
|
331
335
|
fn: M((l) => [
|
|
332
|
-
g(e.$slots,
|
|
336
|
+
g(e.$slots, a, Y(Z(l || {})))
|
|
333
337
|
])
|
|
334
338
|
})),
|
|
335
|
-
|
|
339
|
+
s(c).showToolbar ? {
|
|
336
340
|
name: "toolbar_tools",
|
|
337
341
|
fn: M(() => [
|
|
338
|
-
|
|
339
|
-
onOnRefresh:
|
|
340
|
-
onOnExport:
|
|
341
|
-
onOnColumnsSetting:
|
|
342
|
+
_(Je, ee(s(fe), {
|
|
343
|
+
onOnRefresh: Fe,
|
|
344
|
+
onOnExport: N,
|
|
345
|
+
onOnColumnsSetting: D
|
|
342
346
|
}), {
|
|
343
347
|
"toolbar-left": M(() => [
|
|
344
348
|
g(e.$slots, "t-toolbar_tools-left")
|
|
@@ -355,16 +359,16 @@ const rt = ["data-testid"], st = ["data-testid"], Mo = /* @__PURE__ */ Me({
|
|
|
355
359
|
]), 1040, ["data", "table-row-id", "table-id", "form-api", "table-api"]),
|
|
356
360
|
g(e.$slots, "table-bottom")
|
|
357
361
|
], 2),
|
|
358
|
-
|
|
362
|
+
_(qe, {
|
|
359
363
|
ref_key: "tableColumnModalRef",
|
|
360
|
-
ref:
|
|
361
|
-
"open-export":
|
|
362
|
-
"open-column":
|
|
363
|
-
onOnSubmit:
|
|
364
|
+
ref: T,
|
|
365
|
+
"open-export": N,
|
|
366
|
+
"open-column": D,
|
|
367
|
+
onOnSubmit: Pe
|
|
364
368
|
}, null, 512)
|
|
365
|
-
], 10,
|
|
369
|
+
], 10, st));
|
|
366
370
|
}
|
|
367
371
|
});
|
|
368
372
|
export {
|
|
369
|
-
|
|
373
|
+
Ao as default
|
|
370
374
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dazhicheng/ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.221",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"vue-router": "^5.0.2",
|
|
68
68
|
"vxe-pc-ui": "^4.12.36",
|
|
69
69
|
"vxe-table": "^4.17.48",
|
|
70
|
-
"@dazhicheng/
|
|
71
|
-
"@dazhicheng/
|
|
70
|
+
"@dazhicheng/hooks": "1.4.44",
|
|
71
|
+
"@dazhicheng/utils": "1.3.41"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"dist"
|