@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.
@@ -1,13 +1,13 @@
1
- import { defineComponent as Me, useSlots as Ee, ref as Oe, computed as g, toValue as T, getCurrentInstance as $e, onMounted as q, watch as O, onUnmounted as ke, createElementBlock as G, openBlock as J, normalizeClass as V, unref as a, createCommentVNode as Ae, createElementVNode as Re, createVNode as $, renderSlot as p, createSlots as L, renderList as Q, withCtx as v, normalizeProps as X, guardReactiveProps as Y, mergeProps as Z, toHandlers as _e, nextTick as Be } from "vue";
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 Ve } from "../../../packages/utils/src/string.js";
5
+ import { kebabToCamelCase as Ke } from "../../../packages/utils/src/string.js";
6
6
  import "axios";
7
7
  import "element-plus";
8
- import { isFunction as Le } 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 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 ze } from "lodash-es";
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 De } from "../../tt-form/src/useForm.js";
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 Ne } from "@tanstack/vue-store";
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 He } from "../../../packages/hooks/src/useDesign.js";
36
- import { useDebounceFn as K } from "../../../packages/hooks/src/useDebounce.js";
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 We } from "../../../hooks/useSetup.js";
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 Ue from "./components/TableColumnModal.vue2.js";
63
+ import Ge from "./components/TableColumnModal.vue2.js";
64
64
  /* empty css */
