@dazhicheng/ui 1.5.225 → 1.5.227

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,10 +1,10 @@
1
- import { defineComponent as Y, useAttrs as Z, ref as $, useId as ee, getCurrentInstance as oe, reactive as te, computed as l, unref as o, toValue as r, watch as re, nextTick as se, onMounted as ie, createBlock as B, createCommentVNode as S, openBlock as w, mergeProps as V, createSlots as D, withCtx as n, withDirectives as ne, createVNode as T, createElementBlock as ae, normalizeClass as le, normalizeStyle as me, renderSlot as m, renderList as ce, normalizeProps as pe, guardReactiveProps as ue } from "vue";
1
+ import { defineComponent as Z, useAttrs as ee, ref as $, useId as oe, getCurrentInstance as te, reactive as re, computed as a, unref as t, toValue as s, watch as se, nextTick as ie, onMounted as ne, onUnmounted as le, createBlock as B, createCommentVNode as S, openBlock as w, mergeProps as V, createSlots as D, withCtx as n, withDirectives as ae, createVNode as T, createElementBlock as me, normalizeClass as ce, normalizeStyle as de, renderSlot as m, renderList as pe, normalizeProps as ue, guardReactiveProps as fe } from "vue";
2
2
  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";
3
- import { useDesign as de } from "../../../packages/hooks/src/useDesign.js";
4
- import { usePriorityValues as fe, getPriorityValues as he } from "../../../packages/hooks/src/usePriorityValue.js";
3
+ import { useDesign as he } from "../../../packages/hooks/src/useDesign.js";
4
+ import { usePriorityValues as ge, getPriorityValues as ke } from "../../../packages/hooks/src/usePriorityValue.js";
5
5
  import "axios";
6
- import { drawerProps as O, ElDrawer as ge } from "element-plus";
7
- import { isNumber as ke } from "../../../packages/utils/src/is.js";
6
+ import { drawerProps as O, ElDrawer as we } from "element-plus";
7
+ import { isNumber as Ce } from "../../../packages/utils/src/is.js";
8
8
  import "xe-utils";
9
9
  import "dayjs";
10
10
  import "dayjs/plugin/utc";
@@ -14,22 +14,23 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.j
14
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
15
15
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
16
16
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
17
- import { omit as we, pick as R } from "lodash-es";
17
+ import { omit as be, pick as R } from "lodash-es";
18
18
  import "../../tt-loading/index.js";
19
- import { useStore as be } from "@tanstack/vue-store";
20
- import Ce from "./components/DrawerFooter.vue.js";
19
+ import { useStore as ve } from "@tanstack/vue-store";
20
+ import Pe from "./components/DrawerFooter.vue.js";
21
21
  /* empty css */
