@dazhicheng/ui 1.5.223 → 1.5.225

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