65
- import { provideFormActionTestIds as qe } from "./utils/context.js";
66
- import Ge from "./components/TableToobalTools.vue.js";
67
- import { basicTableEmits as ee } from "./emits.js";
68
- import Je from "./Table.vue.js";
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 Qe } from "./hooks/useTableContext.js";
71
- import { useTableForm as Xe } from "./hooks/useTableForm.js";
72
- import { useCustomColumns as Ye } from "./hooks/useCustomColumns.js";
73
- import { useTableSlot as Ze } from "./hooks/useTableSlot.js";
74
- import { tableFormProps as et } from "./props.js";
75
- import { getDefaultState as tt } from "./utils/table-api.js";
76
- import { TableFormApi as ot } from "./utils/table-form-api.js";
77
- const rt = ["data-testid"], st = ["data-testid"], Eo = /* @__PURE__ */ Me({
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: et,
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
- ...ee
89
+ ...oe
90
90
  ],
91
- setup(te, { expose: oe, emit: re }) {
92
- var H, W, U;
93
- const u = te, w = re, A = Ee(), { prefixCls: R } = He("table-form"), y = Oe();
94
- let t = u.tableFormApi;
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 ot(u);
96
+ t = new st(m);
97
97
  const e = t;
98
- e.useStore = (o) => Ne(t.store, o), t = e;
98
+ e.useStore = (o) => We(t.store, o), t = e;
99
99
  }
100
- const _ = (H = t == null ? void 0 : t.useStore) == null ? void 0 : H.call(t), C = g(() => {
100
+ const k = (D = t == null ? void 0 : t.useStore) == null ? void 0 : D.call(t), g = c(() => {
101
101
  var o;
102
- if (u.testId) return u.testId;
103
- const e = (o = T(_)) == null ? void 0 : o.table;
104
- return e != null && e.api ? Ke(e.api) : "table";
105
- }), se = g(() => k(C.value, "tableform")), ae = g(() => k(C.value, "search-form-header")), ie = g(() => k(C.value, "search-btn-query")), le = g(() => k(C.value, "search-btn-reset")), ne = g(() => ({
106
- submit: ie.value,
107
- reset: le.value
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
- qe(ne);
110
- const j = {}, c = $e(), S = g(() => T(_)), { getFormSlotKeysFunc: me, getTableSlotKeysFunc: pe, replaceTableSlotKey: ue, replaceFormSlotKey: ce } = Ze(), {
111
- tableData: de,
112
- getFormProps: B,
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: fe,
115
- handleSearchInfoChange: x
116
- } = Xe(
117
- S,
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
- w
122
- ), { run: be } = K(
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 && x(o);
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: ge } = K(
131
+ ), { run: Se } = _(
132
132
  async (e) => {
133
- await t.grid.clearFilter(), await x(e);
133
+ await t.grid.clearFilter(), await V(e);
134
134
  },
135
135
  200,
136
136
  { leading: !0 }
137
- ), [he, r] = De({
138
- ...T(B),
139
- handleSubmit: ge,
140
- handleReset: be,
137
+ ), [Ce, r] = He({
138
+ ...v(R),
139
+ handleSubmit: Se,
140
+ handleReset: he,
141
141
  submitOnEnter: !0,
142
142
  submitButtonOptions: {
143
- content: (W = We.form) == null ? void 0 : W.submitTitle
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: ve, saveColumns: Ce } = Ye({
149
+ }), { initCustomSetting: Te, saveColumns: ve } = et({
150
150
  getTableProps: d,
151
151
  tableMethods: t.tableApi,
152
- getProps: S
153
- }), z = async () => {
154
- await Be(), t.tableApi && t.tableApi.redoHeight();
152
+ getProps: h
153
+ }), L = async () => {
154
+ await Le(), t.tableApi && t.tableApi.redoHeight();
155
155
  };
156
- ee.forEach((e) => {
157
- const o = je.camelCase(e);
158
- j[o] = (...s) => w(e, ...s);
156
+ oe.forEach((e) => {
157
+ const o = De.camelCase(e);
158
+ B[o] = (...a) => C(e, ...a);
159
159
  });
160
- const Se = {
161
- ...j
160
+ const we = {
161
+ ...B
162
162
  };
163
- function Te(e) {
164
- t.setState((o) => o.table ? (o.table.getSyncSlotComponent = u.table.getSyncSlotComponent, xe(
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
- ...tt(),
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: we } = K(
175
+ const { run: Fe } = _(
176
176
  async (e) => {
177
- r.isMounted && a(S).useSearchForm ? r.validate().then(async (o) => {
177
+ r.isMounted && s(h).useSearchForm ? r.validate().then(async (o) => {
178
178
  if (o.valid) {
179
- const s = await r.getValues();
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
- ...s
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
- ), E = {
197
+ ), w = {
198
198
  tableMethods: t.tableApi,
199
199
  formMethods: r,
200
200
  setTableProps: t.tableApi.setState,
201
201
  setFormProps: r.setState,
202
- setProps: Te,
203
- reload: we,
204
- selectedKeys: g(() => T(t.tableApi.selectedKeys))
202
+ setProps: ye,
203
+ reload: Fe,
204
+ selectedKeys: c(() => v(t.tableApi.selectedKeys))
205
205
  };
206
- async function ye() {
207
- const { tableRefreshBefore: e } = S.value;
208
- e && Le(e) && await e(), E.reload();
206
+ async function Pe() {
207
+ const { tableRefreshBefore: e } = h.value;
208
+ e && je(e) && await e(), w.reload();
209
209
  }
210
- async function Fe(e) {
211
- var f, m;
212
- const o = ((m = (f = S.value) == null ? void 0 : f.table) == null ? void 0 : m.columns) || [], s = new Map(o.map((n) => [n.field, n])), l = e.checkedModel.map((n) => s.get(n)).filter(Boolean);
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
- w("export", e.checkedModel, e.modalApi);
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 Ce(JSON.stringify(e.checkedModel)), t.tableApi.setTableColumns(l), e.modalApi.setModalProps({
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(), w("set-columns", l);
221
+ }), e.modalApi.closeModal(), C("set-columns", i);
222
222
  }
223
- function D(e = !1) {
224
- var m, n, h, b, F, P, I, M;
225
- const { notSetColumnField: o, columns: s } = a(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 = ((P = (F = a(s)) == null ? void 0 : F.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : P.map((i) => i.field)) || [];
226
- (I = y.value) == null || I.openModal({
227
- columns: (T(s) || []).filter((i) => i.visible !== !1),
228
- displayFields: e ? f : l,
229
- disabledColumnField: o || []
230
- }), (M = y.value) == null || M.setModalProps({
231
- title: "列设置"
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 N(e = !1) {
235
- var m, n, h, b, F, P, I, M;
236
- const { notSetColumnField: o, columns: s } = a(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 = ((P = (F = a(s)) == null ? void 0 : F.filter((i) => i.visible === !0 || i.visible === void 0)) == null ? void 0 : P.map((i) => i.field)) || [];
237
- (I = y.value) == null || I.openModal({
238
- columns: (T(s) || []).filter((i) => i.visible !== !1),
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
- Qe({ formInstance: r }), q(() => {
247
- c && w("register", E, c == null ? void 0 : c.uid), setTimeout(() => {
248
- ve();
241
+ Ye({ formInstance: r }), J(() => {
242
+ p && C("register", w, p == null ? void 0 : p.uid), setTimeout(() => {
243
+ Te();
249
244
  }, 16);
250
- }), O(
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: (U = _.value.table) == null ? void 0 : U.immediate }
258
- ), O(
259
- () => B.value,
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
- ), O(
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", z), q(() => {
272
- t == null || t.mount(E, r), r == null || r.setState(B.value);
266
+ ), window.addEventListener("resize", L), J(() => {
267
+ t == null || t.mount(w, r), r == null || r.setState(R.value);
273
268
  });
274
- function Pe(e) {
269
+ function Me(e) {
275
270
  return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
276
271
  }
277
- function Ie(e, o) {
278
- return Object.fromEntries(Object.keys(e).map((s) => [s, o[s]]));
272
+ function Oe(e, o) {
273
+ return Object.fromEntries(Object.keys(e).map((a) => [a, o[a]]));
279
274
  }
280
- return O(
281
- () => ze(u, ["tableFormApi"]),
275
+ return F(
276
+ () => Ne(m, ["tableFormApi"]),
282
277
  () => {
283
- var m;
284
- const e = {}, o = ((m = c == null ? void 0 : c.vnode) == null ? void 0 : m.props) || {}, s = new Set(Object.keys(u));
285
- for (const [n, h] of Object.entries(o)) {
286
- const b = Ve(n);
287
- s.has(b) && (e[b] = h);
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 l = Pe(e), f = Ie(l, u);
290
- t.setState(f);
284
+ const i = Me(e), S = Oe(i, m);
285
+ t.setState(S);
291
286
  },
292
287
  { deep: !0 }
293
- ), ke(() => {
294
- t == null || t.unmount(), window.removeEventListener("resize", z);
295
- }), oe({ ...E, instance: c }), (e, o) => (J(), G("div", {
296
- class: V(a(R)),
297
- "data-testid": se.value
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
- S.value.useSearchForm ? (J(), G("div", {
294
+ h.value.useSearchForm ? (X(), Q("div", {
300
295
  key: 0,
301
- class: V(`${a(R)}-header`),
302
- "data-testid": ae.value
296
+ class: A(`${s(O)}-header`),
297
+ "data-testid": ne.value
303
298
  }, [
304
- $(a(he), {
305
- "test-id": `${C.value}-search-form`
306
- }, L({ _: 2 }, [
307
- Q(a(me)(a(A)), (s) => ({
308
- name: a(ce)(s),
309
- fn: v((l) => [
310
- p(e.$slots, s, X(Y(l || {})))
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
- p(e.$slots, "header-down")
315
- ], 10, st)) : Ae("", !0),
316
- Re("div", {
317
- class: V({
318
- [`${a(R)}-wrapper`]: !0,
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)!": !a(d).showPager
315
+ "pb-(--tt-base-padding)!": !s(d).showPager
321
316
  })
322
317
  }, [
323
- p(e.$slots, "table-top"),
324
- $(Je, Z(a(d), {
325
- data: a(de),
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": C.value,
328
- "form-api": a(r),
329
- "table-api": a(t).tableApi
330
- }, _e(Se)), L({ _: 2 }, [
331
- Q(a(pe)(a(A)), (s) => ({
332
- name: a(ue)(s),
333
- fn: v((l) => [
334
- p(e.$slots, s, X(Y(l || {})))
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
- a(d).showToolbar ? {
332
+ s(d).showToolbar ? {
338
333
  name: "toolbar_tools",
339
- fn: v(() => [
340
- $(Ge, Z(a(fe), {
341
- onOnRefresh: ye,
342
- onOnExport: N,
343
- onOnColumnsSetting: D
334
+ fn: b(() => [
335
+ P(Qe, te(s(ge), {
336
+ onOnRefresh: Pe,
337
+ onOnExport: z,
338
+ onOnColumnsSetting: j
344
339
  }), {
345
- "toolbar-left": v(() => [
346
- p(e.$slots, "t-toolbar_tools-left")
340
+ "toolbar-left": b(() => [
341
+ n(e.$slots, "t-toolbar_tools-left")
347
342
  ]),
348
- "toolbar-right": v(() => [
349
- p(e.$slots, "t-toolbar_tools-right")
343
+ "toolbar-right": b(() => [
344
+ n(e.$slots, "t-toolbar_tools-right")
350
345
  ]),
351
346
  _: 3
352
347
  }, 16),
353
- p(e.$slots, "t-toolbar_tools")
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
- p(e.$slots, "table-bottom")
353
+ n(e.$slots, "table-bottom")
359
354
  ], 2),
360
- $(Ue, {
355
+ P(Ge, {
361
356
  ref_key: "tableColumnModalRef",
362
- ref: y,
363
- "open-export": N,
364
- "open-column": D,
365
- onOnSubmit: Fe
366
- }, L({
367
- beforeFooter: v(() => [
368
- p(e.$slots, "t-column-modal-before-footer")
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
- a(A)["t-column-modal-title"] ? {
367
+ s(M)["t-column-modal-title"] ? {
373
368
  name: "title",
374
- fn: v(() => [
375
- p(e.$slots, "t-column-modal-title")
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, rt));
375
+ ], 10, at));
381
376
  }
382
377
  });
383
378
  export {
384
- Eo as default
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: () => void;
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 & {