22
- import ve from "./components/DrawerHeader.vue.js";
23
- import { useDrawerResizable as Pe } from "./hooks/useResizable.js";
24
- import { basicProps as ye } from "./props.js";
25
- import { DrawerApi as $e } from "./utils/drawer-api.js";
26
- import { vTtLoading as Be } from "../../tt-loading/src/directive.js";
27
- const Ye = /* @__PURE__ */ Y({
22
+ import ye from "./components/DrawerHeader.vue.js";
23
+ import { useDrawerResizable as $e } from "./hooks/useResizable.js";
24
+ import { basicProps as Be } from "./props.js";
25
+ import { DrawerApi as Se } from "./utils/drawer-api.js";
26
+ import { pushModal as Ve, removeModal as x } from "../../tt-modal/src/utils/modal-stack.js";
27
+ import { vTtLoading as De } from "../../tt-loading/src/directive.js";
28
+ const to = /* @__PURE__ */ Z({
28
29
  name: "TtDrawer",
29
30
  __name: "RenderDrawer",
30
31
  props: {
31
32
  ...O,
32
- ...ye,
33
+ ...Be,
33
34
  /** drawerApi */
34
35
  drawerApi: {
35
36
  type: Object,
@@ -37,109 +38,112 @@ const Ye = /* @__PURE__ */ Y({
37
38
  }
38
39
  },
39
40
  emits: ["visible-change", "register", "update:visible"],
40
- setup(x, { expose: F, emit: H }) {
41
+ setup(F, { expose: H, emit: z }) {
41
42
  var P;
42
- const c = x, p = H, u = Z(), d = $(!1), b = ee(), f = $(null), { prefixCls: C } = de("drawer"), s = oe();
43
- let t = c.drawerApi;
44
- t || (t = new $e(c), t.useStore = (e) => be(t.store, e));
45
- const a = te({
46
- setDrawerProps: t.setState,
43
+ const c = F, d = z, p = ee(), u = $(!1), C = oe(), f = $(null), { prefixCls: b } = he("drawer"), o = te();
44
+ let r = c.drawerApi;
45
+ r || (r = new Se(c), r.useStore = (e) => ve(r.store, e));
46
+ const l = re({
47
+ setDrawerProps: r.setState,
47
48
  emitVisible: void 0
48
- }), z = (P = t.useStore) == null ? void 0 : P.call(t), {
49
- confirmLoading: A,
49
+ }), A = (P = r.useStore) == null ? void 0 : P.call(r), {
50
+ confirmLoading: L,
50
51
  visible: h,
51
52
  showFooter: g,
52
53
  footerHeight: v,
53
- cancelButtonProps: L,
54
- showCancelBtn: _,
55
- cancelText: N,
56
- showOkBtn: j,
57
- okButtonProps: E,
54
+ cancelButtonProps: _,
55
+ showCancelBtn: N,
56
+ cancelText: j,
57
+ showOkBtn: E,
58
+ okButtonProps: M,
58
59
  okText: I,
59
- title: M,
60
- loading: U,
61
- loadingText: q,
62
- ...G
63
- } = fe(c, z), J = l(() => {
64
- const e = he(G), i = we(u, ["onOk", "onClosed", "onClose", "onVisibleChange", "onReceiveSharedData"]);
60
+ title: U,
61
+ loading: q,
62
+ loadingText: G,
63
+ ...J
64
+ } = ge(c, A), K = a(() => {
65
+ const e = ke(J), i = be(p, ["onOk", "onClosed", "onClose", "onVisibleChange", "onReceiveSharedData"]);
65
66
  return {
66
67
  ...R(e, Object.keys(O)),
67
68
  ...i,
68
- modelValue: o(h),
69
- class: `${C} ${o(e).class || ""}`,
70
- modalClass: `${o(e).modalClass || o(e).class}`
69
+ modelValue: t(h),
70
+ closeOnPressEscape: !1,
71
+ class: `${b} ${t(e).class || ""}`,
72
+ modalClass: `${t(e).modalClass || t(e).class}`
71
73
  };
72
- }), K = l(() => ({
73
- confirmLoading: r(A),
74
- showFooter: r(g),
75
- footerHeight: r(v),
76
- cancelButtonProps: r(L),
77
- cancelText: r(N),
78
- showOkBtn: r(j),
79
- okText: r(I),
80
- okButtonProps: r(E),
81
- showCancelBtn: r(_)
82
- })), Q = l(() => {
83
- const e = r(v);
84
- return r(g) && e ? `${ke(e) ? e : Number.parseFloat(e)}px` : "0px";
85
- }), W = l(() => ({
86
- height: `calc(100% - ${o(Q)})`
74
+ }), Q = a(() => ({
75
+ confirmLoading: s(L),
76
+ showFooter: s(g),
77
+ footerHeight: s(v),
78
+ cancelButtonProps: s(_),
79
+ cancelText: s(j),
80
+ showOkBtn: s(E),
81
+ okText: s(I),
82
+ okButtonProps: s(M),
83
+ showCancelBtn: s(N)
84
+ })), W = a(() => {
85
+ const e = s(v);
86
+ return s(g) && e ? `${Ce(e) ? e : Number.parseFloat(e)}px` : "0px";
87
+ }), X = a(() => ({
88
+ height: `calc(100% - ${t(W)})`
87
89
  }));
88
- re(
90
+ se(
89
91
  () => h.value,
90
92
  (e) => {
91
- se(() => {
93
+ ie(() => {
92
94
  var i;
93
- p("update:visible", e), p("visible-change", e), s && ((i = a.emitVisible) == null || i.call(a, e, s == null ? void 0 : s.uid)), e ? d.value = e : (setTimeout(() => {
94
- d.value = e;
95
- }, 300), t.changeOkLoading(!1));
95
+ d("update:visible", e), d("visible-change", e), o && ((i = l.emitVisible) == null || i.call(l, e, o == null ? void 0 : o.uid)), o != null && o.uid && (e ? Ve({ uid: o.uid, close: () => r.onClosed() }) : x(o.uid)), e ? u.value = e : (setTimeout(() => {
96
+ u.value = e;
97
+ }, 300), r.changeOkLoading(!1));
96
98
  });
97
99
  }
98
100
  );
99
- const [X] = Pe(b, h, t.setState);
100
- return s && p("register", a, s == null ? void 0 : s.uid), ie(() => {
101
- const e = R(u, ["onOk", "onClosed", "onVisibleChange"]);
102
- t.mount(f.value, {
101
+ const [Y] = $e(C, h, r.setState);
102
+ return o && d("register", l, o == null ? void 0 : o.uid), ne(() => {
103
+ const e = R(p, ["onOk", "onClosed", "onVisibleChange"]);
104
+ r.mount(f.value, {
103
105
  ...e,
104
106
  // 兼容 BasicDrawer 组件的 onClose 事件
105
- onClosed: e.onClosed || u.onClose
107
+ onClosed: e.onClosed || p.onClose
106
108
  });
107
- }), F({
109
+ }), le(() => {
110
+ o != null && o.uid && x(o.uid);
111
+ }), H({
108
112
  drawerRef: f,
109
- drawerApi: t
110
- }), (e, i) => d.value ? (w(), B(o(ge), V({
113
+ drawerApi: r
114
+ }), (e, i) => u.value ? (w(), B(t(we), V({
111
115
  key: 0,
112
- id: o(b),
116
+ id: t(C),
113
117
  ref_key: "drawerRef",
114
118
  ref: f
115
- }, J.value, {
119
+ }, K.value, {
116
120
  "destroy-on-close": !0,
117
- "before-close": o(t).onClosed
121
+ "before-close": t(r).onClosed
118
122
  }), D({
119
123
  default: n(() => [
120
- ne((w(), ae("div", {
121
- style: me(W.value),
122
- class: le(`${o(C)}-content`)
124
+ ae((w(), me("div", {
125
+ style: de(X.value),
126
+ class: ce(`${t(b)}-content`)
123
127
  }, [
124
128
  m(e.$slots, "default")
125
129
  ], 6)), [
126
- [o(Be), {
127
- visible: o(U),
128
- text: o(q)
130
+ [t(De), {
131
+ visible: t(q),
132
+ text: t(G)
129
133
  }]
130
134
  ]),
131
- o(g) || e.$slots.footer ? (w(), B(Ce, V({ key: 0 }, K.value, {
132
- onClose: o(t).onClosed,
133
- onFooterok: o(t).onOk
135
+ t(g) || e.$slots.footer ? (w(), B(Pe, V({ key: 0 }, Q.value, {
136
+ onClose: t(r).onClosed,
137
+ onFooterok: t(r).onOk
134
138
  }), D({ _: 2 }, [
135
- ce(Object.keys(e.$slots), (k) => ({
139
+ pe(Object.keys(e.$slots), (k) => ({
136
140
  name: k,
137
141
  fn: n((y) => [
138
- m(e.$slots, k, pe(ue(y)))
142
+ m(e.$slots, k, ue(fe(y)))
139
143
  ])
140
144
  }))
141
145
  ]), 1040, ["onClose", "onFooterok"])) : S("", !0),
142
- T(o(X))
146
+ T(t(Y))
143
147
  ]),
144
148
  _: 2
145
149
  }, [
@@ -152,7 +156,7 @@ const Ye = /* @__PURE__ */ Y({
152
156
  } : {
153
157
  name: "header",
154
158
  fn: n(() => [
155
- T(ve, { title: o(M) }, {
159
+ T(ye, { title: t(U) }, {
156
160
  titleToolbar: n(() => [
157
161
  m(e.$slots, "titleToolbar")
158
162
  ]),
@@ -165,5 +169,5 @@ const Ye = /* @__PURE__ */ Y({
165
169
  }
166
170
  });
167
171
  export {
168
- Ye as default
172
+ to as default
169
173
  };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as Ae, useSlots as Ee, ref as Oe, computed as h, toValue as A, 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";
@@ -89,35 +89,35 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
89
89
  ],
90
90
  setup(oe, { expose: re, emit: se }) {
91
91
  var W, U, q;
92
- const u = oe, T = se, R = Ee(), { prefixCls: _ } = We("table-form"), y = Oe();
92
+ const u = oe, y = se, R = Ee(), { prefixCls: _ } = We("table-form"), w = Oe();
93
93
  let t = u.tableFormApi;
94
94
  if (!t) {
95
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 B = (W = t == null ? void 0 : t.useStore) == null ? void 0 : W.call(t), v = g(() => {
99
+ const B = (W = t == null ? void 0 : t.useStore) == null ? void 0 : W.call(t), S = h(() => {
100
100
  var o;
101
101
  if (u.testId) return u.testId;
102
- const e = (o = E(B)) == null ? void 0 : o.table;
102
+ const e = (o = A(B)) == null ? void 0 : o.table;
103
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(() => ({
104
+ }), ae = h(() => k(S.value, "tableform")), ie = h(() => k(S.value, "search-form-header")), le = h(() => k(S.value, "search-btn-query")), ne = h(() => k(S.value, "search-btn-reset")), me = h(() => ({
105
105
  submit: le.value,
106
106
  reset: ne.value
107
107
  }));
108
108
  Ge(me);
109
- const x = {}, c = $e(), S = g(() => E(B)), { getFormSlotKeysFunc: pe, getTableSlotKeysFunc: ue, replaceTableSlotKey: ce, replaceFormSlotKey: de } = et(), {
109
+ const x = {}, c = $e(), T = h(() => A(B)), { getFormSlotKeysFunc: pe, getTableSlotKeysFunc: ue, replaceTableSlotKey: ce, replaceFormSlotKey: de } = et(), {
110
110
  tableData: fe,
111
111
  getFormProps: V,
112
112
  getTableProps: d,
113
113
  getTableToolProps: be,
114
114
  handleSearchInfoChange: z
115
115
  } = Ye(
116
- S,
116
+ T,
117
117
  t.tableApi.reload,
118
118
  t.tableApi.getLoading,
119
119
  t.tableApi.getPagination,
120
- T
120
+ y
121
121
  ), { run: ge } = j(
122
122
  async () => {
123
123
  const e = await r.getValues();
@@ -133,8 +133,8 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
133
133
  },
134
134
  200,
135
135
  { leading: !0 }
136
- ), [Ce, r] = Ne({
137
- ...E(V),
136
+ ), [ve, r] = Ne({
137
+ ...A(V),
138
138
  handleSubmit: he,
139
139
  handleReset: ge,
140
140
  submitOnEnter: !0,
@@ -144,16 +144,16 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
144
144
  showCollapseButton: !0,
145
145
  collapsed: !0,
146
146
  collapseTriggerResize: !0
147
- }), { initCustomSetting: ve, saveColumns: Se } = Ze({
147
+ }), { initCustomSetting: Ce, saveColumns: Se } = Ze({
148
148
  getTableProps: d,
149
149
  tableMethods: t.tableApi,
150
- getProps: S
150
+ getProps: T
151
151
  }), D = async () => {
152
152
  await Ve(), t.tableApi && t.tableApi.redoHeight();
153
153
  };
154
154
  te.forEach((e) => {
155
155
  const o = xe.camelCase(e);
156
- x[o] = (...a) => T(e, ...a);
156
+ x[o] = (...a) => y(e, ...a);
157
157
  });
158
158
  const Te = {
159
159
  ...x
@@ -172,7 +172,7 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
172
172
  }
173
173
  const { run: we } = j(
174
174
  async (e) => {
175
- r.isMounted && s(S).useSearchForm ? r.validate().then(async (o) => {
175
+ r.isMounted && s(T).useSearchForm ? r.validate().then(async (o) => {
176
176
  if (o.valid) {
177
177
  const a = await r.getValues();
178
178
  await t.tableApi.reload({
@@ -192,62 +192,60 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
192
192
  },
193
193
  200,
194
194
  { leading: !0 }
195
- ), A = {
195
+ ), E = {
196
196
  tableMethods: t.tableApi,
197
197
  formMethods: r,
198
198
  setTableProps: t.tableApi.setState,
199
199
  setFormProps: r.setState,
200
200
  setProps: ye,
201
201
  reload: we,
202
- selectedKeys: g(() => E(t.tableApi.selectedKeys))
202
+ selectedKeys: h(() => A(t.tableApi.selectedKeys))
203
203
  };
204
204
  async function Fe() {
205
- const { tableRefreshBefore: e } = S.value;
206
- e && Ke(e) && await e(), A.reload();
205
+ const { tableRefreshBefore: e } = T.value;
206
+ e && Ke(e) && await e(), E.reload();
207
207
  }
208
208
  async function Pe(e) {
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);
209
+ var f, n;
210
+ const o = ((n = (f = T.value) == null ? void 0 : f.table) == null ? void 0 : n.columns) || [], a = new Map(o.map((l) => [l.field, l])), i = e.checkedModel.map((l) => a.get(l)).filter(Boolean);
211
211
  if (e.isExport) {
212
- T("export", e.checkedModel, e.modalApi);
212
+ y("export", e.checkedModel, e.modalApi);
213
213
  return;
214
214
  }
215
215
  e.modalApi.setModalProps({
216
216
  confirmLoading: !0
217
- }), d.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(i), e.modalApi.setModalProps({
218
218
  confirmLoading: !1
219
- }), e.modalApi.closeModal(), T("set-columns", l);
219
+ }), e.modalApi.closeModal(), y("set-columns", i);
220
220
  }
221
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
- (i) => i.visible !== !1
227
- ),
228
- displayFields: e ? f : l,
222
+ var n, l, v, b, F, P, I, M;
223
+ const { notSetColumnField: o, columns: a } = s(d), i = (b = (v = (l = ((n = t.tableApi.getTableInstance()) == null ? void 0 : n.getTableColumn()) || []) == null ? void 0 : l.visibleColumn) == null ? void 0 : v.map((m) => m.field)) == null ? void 0 : b.filter(Boolean), f = ((P = (F = s(a)) == null ? void 0 : F.filter((m) => m.visible === !0 || m.visible === void 0)) == null ? void 0 : P.map((m) => m.field)) || [];
224
+ (I = w.value) == null || I.openModal({
225
+ columns: (A(a) || []).filter((m) => m.visible !== !1),
226
+ displayFields: e ? f : i,
229
227
  disabledColumnField: o || []
230
- }), (M = y.value) == null || M.setModalProps({
228
+ }), (M = w.value) == null || M.setModalProps({
231
229
  title: "列设置"
232
230
  });
233
231
  }
234
232
  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
- (i) => i.visible !== !1
233
+ var n, l, v, b, F, P, I, M, m;
234
+ const { notSetColumnField: o, columns: a } = s(d), i = (b = (v = (l = ((n = t.tableApi.getTableInstance()) == null ? void 0 : n.getTableColumn()) || []) == null ? void 0 : l.visibleColumn) == null ? void 0 : v.map((g) => g.field)) == null ? void 0 : b.filter(Boolean), f = ((P = (F = s(a)) == null ? void 0 : F.filter((g) => g.visible === !0 || g.visible === void 0)) == null ? void 0 : P.map((g) => g.field)) || [];
235
+ (M = w.value) == null || M.openModal({
236
+ columns: (((I = t.tableApi) == null ? void 0 : I.getTableColumns()) || []).filter(
237
+ (g) => g.visible !== !1
240
238
  ),
241
- displayFields: e ? f : l,
239
+ displayFields: e ? f : i,
242
240
  disabledColumnField: o || [],
243
241
  isExport: !0
244
- }), (M = y.value) == null || M.setModalProps({
242
+ }), (m = w.value) == null || m.setModalProps({
245
243
  title: "自定义导出"
246
244
  });
247
245
  }
248
246
  Xe({ formInstance: r }), G(() => {
249
- c && T("register", A, c == null ? void 0 : c.uid), setTimeout(() => {
250
- ve();
247
+ c && y("register", E, c == null ? void 0 : c.uid), setTimeout(() => {
248
+ Ce();
251
249
  }, 16);
252
250
  }), O(
253
251
  () => t.tableApi.getLoading.value,
@@ -271,7 +269,7 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
271
269
  },
272
270
  { deep: !0 }
273
271
  ), window.addEventListener("resize", D), G(() => {
274
- t == null || t.mount(A, r), r == null || r.setState(V.value);
272
+ t == null || t.mount(E, r), r == null || r.setState(V.value);
275
273
  });
276
274
  function Ie(e) {
277
275
  return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
@@ -282,34 +280,34 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
282
280
  return O(
283
281
  () => De(u, ["tableFormApi"]),
284
282
  () => {
285
- var m;
286
- const e = {}, o = ((m = c == null ? void 0 : c.vnode) == null ? void 0 : m.props) || {}, a = new Set(Object.keys(u));
287
- for (const [n, h] of Object.entries(o)) {
288
- const b = Le(n);
289
- a.has(b) && (e[b] = h);
283
+ var n;
284
+ const e = {}, o = ((n = c == null ? void 0 : c.vnode) == null ? void 0 : n.props) || {}, a = new Set(Object.keys(u));
285
+ for (const [l, v] of Object.entries(o)) {
286
+ const b = Le(l);
287
+ a.has(b) && (e[b] = v);
290
288
  }
291
- const l = Ie(e), f = Me(l, u);
289
+ const i = Ie(e), f = Me(i, u);
292
290
  t.setState(f);
293
291
  },
294
292
  { deep: !0 }
295
293
  ), ke(() => {
296
294
  t == null || t.unmount(), window.removeEventListener("resize", D);
297
- }), re({ ...A, instance: c }), (e, o) => (Q(), J("div", {
295
+ }), re({ ...E, instance: c }), (e, o) => (Q(), J("div", {
298
296
  class: L(s(_)),
299
297
  "data-testid": ae.value
300
298
  }, [
301
- S.value.useSearchForm ? (Q(), J("div", {
299
+ T.value.useSearchForm ? (Q(), J("div", {
302
300
  key: 0,
303
301
  class: L(`${s(_)}-header`),
304
302
  "data-testid": ie.value
305
303
  }, [
306
- $(s(Ce), {
307
- "test-id": `${v.value}-search-form`
304
+ $(s(ve), {
305
+ "test-id": `${S.value}-search-form`
308
306
  }, K({ _: 2 }, [
309
307
  X(s(pe)(s(R)), (a) => ({
310
308
  name: s(de)(a),
311
- fn: C((l) => [
312
- p(e.$slots, a, Y(Z(l || {})))
309
+ fn: C((i) => [
310
+ p(e.$slots, a, Y(Z(i || {})))
313
311
  ])
314
312
  }))
315
313
  ]), 1032, ["test-id"]),
@@ -326,14 +324,14 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
326
324
  $(Qe, ee(s(d), {
327
325
  data: s(fe),
328
326
  "table-row-id": e.tableRowId,
329
- "table-id": v.value,
327
+ "table-id": S.value,
330
328
  "form-api": s(r),
331
329
  "table-api": s(t).tableApi
332
330
  }, Be(Te)), K({ _: 2 }, [
333
331
  X(s(ue)(s(R)), (a) => ({
334
332
  name: s(ce)(a),
335
- fn: C((l) => [
336
- p(e.$slots, a, Y(Z(l || {})))
333
+ fn: C((i) => [
334
+ p(e.$slots, a, Y(Z(i || {})))
337
335
  ])
338
336
  })),
339
337
  s(d).showToolbar ? {
@@ -361,7 +359,7 @@ const st = ["data-testid"], at = ["data-testid"], Ao = /* @__PURE__ */ Ae({
361
359
  ], 2),
362
360
  $(qe, {
363
361
  ref_key: "tableColumnModalRef",
364
- ref: y,
362
+ ref: w,
365
363
  "open-export": H,
366
364
  "open-column": N,
367
365
  onOnSubmit: Pe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.225",
3
+ "version": "1.5.227",
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/hooks": "1.4.44",
71
- "@dazhicheng/utils": "1.3.41"
70
+ "@dazhicheng/utils": "1.3.41",
71
+ "@dazhicheng/hooks": "1.4.44"
72
72
  },
73
73
  "files": [
74
74
  "dist"