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