@aplus-frontend/ui 7.13.6 → 7.13.7

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,23 +1,23 @@
1
- import { defineComponent as ce, computed as x, ref as Q, watch as fe, createVNode as y, createElementBlock as X, openBlock as c, Fragment as Y, createBlock as v, createCommentVNode as P, unref as t, mergeProps as V, withCtx as f, createTextVNode as A, toDisplayString as M, normalizeClass as K } from "vue";
2
- import { DownOutlined as me } from "@ant-design/icons-vue";
3
- import { message as q, Space as ye, Tooltip as j, Dropdown as ge, Menu as xe, MenuItem as Z } from "@aplus-frontend/antdv";
4
- import { usePermission as ve } from "@aplus-frontend/hooks";
5
- import { IconApAdLineAnnotation as B } from "@aplus-frontend/icon";
6
- import { transformTableParamsNoTimezone as he, isObjectWithContent as T } from "@aplus-frontend/utils";
7
- import { merge as m } from "lodash-unified";
1
+ import { defineComponent as fe, computed as y, ref as Q, watch as me, createVNode as f, createElementBlock as X, openBlock as d, Fragment as Y, createBlock as g, createCommentVNode as G, unref as t, mergeProps as V, withCtx as c, createTextVNode as _, toDisplayString as A, normalizeClass as F } from "vue";
2
+ import { DownOutlined as ye } from "@ant-design/icons-vue";
3
+ import { message as O, Space as ge, Tooltip as K, Dropdown as xe, Menu as ve, MenuItem as Z } from "@aplus-frontend/antdv";
4
+ import { usePermission as he } from "@aplus-frontend/hooks";
5
+ import { IconApAdLineAnnotation as j } from "@aplus-frontend/icon";
6
+ import { transformTableParamsNoTimezone as ke, isObjectWithContent as M } from "@aplus-frontend/utils";
7
+ import { merge as q } from "lodash-unified";
8
8
  import "../../ap-button/index.mjs";
9
- import { useInjectApTable as ke } from "../../ap-table/context.mjs";
9
+ import { useInjectApTable as be } from "../../ap-table/context.mjs";
10
10
  import "../../config-provider/index.mjs";
11
- import { ApBatchActionGroup as be } from "../ap-batch-action-group/index.mjs";
12
- import { convertExportField as Ee } from "./convertExportField.mjs";
13
- import { handleExportDownload as we } from "./handleExportDownload.mjs";
14
- import { ApExportGroupActionType as h } from "./interface.mjs";
15
- import De from "./style/index.mjs";
16
- import { useNamespace as Le } from "../../config-provider/hooks/use-namespace.mjs";
17
- import { useLocale as Re } from "../../config-provider/hooks/use-locale.mjs";
18
- import { useGlobalConfig as Se } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import { ApBatchActionGroup as Ee } from "../ap-batch-action-group/index.mjs";
12
+ import { convertExportField as we } from "./convertExportField.mjs";
13
+ import { handleExportDownload as De } from "./handleExportDownload.mjs";
14
+ import { ApExportGroupActionType as x } from "./interface.mjs";
15
+ import Le from "./style/index.mjs";
16
+ import { useNamespace as Re } from "../../config-provider/hooks/use-namespace.mjs";
17
+ import { useLocale as Se } from "../../config-provider/hooks/use-locale.mjs";
18
+ import { useGlobalConfig as Ce } from "../../config-provider/hooks/use-global-config.mjs";
19
19
  import N from "../../ap-button/ap-button.vue.mjs";
20
- const We = /* @__PURE__ */ ce({
20
+ const He = /* @__PURE__ */ fe({
21
21
  __name: "ApExportGroup",
22
22
  props: {
23
23
  type: {
@@ -53,28 +53,39 @@ const We = /* @__PURE__ */ ce({
53
53
  setup(ee) {
54
54
  const {
55
55
  hasPermission: $
56
- } = ve(), n = ee, {
56
+ } = he(), s = ee, {
57
57
  columns: z,
58
58
  dataSource: U,
59
59
  getSearchFormValues: te,
60
60
  getLastParams: ae
61
- } = ke(), {
62
- b: k
63
- } = Le("ap-export-group"), b = De("ap-export-group"), {
61
+ } = be(), {
62
+ b: v
63
+ } = Re("ap-export-group"), h = Le("ap-export-group"), {
64
64
  t: i
65
- } = Re(), W = Se("apExportGroup"), H = x(() => W?.value?.exportField), J = x(() => W?.value?.dateValidate), E = x(() => J.value === !0 ? {
65
+ } = Se(), W = Ce("apExportGroup"), H = y(() => W?.value?.exportField), J = y(() => W?.value?.dateValidate), k = y(() => J.value === !0 ? {
66
66
  maxDayRange: 90,
67
67
  smartIdentify: !0
68
- } : J.value), w = x(() => n?.dateValidate === !0 ? {
68
+ } : J.value), b = y(() => s?.dateValidate === !0 ? {
69
69
  maxDayRange: 90,
70
70
  smartIdentify: !0
71
- } : n?.dateValidate), S = Q(!1), I = Q(!1), G = x(() => !!n?.disabled || (U !== void 0 ? !U?.value?.length : !1) || S.value), s = (e) => e === void 0 ? !1 : typeof e == "object" ? m({}, e) : e === !0 ? {} : e;
72
- fe(() => G.value, () => {
73
- G.value && (I.value = !1);
71
+ } : s?.dateValidate), R = Q(!1), B = Q(!1), C = y(() => !!s?.disabled || (U !== void 0 ? !U?.value?.length : !1) || R.value), oe = (e) => e === void 0 ? !1 : typeof e == "object" ? q({}, e) : e === !0 ? {} : e, E = (...e) => {
72
+ let a = !1;
73
+ for (const o of e)
74
+ if (o !== void 0)
75
+ if (o === !1)
76
+ a = !1;
77
+ else {
78
+ const r = oe(o);
79
+ r !== !1 && (a = a === !1 ? r : q({}, a, r));
80
+ }
81
+ return a;
82
+ };
83
+ me(() => C.value, () => {
84
+ C.value && (B.value = !1);
74
85
  }, {
75
86
  immediate: !0
76
87
  });
77
- const oe = x(() => n?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : n?.successMessage ? n.successMessage : ""), re = (e = n?.exportField) => {
88
+ const ne = y(() => s?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : s?.successMessage ? s.successMessage : ""), se = (e = s?.exportField) => {
78
89
  const a = "exportFieldList", o = e ?? (H.value === "" ? !0 : H.value) ?? !1;
79
90
  return o === !0 ? {
80
91
  key: a
@@ -82,54 +93,54 @@ const We = /* @__PURE__ */ ce({
82
93
  ...o,
83
94
  key: o.key ?? a
84
95
  } : o;
85
- }, ne = {
96
+ }, re = {
86
97
  textAlign: "center"
87
- }, F = x(() => n?.selectedRowKeys || []), O = x(() => {
88
- let e = n?.ifShow;
89
- return !n?.ifShow && n?.auth && (e = () => $(n.auth)), e?.() ?? !0;
98
+ }, T = y(() => s?.selectedRowKeys || []), I = y(() => {
99
+ let e = s?.ifShow;
100
+ return !s?.ifShow && s?.auth && (e = () => $(s.auth)), e?.() ?? !0;
90
101
  });
91
- async function se() {
92
- F.value.length > 0 ? _({
93
- key: h.SELECT
94
- }) : _({
95
- key: h.ALL
102
+ async function le() {
103
+ T.value.length > 0 ? P({
104
+ key: x.SELECT
105
+ }) : P({
106
+ key: x.ALL
96
107
  });
97
108
  }
98
- async function _({
109
+ async function P({
99
110
  key: e,
100
111
  option: a
101
112
  }) {
102
- const o = m({}, n, a || {}), {
103
- getRequestParams: p,
104
- request: L
105
- } = o || {}, r = ae?.()?.sort, l = r ? he({
106
- sort: r
107
- }) : {}, u = re(o?.exportField);
108
- let d = {};
109
- e === h.SELECT ? d = {
110
- [o?.idKey || "ids"]: F.value
111
- } : e === h.ALL && (d = p?.() || te?.(!0) || {});
112
- const g = o?.getInitialParams?.() || {};
113
+ const o = q({}, s, a || {}), {
114
+ getRequestParams: r,
115
+ request: D
116
+ } = o || {}, n = ae?.()?.sort, l = n ? ke({
117
+ sort: n
118
+ }) : {}, u = se(o?.exportField);
119
+ let p = {};
120
+ e === x.SELECT ? p = {
121
+ [o?.idKey || "ids"]: T.value
122
+ } : e === x.ALL && (p = r?.() || te?.(!0) || {});
123
+ const m = o?.getInitialParams?.() || {};
113
124
  try {
114
- S.value = !0;
115
- let C = Object.assign({
116
- ...d,
117
- ...g,
125
+ R.value = !0;
126
+ let S = Object.assign({
127
+ ...p,
128
+ ...m,
118
129
  ...l
119
130
  }, u && z?.value ? {
120
- [u.key]: Ee(z.value, u?.convertField)
131
+ [u.key]: we(z.value, u?.convertField)
121
132
  } : {});
122
- C = o?.beforeRequest?.(C) || C;
123
- const R = m({}, s(E.value), s(w.value), s(a?.dateValidate));
124
- T(R) && e === h.ALL && de({
125
- params: C,
126
- dateValidate: R
127
- }), await we(async () => await L?.(C)), o?.successMessage && q.success(oe.value);
133
+ S = o?.beforeRequest?.(S) || S;
134
+ const L = E(k.value, b.value, a?.dateValidate);
135
+ M(L) && e === x.ALL && ce({
136
+ params: S,
137
+ dateValidate: L
138
+ }), await De(async () => await D?.(S)), o?.successMessage && O.success(ne.value);
128
139
  } finally {
129
- S.value = !1;
140
+ R.value = !1;
130
141
  }
131
142
  }
132
- const D = x(() => n?.groupList?.filter((e) => {
143
+ const w = y(() => s?.groupList?.filter((e) => {
133
144
  let a = e?.ifShow;
134
145
  return !e?.ifShow && e?.auth && (a = () => $(e.auth)), a?.() ?? !0;
135
146
  })?.map((e, a) => ({
@@ -140,199 +151,199 @@ const We = /* @__PURE__ */ ce({
140
151
  disabled: e?.disabled,
141
152
  dateValidate: e?.dateValidate,
142
153
  onClick: () => {
143
- F.value.length > 0 ? _({
144
- key: h.SELECT,
154
+ T.value.length > 0 ? P({
155
+ key: x.SELECT,
145
156
  option: e
146
- }) : _({
147
- key: h.ALL,
157
+ }) : P({
158
+ key: x.ALL,
148
159
  option: e
149
160
  });
150
161
  }
151
- })) || []), le = () => {
152
- const e = m({}, s(E.value), s(w.value), D.value.reduce((a, o) => m(a, s(o.dateValidate)), {}));
153
- return y(ye, {
162
+ })) || []), ue = () => {
163
+ const e = E(k.value, b.value, ...w.value.map((a) => a.dateValidate));
164
+ return f(ge, {
154
165
  size: 4
155
166
  }, {
156
- default: () => [y("span", null, [n?.buttonProps?.content ?? i("ap.apExportGroup.export")]), T(e) ? y(j, {
167
+ default: () => [f("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && M(e) ? f(K, {
157
168
  title: i("ap.apExportGroup.maxMessage", {
158
169
  maxDayRange: e.maxDayRange ?? 90
159
170
  })
160
171
  }, {
161
- default: () => [y(B, {
162
- class: [k("icon"), b.value]
172
+ default: () => [f(j, {
173
+ class: [v("icon"), h.value]
163
174
  }, null)]
164
175
  }) : null]
165
176
  });
166
- }, ue = (e) => Object.keys(e).reduce((a, o) => typeof e?.[o] == "number" && e?.[o] > 1e4 ? {
177
+ }, ie = (e) => Object.keys(e).reduce((a, o) => typeof e?.[o] == "number" && e?.[o] > 1e4 ? {
167
178
  ...a,
168
179
  [o]: e?.[o]
169
- } : a, {}), ie = (e) => {
170
- const a = Object.keys(e), o = [], p = /* @__PURE__ */ new Set(), L = [];
171
- for (let r = 0; r < a.length; r++)
172
- for (let l = r + 1; l < a.length; l++) {
173
- const u = a[r], d = a[l];
174
- let g = "";
175
- const C = Math.min(u.length, d.length);
176
- for (let R = 0; R < C && u[R] === d[R]; R++)
177
- g += u[R];
178
- g.length >= 3 && L.push({
179
- prefix: g,
180
- length: g.length,
180
+ } : a, {}), pe = (e) => {
181
+ const a = Object.keys(e), o = [], r = /* @__PURE__ */ new Set(), D = [];
182
+ for (let n = 0; n < a.length; n++)
183
+ for (let l = n + 1; l < a.length; l++) {
184
+ const u = a[n], p = a[l];
185
+ let m = "";
186
+ const S = Math.min(u.length, p.length);
187
+ for (let L = 0; L < S && u[L] === p[L]; L++)
188
+ m += u[L];
189
+ m.length >= 3 && D.push({
190
+ prefix: m,
191
+ length: m.length,
181
192
  key1: u,
182
- key2: d,
183
- diff: Math.abs(e[u] - e[d])
193
+ key2: p,
194
+ diff: Math.abs(e[u] - e[p])
184
195
  });
185
196
  }
186
- L.sort((r, l) => l.length !== r.length ? l.length - r.length : r.diff - l.diff);
187
- for (const r of L)
188
- if (!p.has(r.key1) && !p.has(r.key2)) {
189
- const l = e[r.key1], u = e[r.key2];
197
+ D.sort((n, l) => l.length !== n.length ? l.length - n.length : n.diff - l.diff);
198
+ for (const n of D)
199
+ if (!r.has(n.key1) && !r.has(n.key2)) {
200
+ const l = e[n.key1], u = e[n.key2];
190
201
  o.push({
191
- startKey: l < u ? r.key1 : r.key2,
192
- endKey: l < u ? r.key2 : r.key1
193
- }), p.add(r.key1), p.add(r.key2);
202
+ startKey: l < u ? n.key1 : n.key2,
203
+ endKey: l < u ? n.key2 : n.key1
204
+ }), r.add(n.key1), r.add(n.key2);
194
205
  }
195
206
  return o;
196
- }, pe = ({
207
+ }, de = ({
197
208
  startTime: e,
198
209
  endTime: a,
199
210
  maxDayRange: o
200
- }) => Math.abs(a - e) <= (o * 24 + 1) * 60 * 60 * 1e3, de = ({
211
+ }) => Math.abs(a - e) <= (o * 24 + 1) * 60 * 60 * 1e3, ce = ({
201
212
  params: e,
202
213
  dateValidate: a
203
214
  }) => {
204
- const o = a.maxDayRange ?? 90, p = ue(e), L = [...a.smartIdentify ?? !0 ? ie(p) : [], ...a.dateKeyList?.filter((r) => p[r.startKey || ""] && p[r.endKey || ""]) ?? []];
205
- if (L.length === 0) {
206
- q.warn(a?.emptyTooltip ?? i("ap.apExportGroup.emptyTooltip", {
215
+ const o = a.maxDayRange ?? 90, r = ie(e), D = [...a.smartIdentify ?? !0 ? pe(r) : [], ...a.dateKeyList?.filter((n) => r[n.startKey || ""] && r[n.endKey || ""]) ?? []];
216
+ if (D.length === 0) {
217
+ O.warn(a?.emptyTooltip ?? i("ap.apExportGroup.emptyTooltip", {
207
218
  maxDayRange: o
208
219
  }));
209
220
  return;
210
- } else if (L.some(({
221
+ } else if (D.some(({
211
222
  startKey: l,
212
223
  endKey: u
213
224
  }) => {
214
- const d = p[l || ""], g = p[u || ""];
215
- return d !== void 0 && g !== void 0 && !pe({
216
- startTime: d,
217
- endTime: g,
225
+ const p = r[l || ""], m = r[u || ""];
226
+ return p !== void 0 && m !== void 0 && !de({
227
+ startTime: p,
228
+ endTime: m,
218
229
  maxDayRange: o
219
230
  });
220
231
  })) {
221
- q.warn(a?.maxDayRangeTooltip ?? i("ap.apExportGroup.maxDayRangeTooltip", {
232
+ O.warn(a?.maxDayRangeTooltip ?? i("ap.apExportGroup.maxDayRangeTooltip", {
222
233
  maxDayRange: o
223
234
  }));
224
235
  return;
225
236
  }
226
237
  };
227
- return (e, a) => (c(), X(Y, null, [O.value && n.type === "button" ? (c(), v(t(N), V({
238
+ return (e, a) => (d(), X(Y, null, [I.value && s.type === "button" ? (d(), g(t(N), V({
228
239
  key: 0
229
240
  }, {
230
241
  ...e.$attrs
231
242
  }, {
232
- class: [t(k)(), t(b)],
233
- disabled: G.value,
234
- loading: S.value,
243
+ class: [t(v)(), t(h)],
244
+ disabled: C.value,
245
+ loading: R.value,
235
246
  "min-width": "",
236
- onClick: se
247
+ onClick: le
237
248
  }), {
238
- default: f(() => [A(M(n?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(T)(t(m)({}, s(E.value), s(w.value))) ? (c(), v(t(j), {
249
+ default: c(() => [_(A(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value)) ? (d(), g(t(K), {
239
250
  key: 0,
240
251
  title: t(i)("ap.apExportGroup.maxMessage", {
241
- maxDayRange: t(m)({}, s(E.value), s(w.value)).maxDayRange ?? 90
252
+ maxDayRange: E(k.value, b.value).maxDayRange ?? 90
242
253
  })
243
254
  }, {
244
- default: f(() => [y(t(B), {
245
- class: K([t(k)("icon"), t(b)])
255
+ default: c(() => [f(t(j), {
256
+ class: F([t(v)("icon"), t(h)])
246
257
  }, null, 8, ["class"])]),
247
258
  _: 1
248
- }, 8, ["title"])) : P("", !0)]),
259
+ }, 8, ["title"])) : G("", !0)]),
249
260
  _: 1
250
- }, 16, ["class", "disabled", "loading"])) : P("", !0), O.value && n.type === "dropdown" ? (c(), v(t(ge), {
261
+ }, 16, ["class", "disabled", "loading"])) : G("", !0), I.value && s.type === "dropdown" ? (d(), g(t(xe), {
251
262
  key: 1,
252
- open: I.value,
253
- "onUpdate:open": a[0] || (a[0] = (o) => I.value = o),
254
- class: K([t(k)(), t(b)]),
255
- "overlay-style": ne,
256
- disabled: G.value
263
+ open: B.value,
264
+ "onUpdate:open": a[0] || (a[0] = (o) => B.value = o),
265
+ class: F([t(v)(), t(h)]),
266
+ "overlay-style": re,
267
+ disabled: C.value
257
268
  }, {
258
- overlay: f(() => [y(t(xe), {
259
- onClick: _
269
+ overlay: c(() => [f(t(ve), {
270
+ onClick: P
260
271
  }, {
261
- default: f(() => [(c(), v(t(Z), {
262
- key: t(h).SELECT,
263
- disabled: F.value?.length === 0
272
+ default: c(() => [(d(), g(t(Z), {
273
+ key: t(x).SELECT,
274
+ disabled: T.value?.length === 0
264
275
  }, {
265
- default: f(() => [A(M(t(i)("ap.apExportGroup.exportSelected")), 1)]),
276
+ default: c(() => [_(A(t(i)("ap.apExportGroup.exportSelected")), 1)]),
266
277
  _: 1
267
- }, 8, ["disabled"])), (c(), v(t(Z), {
268
- key: t(h).ALL
278
+ }, 8, ["disabled"])), (d(), g(t(Z), {
279
+ key: t(x).ALL
269
280
  }, {
270
- default: f(() => [A(M(t(i)("ap.apExportGroup.exportAll")), 1)]),
281
+ default: c(() => [_(A(t(i)("ap.apExportGroup.exportAll")), 1)]),
271
282
  _: 1
272
283
  }))]),
273
284
  _: 1
274
285
  })]),
275
- default: f(() => [y(t(N), V({
286
+ default: c(() => [f(t(N), V({
276
287
  ...e.$attrs
277
288
  }, {
278
- loading: S.value
289
+ loading: R.value
279
290
  }), {
280
- default: f(() => [A(M(n?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(T)(t(m)({}, s(E.value), s(w.value))) ? (c(), v(t(j), {
291
+ default: c(() => [_(A(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value)) ? (d(), g(t(K), {
281
292
  key: 0,
282
293
  title: t(i)("ap.apExportGroup.maxMessage", {
283
- maxDayRange: t(m)({}, s(E.value), s(w.value)).maxDayRange ?? 90
294
+ maxDayRange: E(k.value, b.value).maxDayRange ?? 90
284
295
  })
285
296
  }, {
286
- default: f(() => [y(t(B), {
287
- class: K([t(k)("icon"), t(b)])
297
+ default: c(() => [f(t(j), {
298
+ class: F([t(v)("icon"), t(h)])
288
299
  }, null, 8, ["class"])]),
289
300
  _: 1
290
- }, 8, ["title"])) : P("", !0), y(t(me))]),
301
+ }, 8, ["title"])) : G("", !0), f(t(ye))]),
291
302
  _: 1
292
303
  }, 16, ["loading"])]),
293
304
  _: 1
294
- }, 8, ["open", "class", "disabled"])) : P("", !0), O.value && n.type === "group" ? (c(), X(Y, {
305
+ }, 8, ["open", "class", "disabled"])) : G("", !0), I.value && s.type === "group" ? (d(), X(Y, {
295
306
  key: 2
296
- }, [D.value.length === 1 ? (c(), v(t(N), V({
307
+ }, [w.value.length === 1 ? (d(), g(t(N), V({
297
308
  key: 0
298
309
  }, {
299
310
  ...e.$attrs
300
311
  }, {
301
- class: [t(k)(), t(b)],
302
- disabled: G.value || D.value?.[0]?.disabled,
303
- loading: S.value,
312
+ class: [t(v)(), t(h)],
313
+ disabled: C.value || w.value?.[0]?.disabled,
314
+ loading: R.value,
304
315
  "min-width": "",
305
- onClick: D.value?.[0]?.onClick
316
+ onClick: w.value?.[0]?.onClick
306
317
  }), {
307
- default: f(() => [A(M(D.value?.[0]?.content ?? n?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(T)(t(m)({}, s(E.value), s(w.value), s(D.value?.[0]?.dateValidate))) ? (c(), v(t(j), {
318
+ default: c(() => [_(A(w.value?.[0]?.content ?? s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value, w.value?.[0]?.dateValidate)) ? (d(), g(t(K), {
308
319
  key: 0,
309
320
  title: t(i)("ap.apExportGroup.maxMessage", {
310
- maxDayRange: t(m)({}, s(E.value), s(w.value), s(D.value?.[0]?.dateValidate)).maxDayRange ?? 90
321
+ maxDayRange: E(k.value, b.value, w.value?.[0]?.dateValidate).maxDayRange ?? 90
311
322
  })
312
323
  }, {
313
- default: f(() => [y(t(B), {
314
- class: K([t(k)("icon"), t(b)])
324
+ default: c(() => [f(t(j), {
325
+ class: F([t(v)("icon"), t(h)])
315
326
  }, null, 8, ["class"])]),
316
327
  _: 1
317
- }, 8, ["title"])) : P("", !0)]),
328
+ }, 8, ["title"])) : G("", !0)]),
318
329
  _: 1
319
- }, 16, ["class", "disabled", "loading", "onClick"])) : (c(), v(t(be), V({
330
+ }, 16, ["class", "disabled", "loading", "onClick"])) : (d(), g(t(Ee), V({
320
331
  key: 1
321
332
  }, {
322
333
  ...e.$attrs
323
334
  }, {
324
- class: [t(k)(), t(b)],
325
- disabled: G.value,
326
- loading: S.value,
335
+ class: [t(v)(), t(h)],
336
+ disabled: C.value,
337
+ loading: R.value,
327
338
  "button-props": {
328
- ...n.buttonProps,
329
- content: le(),
330
- type: n?.buttonProps?.type ?? "default"
339
+ ...s.buttonProps,
340
+ content: ue(),
341
+ type: s?.buttonProps?.type ?? "default"
331
342
  },
332
- "menu-list": D.value
333
- }), null, 16, ["class", "disabled", "loading", "button-props", "menu-list"]))], 64)) : P("", !0)], 64));
343
+ "menu-list": w.value
344
+ }), null, 16, ["class", "disabled", "loading", "button-props", "menu-list"]))], 64)) : G("", !0)], 64));
334
345
  }
335
346
  });
336
347
  export {
337
- We as default
348
+ He as default
338
349
  };
@@ -1,2 +1,2 @@
1
- declare const _default: "7.13.6";
1
+ declare const _default: "7.13.7";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.13.6";
1
+ const e = "7.13.7";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),X=require("@ant-design/icons-vue"),p=require("@aplus-frontend/antdv"),Y=require("@aplus-frontend/hooks"),V=require("@aplus-frontend/icon"),D=require("@aplus-frontend/utils"),f=require("lodash-unified");require("../../ap-button/index.js");const Z=require("../../ap-table/context.js");require("../../config-provider/index.js");const ee=require("../ap-batch-action-group/index.js"),te=require("./convertExportField.js"),oe=require("./handleExportDownload.js"),y=require("./interface.js"),ae=require("./style/index.js"),ne=require("../../config-provider/hooks/use-namespace.js"),re=require("../../config-provider/hooks/use-locale.js"),ue=require("../../config-provider/hooks/use-global-config.js"),S=require("../../ap-button/ap-button.vue.js"),se=e.defineComponent({__name:"ApExportGroup",props:{type:{default:"button"},selectedRowKeys:{},groupList:{},buttonProps:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1},exportField:{type:[Boolean,Object],default:void 0},dateValidate:{type:[Object,Boolean],default:void 0}},setup(F){const{hasPermission:q}=Y.usePermission(),r=F,{columns:R,dataSource:_,getSearchFormValues:j,getLastParams:I}=Z.useInjectApTable(),{b:m}=ne.useNamespace("ap-export-group"),x=ae.default("ap-export-group"),{t:i}=re.useLocale(),N=ue.useGlobalConfig("apExportGroup"),P=e.computed(()=>N?.value?.exportField),M=e.computed(()=>N?.value?.dateValidate),v=e.computed(()=>M.value===!0?{maxDayRange:90,smartIdentify:!0}:M.value),h=e.computed(()=>r?.dateValidate===!0?{maxDayRange:90,smartIdentify:!0}:r?.dateValidate),E=e.ref(!1),B=e.ref(!1),w=e.computed(()=>!!r?.disabled||(_!==void 0?!_?.value?.length:!1)||E.value),u=t=>t===void 0?!1:typeof t=="object"?f.merge({},t):t===!0?{}:t;e.watch(()=>w.value,()=>{w.value&&(B.value=!1)},{immediate:!0});const K=e.computed(()=>r?.successMessage===!0?i("ap.apExportGroup.exportSuccess"):r?.successMessage?r.successMessage:""),O=(t=r?.exportField)=>{const o="exportFieldList",a=t??(P.value===""?!0:P.value)??!1;return a===!0?{key:o}:typeof a=="object"?{...a,key:a.key??o}:a},z={textAlign:"center"},L=e.computed(()=>r?.selectedRowKeys||[]),G=e.computed(()=>{let t=r?.ifShow;return!r?.ifShow&&r?.auth&&(t=()=>q(r.auth)),t?.()??!0});async function W(){L.value.length>0?T({key:y.ApExportGroupActionType.SELECT}):T({key:y.ApExportGroupActionType.ALL})}async function T({key:t,option:o}){const a=f.merge({},r,o||{}),{getRequestParams:c,request:b}=a||{},n=I?.()?.sort,s=n?D.transformTableParamsNoTimezone({sort:n}):{},l=O(a?.exportField);let d={};t===y.ApExportGroupActionType.SELECT?d={[a?.idKey||"ids"]:L.value}:t===y.ApExportGroupActionType.ALL&&(d=c?.()||j?.(!0)||{});const g=a?.getInitialParams?.()||{};try{E.value=!0;let A=Object.assign({...d,...g,...s},l&&R?.value?{[l.key]:te.convertExportField(R.value,l?.convertField)}:{});A=a?.beforeRequest?.(A)||A;const C=f.merge({},u(v.value),u(h.value),u(o?.dateValidate));D.isObjectWithContent(C)&&t===y.ApExportGroupActionType.ALL&&Q({params:A,dateValidate:C}),await oe.handleExportDownload(async()=>await b?.(A)),a?.successMessage&&p.message.success(K.value)}finally{E.value=!1}}const k=e.computed(()=>r?.groupList?.filter(t=>{let o=t?.ifShow;return!t?.ifShow&&t?.auth&&(o=()=>q(t.auth)),o?.()??!0})?.map((t,o)=>({key:o,content:t?.text,auth:t?.auth,ifShow:t?.ifShow,disabled:t?.disabled,dateValidate:t?.dateValidate,onClick:()=>{L.value.length>0?T({key:y.ApExportGroupActionType.SELECT,option:t}):T({key:y.ApExportGroupActionType.ALL,option:t})}}))||[]),$=()=>{const t=f.merge({},u(v.value),u(h.value),k.value.reduce((o,a)=>f.merge(o,u(a.dateValidate)),{}));return e.createVNode(p.Space,{size:4},{default:()=>[e.createVNode("span",null,[r?.buttonProps?.content??i("ap.apExportGroup.export")]),D.isObjectWithContent(t)?e.createVNode(p.Tooltip,{title:i("ap.apExportGroup.maxMessage",{maxDayRange:t.maxDayRange??90})},{default:()=>[e.createVNode(V.IconApAdLineAnnotation,{class:[m("icon"),x.value]},null)]}):null]})},U=t=>Object.keys(t).reduce((o,a)=>typeof t?.[a]=="number"&&t?.[a]>1e4?{...o,[a]:t?.[a]}:o,{}),H=t=>{const o=Object.keys(t),a=[],c=new Set,b=[];for(let n=0;n<o.length;n++)for(let s=n+1;s<o.length;s++){const l=o[n],d=o[s];let g="";const A=Math.min(l.length,d.length);for(let C=0;C<A&&l[C]===d[C];C++)g+=l[C];g.length>=3&&b.push({prefix:g,length:g.length,key1:l,key2:d,diff:Math.abs(t[l]-t[d])})}b.sort((n,s)=>s.length!==n.length?s.length-n.length:n.diff-s.diff);for(const n of b)if(!c.has(n.key1)&&!c.has(n.key2)){const s=t[n.key1],l=t[n.key2];a.push({startKey:s<l?n.key1:n.key2,endKey:s<l?n.key2:n.key1}),c.add(n.key1),c.add(n.key2)}return a},J=({startTime:t,endTime:o,maxDayRange:a})=>Math.abs(o-t)<=(a*24+1)*60*60*1e3,Q=({params:t,dateValidate:o})=>{const a=o.maxDayRange??90,c=U(t),b=[...o.smartIdentify??!0?H(c):[],...o.dateKeyList?.filter(n=>c[n.startKey||""]&&c[n.endKey||""])??[]];if(b.length===0){p.message.warn(o?.emptyTooltip??i("ap.apExportGroup.emptyTooltip",{maxDayRange:a}));return}else if(b.some(({startKey:s,endKey:l})=>{const d=c[s||""],g=c[l||""];return d!==void 0&&g!==void 0&&!J({startTime:d,endTime:g,maxDayRange:a})})){p.message.warn(o?.maxDayRangeTooltip??i("ap.apExportGroup.maxDayRangeTooltip",{maxDayRange:a}));return}};return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[G.value&&r.type==="button"?(e.openBlock(),e.createBlock(e.unref(S.default),e.mergeProps({key:0},{...t.$attrs},{class:[e.unref(m)(),e.unref(x)],disabled:w.value,loading:E.value,"min-width":"",onClick:W}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(D.isObjectWithContent)(e.unref(f.merge)({},u(v.value),u(h.value)))?(e.openBlock(),e.createBlock(e.unref(p.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:e.unref(f.merge)({},u(v.value),u(h.value)).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(V.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(m)("icon"),e.unref(x)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1},16,["class","disabled","loading"])):e.createCommentVNode("",!0),G.value&&r.type==="dropdown"?(e.openBlock(),e.createBlock(e.unref(p.Dropdown),{key:1,open:B.value,"onUpdate:open":o[0]||(o[0]=a=>B.value=a),class:e.normalizeClass([e.unref(m)(),e.unref(x)]),"overlay-style":z,disabled:w.value},{overlay:e.withCtx(()=>[e.createVNode(e.unref(p.Menu),{onClick:T},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:e.unref(y.ApExportGroupActionType).SELECT,disabled:L.value?.length===0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:e.unref(y.ApExportGroupActionType).ALL},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apExportGroup.exportAll")),1)]),_:1}))]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(S.default),e.mergeProps({...t.$attrs},{loading:E.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(D.isObjectWithContent)(e.unref(f.merge)({},u(v.value),u(h.value)))?(e.openBlock(),e.createBlock(e.unref(p.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:e.unref(f.merge)({},u(v.value),u(h.value)).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(V.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(m)("icon"),e.unref(x)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(X.DownOutlined))]),_:1},16,["loading"])]),_:1},8,["open","class","disabled"])):e.createCommentVNode("",!0),G.value&&r.type==="group"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k.value.length===1?(e.openBlock(),e.createBlock(e.unref(S.default),e.mergeProps({key:0},{...t.$attrs},{class:[e.unref(m)(),e.unref(x)],disabled:w.value||k.value?.[0]?.disabled,loading:E.value,"min-width":"",onClick:k.value?.[0]?.onClick}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value?.[0]?.content??r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(D.isObjectWithContent)(e.unref(f.merge)({},u(v.value),u(h.value),u(k.value?.[0]?.dateValidate)))?(e.openBlock(),e.createBlock(e.unref(p.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:e.unref(f.merge)({},u(v.value),u(h.value),u(k.value?.[0]?.dateValidate)).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(V.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(m)("icon"),e.unref(x)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1},16,["class","disabled","loading","onClick"])):(e.openBlock(),e.createBlock(e.unref(ee.ApBatchActionGroup),e.mergeProps({key:1},{...t.$attrs},{class:[e.unref(m)(),e.unref(x)],disabled:w.value,loading:E.value,"button-props":{...r.buttonProps,content:$(),type:r?.buttonProps?.type??"default"},"menu-list":k.value}),null,16,["class","disabled","loading","button-props","menu-list"]))],64)):e.createCommentVNode("",!0)],64))}});exports.default=se;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Y=require("@ant-design/icons-vue"),c=require("@aplus-frontend/antdv"),Z=require("@aplus-frontend/hooks"),T=require("@aplus-frontend/icon"),w=require("@aplus-frontend/utils"),G=require("lodash-unified");require("../../ap-button/index.js");const ee=require("../../ap-table/context.js");require("../../config-provider/index.js");const te=require("../ap-batch-action-group/index.js"),ae=require("./convertExportField.js"),oe=require("./handleExportDownload.js"),f=require("./interface.js"),ne=require("./style/index.js"),re=require("../../config-provider/hooks/use-namespace.js"),se=require("../../config-provider/hooks/use-locale.js"),le=require("../../config-provider/hooks/use-global-config.js"),S=require("../../ap-button/ap-button.vue.js"),ue=e.defineComponent({__name:"ApExportGroup",props:{type:{default:"button"},selectedRowKeys:{},groupList:{},buttonProps:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1},exportField:{type:[Boolean,Object],default:void 0},dateValidate:{type:[Object,Boolean],default:void 0}},setup(F){const{hasPermission:q}=Z.usePermission(),r=F,{columns:R,dataSource:_,getSearchFormValues:j,getLastParams:I}=ee.useInjectApTable(),{b:y}=re.useNamespace("ap-export-group"),g=ne.default("ap-export-group"),{t:i}=se.useLocale(),N=le.useGlobalConfig("apExportGroup"),P=e.computed(()=>N?.value?.exportField),M=e.computed(()=>N?.value?.dateValidate),m=e.computed(()=>M.value===!0?{maxDayRange:90,smartIdentify:!0}:M.value),x=e.computed(()=>r?.dateValidate===!0?{maxDayRange:90,smartIdentify:!0}:r?.dateValidate),C=e.ref(!1),L=e.ref(!1),A=e.computed(()=>!!r?.disabled||(_!==void 0?!_?.value?.length:!1)||C.value),K=t=>t===void 0?!1:typeof t=="object"?G.merge({},t):t===!0?{}:t,v=(...t)=>{let a=!1;for(const o of t)if(o!==void 0)if(o===!1)a=!1;else{const s=K(o);s!==!1&&(a=a===!1?s:G.merge({},a,s))}return a};e.watch(()=>A.value,()=>{A.value&&(L.value=!1)},{immediate:!0});const O=e.computed(()=>r?.successMessage===!0?i("ap.apExportGroup.exportSuccess"):r?.successMessage?r.successMessage:""),z=(t=r?.exportField)=>{const a="exportFieldList",o=t??(P.value===""?!0:P.value)??!1;return o===!0?{key:a}:typeof o=="object"?{...o,key:o.key??a}:o},W={textAlign:"center"},V=e.computed(()=>r?.selectedRowKeys||[]),B=e.computed(()=>{let t=r?.ifShow;return!r?.ifShow&&r?.auth&&(t=()=>q(r.auth)),t?.()??!0});async function $(){V.value.length>0?D({key:f.ApExportGroupActionType.SELECT}):D({key:f.ApExportGroupActionType.ALL})}async function D({key:t,option:a}){const o=G.merge({},r,a||{}),{getRequestParams:s,request:k}=o||{},n=I?.()?.sort,l=n?w.transformTableParamsNoTimezone({sort:n}):{},u=z(o?.exportField);let p={};t===f.ApExportGroupActionType.SELECT?p={[o?.idKey||"ids"]:V.value}:t===f.ApExportGroupActionType.ALL&&(p=s?.()||j?.(!0)||{});const d=o?.getInitialParams?.()||{};try{C.value=!0;let E=Object.assign({...p,...d,...l},u&&R?.value?{[u.key]:ae.convertExportField(R.value,u?.convertField)}:{});E=o?.beforeRequest?.(E)||E;const b=v(m.value,x.value,a?.dateValidate);w.isObjectWithContent(b)&&t===f.ApExportGroupActionType.ALL&&X({params:E,dateValidate:b}),await oe.handleExportDownload(async()=>await k?.(E)),o?.successMessage&&c.message.success(O.value)}finally{C.value=!1}}const h=e.computed(()=>r?.groupList?.filter(t=>{let a=t?.ifShow;return!t?.ifShow&&t?.auth&&(a=()=>q(t.auth)),a?.()??!0})?.map((t,a)=>({key:a,content:t?.text,auth:t?.auth,ifShow:t?.ifShow,disabled:t?.disabled,dateValidate:t?.dateValidate,onClick:()=>{V.value.length>0?D({key:f.ApExportGroupActionType.SELECT,option:t}):D({key:f.ApExportGroupActionType.ALL,option:t})}}))||[]),U=()=>{const t=v(m.value,x.value,...h.value.map(a=>a.dateValidate));return e.createVNode(c.Space,{size:4},{default:()=>[e.createVNode("span",null,[r?.buttonProps?.content??i("ap.apExportGroup.export")]),t!==!1&&w.isObjectWithContent(t)?e.createVNode(c.Tooltip,{title:i("ap.apExportGroup.maxMessage",{maxDayRange:t.maxDayRange??90})},{default:()=>[e.createVNode(T.IconApAdLineAnnotation,{class:[y("icon"),g.value]},null)]}):null]})},H=t=>Object.keys(t).reduce((a,o)=>typeof t?.[o]=="number"&&t?.[o]>1e4?{...a,[o]:t?.[o]}:a,{}),J=t=>{const a=Object.keys(t),o=[],s=new Set,k=[];for(let n=0;n<a.length;n++)for(let l=n+1;l<a.length;l++){const u=a[n],p=a[l];let d="";const E=Math.min(u.length,p.length);for(let b=0;b<E&&u[b]===p[b];b++)d+=u[b];d.length>=3&&k.push({prefix:d,length:d.length,key1:u,key2:p,diff:Math.abs(t[u]-t[p])})}k.sort((n,l)=>l.length!==n.length?l.length-n.length:n.diff-l.diff);for(const n of k)if(!s.has(n.key1)&&!s.has(n.key2)){const l=t[n.key1],u=t[n.key2];o.push({startKey:l<u?n.key1:n.key2,endKey:l<u?n.key2:n.key1}),s.add(n.key1),s.add(n.key2)}return o},Q=({startTime:t,endTime:a,maxDayRange:o})=>Math.abs(a-t)<=(o*24+1)*60*60*1e3,X=({params:t,dateValidate:a})=>{const o=a.maxDayRange??90,s=H(t),k=[...a.smartIdentify??!0?J(s):[],...a.dateKeyList?.filter(n=>s[n.startKey||""]&&s[n.endKey||""])??[]];if(k.length===0){c.message.warn(a?.emptyTooltip??i("ap.apExportGroup.emptyTooltip",{maxDayRange:o}));return}else if(k.some(({startKey:l,endKey:u})=>{const p=s[l||""],d=s[u||""];return p!==void 0&&d!==void 0&&!Q({startTime:p,endTime:d,maxDayRange:o})})){c.message.warn(a?.maxDayRangeTooltip??i("ap.apExportGroup.maxDayRangeTooltip",{maxDayRange:o}));return}};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[B.value&&r.type==="button"?(e.openBlock(),e.createBlock(e.unref(S.default),e.mergeProps({key:0},{...t.$attrs},{class:[e.unref(y)(),e.unref(g)],disabled:A.value,loading:C.value,"min-width":"",onClick:$}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(w.isObjectWithContent)(v(m.value,x.value))?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:v(m.value,x.value).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(T.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(y)("icon"),e.unref(g)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1},16,["class","disabled","loading"])):e.createCommentVNode("",!0),B.value&&r.type==="dropdown"?(e.openBlock(),e.createBlock(e.unref(c.Dropdown),{key:1,open:L.value,"onUpdate:open":a[0]||(a[0]=o=>L.value=o),class:e.normalizeClass([e.unref(y)(),e.unref(g)]),"overlay-style":W,disabled:A.value},{overlay:e.withCtx(()=>[e.createVNode(e.unref(c.Menu),{onClick:D},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(c.MenuItem),{key:e.unref(f.ApExportGroupActionType).SELECT,disabled:V.value?.length===0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(e.openBlock(),e.createBlock(e.unref(c.MenuItem),{key:e.unref(f.ApExportGroupActionType).ALL},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apExportGroup.exportAll")),1)]),_:1}))]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(S.default),e.mergeProps({...t.$attrs},{loading:C.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(w.isObjectWithContent)(v(m.value,x.value))?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:v(m.value,x.value).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(T.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(y)("icon"),e.unref(g)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(Y.DownOutlined))]),_:1},16,["loading"])]),_:1},8,["open","class","disabled"])):e.createCommentVNode("",!0),B.value&&r.type==="group"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[h.value.length===1?(e.openBlock(),e.createBlock(e.unref(S.default),e.mergeProps({key:0},{...t.$attrs},{class:[e.unref(y)(),e.unref(g)],disabled:A.value||h.value?.[0]?.disabled,loading:C.value,"min-width":"",onClick:h.value?.[0]?.onClick}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.value?.[0]?.content??r?.text??e.unref(i)("ap.apExportGroup.export"))+" ",1),e.unref(w.isObjectWithContent)(v(m.value,x.value,h.value?.[0]?.dateValidate))?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),{key:0,title:e.unref(i)("ap.apExportGroup.maxMessage",{maxDayRange:v(m.value,x.value,h.value?.[0]?.dateValidate).maxDayRange??90})},{default:e.withCtx(()=>[e.createVNode(e.unref(T.IconApAdLineAnnotation),{class:e.normalizeClass([e.unref(y)("icon"),e.unref(g)])},null,8,["class"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1},16,["class","disabled","loading","onClick"])):(e.openBlock(),e.createBlock(e.unref(te.ApBatchActionGroup),e.mergeProps({key:1},{...t.$attrs},{class:[e.unref(y)(),e.unref(g)],disabled:A.value,loading:C.value,"button-props":{...r.buttonProps,content:U(),type:r?.buttonProps?.type??"default"},"menu-list":h.value}),null,16,["class","disabled","loading","button-props","menu-list"]))],64)):e.createCommentVNode("",!0)],64))}});exports.default=ue;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.13.6";
1
+ declare const _default: "7.13.7";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.13.6";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.13.7";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.13.6",
3
+ "version": "7.13.7",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [