@aplus-frontend/ui 7.12.0 → 7.12.2

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 (41) hide show
  1. package/es/src/ag-grid/editable/form-item.vue.mjs +1 -1
  2. package/es/src/ag-grid/index.vue.mjs +124 -122
  3. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -1
  4. package/es/src/ap-grid/index.vue.mjs +95 -93
  5. package/es/src/ap-table/ap-table.vue2.mjs +73 -71
  6. package/es/src/ap-table/context.d.ts +1 -0
  7. package/es/src/ap-table/context.mjs +7 -6
  8. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
  9. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +60 -59
  10. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +117 -97
  11. package/es/src/business/ap-upload/apUpload.vue.d.ts +3 -3
  12. package/es/src/business/ap-upload/apUpload.vue.mjs +1 -1
  13. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +13 -12
  14. package/es/src/config-provider/config-provider-props.d.ts +13 -1
  15. package/es/src/config-provider/config-provider.d.ts +28 -1
  16. package/es/src/config-provider/hooks/use-global-config.d.ts +13 -1
  17. package/es/src/config-provider/index.d.ts +46 -1
  18. package/es/src/utils/config-provider-preset.d.ts +7 -1
  19. package/es/src/version.d.ts +1 -1
  20. package/es/src/version.mjs +1 -1
  21. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  22. package/lib/src/ag-grid/index.vue.js +1 -1
  23. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -1
  24. package/lib/src/ap-grid/index.vue.js +1 -1
  25. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  26. package/lib/src/ap-table/context.d.ts +1 -0
  27. package/lib/src/ap-table/context.js +1 -1
  28. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
  29. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  30. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  31. package/lib/src/business/ap-upload/apUpload.vue.d.ts +3 -3
  32. package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
  33. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
  34. package/lib/src/config-provider/config-provider-props.d.ts +13 -1
  35. package/lib/src/config-provider/config-provider.d.ts +28 -1
  36. package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -1
  37. package/lib/src/config-provider/index.d.ts +46 -1
  38. package/lib/src/utils/config-provider-preset.d.ts +7 -1
  39. package/lib/src/version.d.ts +1 -1
  40. package/lib/src/version.js +1 -1
  41. package/package.json +5 -5
@@ -1,29 +1,29 @@
1
- import { ref as de, reactive as k, unref as g, nextTick as pe, onMounted as he, watch as me, computed as O, createVNode as C } from "vue";
2
- import { isArray as B, isEqualWith as Se, isUndefined as ze } from "lodash-unified";
1
+ import { ref as pe, reactive as k, unref as g, nextTick as he, onMounted as me, watch as Se, computed as L, createVNode as C } from "vue";
2
+ import { cloneDeep as ze, isArray as B, isEqualWith as Pe, isUndefined as Te } from "lodash-unified";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "../../utils/index.mjs";
5
- import { parseFieldValue as Pe, dataIndexToStr as Te, isEqualCustom as be } from "../utils.mjs";
6
- import { useTableSortedAndFiltered as Ce } from "./use-sorted-filtered.mjs";
7
- import { useLocale as xe } from "../../config-provider/hooks/use-locale.mjs";
8
- import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { parseFieldValue as be, dataIndexToStr as Ce, isEqualCustom as xe } from "../utils.mjs";
6
+ import { useTableSortedAndFiltered as Fe } from "./use-sorted-filtered.mjs";
7
+ import { useLocale as we } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as De } from "../../config-provider/hooks/use-namespace.mjs";
9
9
  import { isDef as J } from "../../utils/is.mjs";
10
- const d = 1, L = 20, K = {
10
+ const d = 1, O = 20, K = {
11
11
  defaultCurrent: d,
12
- defaultPageSize: L,
12
+ defaultPageSize: O,
13
13
  showLessItems: !1,
14
14
  showTotal: !0
15
15
  };
16
- function we(i) {
16
+ function Ee(i) {
17
17
  return i === !1 ? {} : i == null || i === !0 ? K : {
18
18
  ...K,
19
19
  ...i
20
20
  };
21
21
  }
22
- function Ee(i) {
22
+ function ve(i) {
23
23
  const f = {};
24
- return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize = L) : (f.current = i.defaultCurrent || d, f.pageSize = i.defaultPageSize || L)), f;
24
+ return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize = O) : (f.current = i.defaultCurrent || d, f.pageSize = i.defaultPageSize || O)), f;
25
25
  }
26
- const Ne = ({
26
+ const je = ({
27
27
  manual: i = !1,
28
28
  request: f,
29
29
  params: y = {},
@@ -39,17 +39,17 @@ const Ne = ({
39
39
  onAfterRequest: Z
40
40
  }) => {
41
41
  let x = 0, s = {};
42
- const H = we(p), X = (e) => I ? I(e) : e, h = de(), c = k(Ee(p)), {
42
+ const H = Ee(p), X = (e) => I ? I(e) : e, h = pe(), c = k(ve(p)), {
43
43
  getColumnSFConfig: Y,
44
44
  setSF: ee,
45
45
  clearAll: te,
46
46
  sortedInfo: V,
47
47
  filteredInfo: j
48
- } = Ce(), {
48
+ } = Fe(), {
49
49
  t: m
50
- } = xe(), {
50
+ } = we(), {
51
51
  b: S
52
- } = Fe($), a = k({
52
+ } = De($), a = k({
53
53
  total: R.length,
54
54
  records: R,
55
55
  loading: !1
@@ -76,14 +76,14 @@ const Ne = ({
76
76
  return Object.entries(e).forEach(([n, r]) => {
77
77
  if (t[n] = r, M && r) {
78
78
  const o = M[n];
79
- o && (t[n] = Pe(o, r));
79
+ o && (t[n] = be(o, r));
80
80
  }
81
81
  }), t;
82
82
  }, ne = async (e) => {
83
83
  const t = z(), n = {};
84
84
  Object.entries(t).forEach(([r, o]) => {
85
85
  N && N.indexOf(r) > -1 && (n[r] = o);
86
- }), await h.value?.apForm?.resetFields(), h.value?.apForm?.setFieldsValue?.(n), pe(() => {
86
+ }), await h.value?.apForm?.resetFields(), h.value?.apForm?.setFieldsValue?.(n), he(() => {
87
87
  e?.();
88
88
  });
89
89
  }, P = (e) => {
@@ -96,12 +96,12 @@ const Ne = ({
96
96
  ...e
97
97
  });
98
98
  };
99
- let T, E = !0;
99
+ let T, D = !0;
100
100
  function U() {
101
- T = void 0, E = !0;
101
+ T = void 0, D = !0;
102
102
  }
103
103
  const ae = () => {
104
- if (!E)
104
+ if (!D)
105
105
  return;
106
106
  const e = T ? T + 1 : 2, t = {
107
107
  ...s,
@@ -112,10 +112,10 @@ const Ne = ({
112
112
  F(n, {
113
113
  cache: !0,
114
114
  onSuccess(r, o) {
115
- T = r.current, E = o;
115
+ T = r.current, D = o;
116
116
  }
117
117
  });
118
- }, v = () => {
118
+ }, oe = () => ze(s), E = () => {
119
119
  q(!0), U();
120
120
  }, q = (e = !1) => {
121
121
  const t = z(), n = p !== !1;
@@ -126,13 +126,13 @@ const Ne = ({
126
126
  current: n ? e ? d : s.current || c.current : void 0,
127
127
  pageSize: n ? s.pageSize || c.pageSize : void 0
128
128
  });
129
- }, oe = () => {
130
- te(), s.sort = {}, s.filter = {}, G?.(), ne(v), U();
131
- }, A = () => {
129
+ }, se = () => {
130
+ te(), s.sort = {}, s.filter = {}, G?.(), ne(E), U();
131
+ }, v = () => {
132
132
  P(s);
133
- }, se = (e) => {
133
+ }, ce = (e) => {
134
134
  if (p === !1)
135
- A();
135
+ v();
136
136
  else {
137
137
  const {
138
138
  current: t,
@@ -142,12 +142,12 @@ const Ne = ({
142
142
  current: u > 0 ? u : 1
143
143
  });
144
144
  }
145
- }, D = (e, t, n) => {
145
+ }, A = (e, t, n) => {
146
146
  const r = z();
147
147
  c.current = e.current, c.pageSize = e.pageSize, ee(t, n);
148
148
  const o = B(n) ? [...n] : [n], u = {};
149
149
  for (const l of o)
150
- g(W)?.includes(l.columnKey || l.field) && l.order && (u[Te(l.columnKey || l.field)] = l.order);
150
+ g(W)?.includes(l.columnKey || l.field) && l.order && (u[Ce(l.columnKey || l.field)] = l.order);
151
151
  const b = {};
152
152
  for (const l of Object.keys(t))
153
153
  g(Q)?.includes(l) && t[l] && (b[l] = t[l]);
@@ -158,10 +158,10 @@ const Ne = ({
158
158
  current: e.current,
159
159
  pageSize: e.pageSize
160
160
  };
161
- Se(s, _, be) || P(_);
162
- }, ce = (e, t = j.value || {}, n = V.value || {}) => {
161
+ Pe(s, _, xe) || P(_);
162
+ }, ie = (e, t = j.value || {}, n = V.value || {}) => {
163
163
  const r = e?.current ?? c.current, o = e?.pageSize ?? c.pageSize;
164
- D(
164
+ A(
165
165
  {
166
166
  current: r,
167
167
  pageSize: o
@@ -175,7 +175,7 @@ const Ne = ({
175
175
  }
176
176
  );
177
177
  };
178
- he(() => {
178
+ me(() => {
179
179
  const e = z(), {
180
180
  current: t,
181
181
  pageSize: n
@@ -190,12 +190,12 @@ const Ne = ({
190
190
  const r = w(s);
191
191
  F(r);
192
192
  }
193
- }), me(() => g(y), () => {
194
- v();
193
+ }), Se(() => g(y), () => {
194
+ E();
195
195
  }, {
196
196
  deep: !0
197
197
  });
198
- const ie = O(() => {
198
+ const ue = L(() => {
199
199
  if (a.total === 0)
200
200
  return "-";
201
201
  const {
@@ -204,10 +204,10 @@ const Ne = ({
204
204
  } = c;
205
205
  return `${e}/${Math.ceil(a.total / t)}`;
206
206
  });
207
- function ue(e) {
207
+ function le(e) {
208
208
  B(e) && (a.records = e, a.total = e.length);
209
209
  }
210
- const le = O(() => {
210
+ const fe = L(() => {
211
211
  const {
212
212
  showLessItems: e,
213
213
  showTotal: t,
@@ -225,7 +225,7 @@ const Ne = ({
225
225
  showQuickJumper: J(n) ? n : !e,
226
226
  showLessItems: e,
227
227
  size: "default",
228
- pageSizeOptions: ze(o) ? ["10", "20", "50", "100"] : o,
228
+ pageSizeOptions: Te(o) ? ["10", "20", "50", "100"] : o,
229
229
  showTotal: t ? (u) => C("span", {
230
230
  class: S("pagination-total-wrapper")
231
231
  }, [m("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
@@ -234,43 +234,44 @@ const Ne = ({
234
234
  class: S("pagination--total-right")
235
235
  }, [m("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
236
236
  class: S("pagination-count-text")
237
- }, [g(ie)]), " ", m("ap.apTable.pagination.totalRightSuffix")])]) : void 0
237
+ }, [g(ue)]), " ", m("ap.apTable.pagination.totalRightSuffix")])]) : void 0
238
238
  },
239
- onChange: D,
239
+ onChange: A,
240
240
  dataSource: a.records
241
241
  };
242
242
  });
243
- function fe(e, t = !0) {
244
- Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t && A();
243
+ function ge(e, t = !0) {
244
+ Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t && v();
245
245
  }
246
- function ge() {
246
+ function de() {
247
247
  return {
248
248
  ...c
249
249
  };
250
250
  }
251
251
  return {
252
252
  formRef: h,
253
- submit: v,
254
- reset: oe,
255
- refresh: A,
256
- refreshByDelete: se,
253
+ submit: E,
254
+ reset: se,
255
+ refresh: v,
256
+ refreshByDelete: ce,
257
257
  data: a,
258
- handleTableChange: D,
259
- handleTableChangeOptional: ce,
260
- tableProps: le,
261
- dataSource: O(() => a.records),
262
- setDataSource: ue,
258
+ handleTableChange: A,
259
+ handleTableChangeOptional: ie,
260
+ tableProps: fe,
261
+ dataSource: L(() => a.records),
262
+ setDataSource: le,
263
263
  getColumnSFConfig: Y,
264
264
  sortedInfo: V,
265
265
  filteredInfo: j,
266
- getPaging: ge,
267
- setPaging: fe,
266
+ getPaging: de,
267
+ setPaging: ge,
268
268
  submitWith: q,
269
- fetchNextPageAndCache: ae
269
+ fetchNextPageAndCache: ae,
270
+ getLastParams: oe
270
271
  };
271
272
  };
272
273
  export {
273
274
  d as DEFAULT_CURRENT,
274
- L as DEFAULT_PAGE_SIZE,
275
- Ne as useTablePaging
275
+ O as DEFAULT_PAGE_SIZE,
276
+ je as useTablePaging
276
277
  };
@@ -1,19 +1,21 @@
1
- import { defineComponent as $, ref as P, computed as c, watch as O, createElementBlock as V, openBlock as p, Fragment as z, createBlock as f, createCommentVNode as w, unref as o, mergeProps as E, withCtx as l, createTextVNode as v, toDisplayString as g, normalizeClass as U, createVNode as L } from "vue";
2
- import { DownOutlined as H } from "@ant-design/icons-vue";
3
- import { message as J, Dropdown as Q, Menu as W, MenuItem as A } from "@aplus-frontend/antdv";
4
- import { usePermission as X } from "@aplus-frontend/hooks";
1
+ import { defineComponent as J, ref as B, computed as m, watch as Q, createElementBlock as M, openBlock as s, Fragment as T, createBlock as d, createCommentVNode as S, unref as o, mergeProps as x, withCtx as l, createTextVNode as y, toDisplayString as v, normalizeClass as W, createVNode as L } from "vue";
2
+ import { DownOutlined as X } from "@ant-design/icons-vue";
3
+ import { message as Y, Dropdown as Z, Menu as ee, MenuItem as R } from "@aplus-frontend/antdv";
4
+ import { usePermission as te } from "@aplus-frontend/hooks";
5
+ import { transformTableParamsNoTimezone as oe } from "@aplus-frontend/utils";
6
+ import { merge as ae } from "lodash-unified";
5
7
  import "../../ap-button/index.mjs";
6
- import { useInjectApTable as Y } from "../../ap-table/context.mjs";
8
+ import { useInjectApTable as re } from "../../ap-table/context.mjs";
7
9
  import "../../config-provider/index.mjs";
8
- import { ApBatchActionGroup as Z } from "../ap-batch-action-group/index.mjs";
9
- import { convertExportField as ee } from "./convertExportField.mjs";
10
- import { handleExportDownload as te } from "./handleExportDownload.mjs";
11
- import { ApExportGroupActionType as s } from "./interface.mjs";
12
- import { useNamespace as oe } from "../../config-provider/hooks/use-namespace.mjs";
13
- import { useLocale as ae } from "../../config-provider/hooks/use-locale.mjs";
14
- import { useGlobalConfig as re } from "../../config-provider/hooks/use-global-config.mjs";
15
- import G from "../../ap-button/ap-button.vue.mjs";
16
- const he = /* @__PURE__ */ $({
10
+ import { ApBatchActionGroup as se } from "../ap-batch-action-group/index.mjs";
11
+ import { convertExportField as le } from "./convertExportField.mjs";
12
+ import { handleExportDownload as ne } from "./handleExportDownload.mjs";
13
+ import { ApExportGroupActionType as n } from "./interface.mjs";
14
+ import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
15
+ import { useLocale as ie } from "../../config-provider/hooks/use-locale.mjs";
16
+ import { useGlobalConfig as pe } from "../../config-provider/hooks/use-global-config.mjs";
17
+ import C from "../../ap-button/ap-button.vue.mjs";
18
+ const Fe = /* @__PURE__ */ J({
17
19
  __name: "ApExportGroup",
18
20
  props: {
19
21
  type: { default: "button" },
@@ -32,117 +34,121 @@ const he = /* @__PURE__ */ $({
32
34
  successMessage: { type: [Boolean, String], default: !1 },
33
35
  exportField: { type: [Boolean, Object], default: void 0 }
34
36
  },
35
- setup(_) {
36
- const { hasPermission: B } = X(), e = _, { columns: S, dataSource: C } = Y(), { b: M } = oe("ap-export-group"), { t: n } = ae(), F = re("exportField"), u = P(!1), x = P(!1), i = c(
37
- () => !!e?.disabled || (C !== void 0 ? !C?.value?.length : !1) || u.value
37
+ setup(q) {
38
+ const { hasPermission: P } = te(), t = q, { columns: F, dataSource: A, getSearchFormValues: K, getLastParams: D } = re(), { b: N } = ue("ap-export-group"), { t: u } = ie(), _ = pe("exportField"), i = B(!1), h = B(!1), p = m(
39
+ () => !!t?.disabled || (A !== void 0 ? !A?.value?.length : !1) || i.value
38
40
  );
39
- O(
40
- () => i.value,
41
+ Q(
42
+ () => p.value,
41
43
  () => {
42
- i.value && (x.value = !1);
44
+ p.value && (h.value = !1);
43
45
  },
44
46
  {
45
47
  immediate: !0
46
48
  }
47
49
  );
48
- const R = c(() => e?.successMessage === !0 ? n("ap.apExportGroup.exportSuccess") : e?.successMessage ? e.successMessage : ""), T = (t = e?.exportField) => {
49
- const r = "exportFieldList", a = t ?? (F.value === "" ? !0 : F.value) ?? !1;
50
+ const $ = m(() => t?.successMessage === !0 ? u("ap.apExportGroup.exportSuccess") : t?.successMessage ? t.successMessage : ""), j = (e = t?.exportField) => {
51
+ const r = "exportFieldList", a = e ?? (_.value === "" ? !0 : _.value) ?? !1;
50
52
  return a === !0 ? {
51
53
  key: r
52
54
  } : typeof a == "object" ? {
53
55
  ...a,
54
56
  key: a.key ?? r
55
57
  } : a;
56
- }, q = {
58
+ }, I = {
57
59
  textAlign: "center"
58
- }, m = c(() => e?.selectedRowKeys || []), b = c(() => {
59
- let t = e?.ifShow;
60
- return !e?.ifShow && e?.auth && (t = () => B(e.auth)), t?.() ?? !0;
60
+ }, g = m(() => t?.selectedRowKeys || []), k = m(() => {
61
+ let e = t?.ifShow;
62
+ return !t?.ifShow && t?.auth && (e = () => P(t.auth)), e?.() ?? !0;
61
63
  });
62
- async function K() {
63
- m.value.length > 0 ? d({ key: s.SELECT }) : d({ key: s.ALL });
64
+ async function V() {
65
+ g.value.length > 0 ? c({ key: n.SELECT }) : c({ key: n.ALL });
64
66
  }
65
- async function d({ key: t, option: r }) {
66
- const a = r || e, { getRequestParams: j, request: I } = a || {}, h = T(a?.exportField);
67
- let k = {};
68
- t === s.SELECT ? k = {
69
- [a?.idKey || "ids"]: m.value
70
- } : t === s.ALL && (k = j?.() || {});
71
- const N = a?.getInitialParams?.() || {};
67
+ async function c({ key: e, option: r }) {
68
+ const a = ae(r || {}, t), { getRequestParams: O, request: z } = a || {}, G = D?.()?.sort, U = G ? oe({ sort: G }) : {}, w = j(a?.exportField);
69
+ let E = {};
70
+ e === n.SELECT ? E = {
71
+ [a?.idKey || "ids"]: g.value
72
+ } : e === n.ALL && (E = O?.() || K?.(!0) || {});
73
+ const H = a?.getInitialParams?.() || {};
72
74
  try {
73
- u.value = !0;
74
- let y = Object.assign(
75
+ i.value = !0;
76
+ let b = Object.assign(
75
77
  {
76
- ...k,
77
- ...N
78
+ ...E,
79
+ ...H,
80
+ ...U
78
81
  },
79
- h && S?.value ? {
80
- [h.key]: ee(
81
- S.value,
82
- h?.convertField
82
+ w && F?.value ? {
83
+ [w.key]: le(
84
+ F.value,
85
+ w?.convertField
83
86
  )
84
87
  } : {}
85
88
  );
86
- y = a?.beforeRequest?.(y) || y, await te(async () => await I?.(y)), a?.successMessage && J.success(R.value);
89
+ b = a?.beforeRequest?.(b) || b, await ne(async () => await z?.(b)), a?.successMessage && Y.success($.value);
87
90
  } finally {
88
- u.value = !1;
91
+ i.value = !1;
89
92
  }
90
93
  }
91
- const D = c(() => e?.groupList?.map((t, r) => ({
94
+ const f = m(() => t?.groupList?.filter((e) => {
95
+ let r = e?.ifShow;
96
+ return !e?.ifShow && e?.auth && (r = () => P(e.auth)), r?.() ?? !0;
97
+ })?.map((e, r) => ({
92
98
  key: r,
93
- content: t?.text,
94
- auth: t?.auth,
95
- ifShow: t?.ifShow,
96
- disabled: t?.disabled,
99
+ content: e?.text,
100
+ auth: e?.auth,
101
+ ifShow: e?.ifShow,
102
+ disabled: e?.disabled,
97
103
  onClick: () => {
98
- m.value.length > 0 ? d({
99
- key: s.SELECT,
100
- option: t
101
- }) : d({
102
- key: s.ALL,
103
- option: t
104
+ g.value.length > 0 ? c({
105
+ key: n.SELECT,
106
+ option: e
107
+ }) : c({
108
+ key: n.ALL,
109
+ option: e
104
110
  });
105
111
  }
106
112
  })) || []);
107
- return (t, r) => (p(), V(z, null, [
108
- b.value && e.type === "button" ? (p(), f(o(G), E({ key: 0 }, {
109
- ...t.$attrs
113
+ return (e, r) => (s(), M(T, null, [
114
+ k.value && t.type === "button" ? (s(), d(o(C), x({ key: 0 }, {
115
+ ...e.$attrs
110
116
  }, {
111
- disabled: i.value,
112
- loading: u.value,
117
+ disabled: p.value,
118
+ loading: i.value,
113
119
  "min-width": "",
114
- onClick: K
120
+ onClick: V
115
121
  }), {
116
122
  default: l(() => [
117
- v(g(e?.text ?? o(n)("ap.apExportGroup.export")), 1)
123
+ y(v(t?.text ?? o(u)("ap.apExportGroup.export")), 1)
118
124
  ]),
119
125
  _: 1
120
- }, 16, ["disabled", "loading"])) : w("", !0),
121
- b.value && e.type === "dropdown" ? (p(), f(o(Q), {
126
+ }, 16, ["disabled", "loading"])) : S("", !0),
127
+ k.value && t.type === "dropdown" ? (s(), d(o(Z), {
122
128
  key: 1,
123
- open: x.value,
124
- "onUpdate:open": r[0] || (r[0] = (a) => x.value = a),
125
- class: U([o(M)()]),
126
- "overlay-style": q,
127
- disabled: i.value
129
+ open: h.value,
130
+ "onUpdate:open": r[0] || (r[0] = (a) => h.value = a),
131
+ class: W([o(N)()]),
132
+ "overlay-style": I,
133
+ disabled: p.value
128
134
  }, {
129
135
  overlay: l(() => [
130
- L(o(W), { onClick: d }, {
136
+ L(o(ee), { onClick: c }, {
131
137
  default: l(() => [
132
- (p(), f(o(A), {
133
- key: o(s).SELECT,
134
- disabled: m.value?.length === 0
138
+ (s(), d(o(R), {
139
+ key: o(n).SELECT,
140
+ disabled: g.value?.length === 0
135
141
  }, {
136
142
  default: l(() => [
137
- v(g(o(n)("ap.apExportGroup.exportSelected")), 1)
143
+ y(v(o(u)("ap.apExportGroup.exportSelected")), 1)
138
144
  ]),
139
145
  _: 1
140
146
  }, 8, ["disabled"])),
141
- (p(), f(o(A), {
142
- key: o(s).ALL
147
+ (s(), d(o(R), {
148
+ key: o(n).ALL
143
149
  }, {
144
150
  default: l(() => [
145
- v(g(o(n)("ap.apExportGroup.exportAll")), 1)
151
+ y(v(o(u)("ap.apExportGroup.exportAll")), 1)
146
152
  ]),
147
153
  _: 1
148
154
  }))
@@ -151,33 +157,47 @@ const he = /* @__PURE__ */ $({
151
157
  })
152
158
  ]),
153
159
  default: l(() => [
154
- L(o(G), E({
155
- ...t.$attrs
156
- }, { loading: u.value }), {
160
+ L(o(C), x({
161
+ ...e.$attrs
162
+ }, { loading: i.value }), {
157
163
  default: l(() => [
158
- v(g(e?.text ?? o(n)("ap.apExportGroup.export")) + " ", 1),
159
- L(o(H))
164
+ y(v(t?.text ?? o(u)("ap.apExportGroup.export")) + " ", 1),
165
+ L(o(X))
160
166
  ]),
161
167
  _: 1
162
168
  }, 16, ["loading"])
163
169
  ]),
164
170
  _: 1
165
- }, 8, ["open", "class", "disabled"])) : w("", !0),
166
- b.value && e.type === "group" ? (p(), f(o(Z), E({ key: 2 }, {
167
- ...t.$attrs
168
- }, {
169
- disabled: i.value,
170
- loading: u.value,
171
- "button-props": {
172
- ...e.buttonProps,
173
- content: e?.buttonProps?.content ?? o(n)("ap.apExportGroup.export"),
174
- type: e?.buttonProps?.type ?? "default"
175
- },
176
- "menu-list": D.value
177
- }), null, 16, ["disabled", "loading", "button-props", "menu-list"])) : w("", !0)
171
+ }, 8, ["open", "class", "disabled"])) : S("", !0),
172
+ k.value && t.type === "group" ? (s(), M(T, { key: 2 }, [
173
+ f.value.length === 1 ? (s(), d(o(C), x({ key: 0 }, {
174
+ ...e.$attrs
175
+ }, {
176
+ disabled: p.value || f.value?.[0]?.disabled,
177
+ loading: i.value,
178
+ "min-width": "",
179
+ onClick: f.value?.[0]?.onClick
180
+ }), {
181
+ default: l(() => [
182
+ y(v(f.value?.[0]?.content ?? t?.text ?? o(u)("ap.apExportGroup.export")), 1)
183
+ ]),
184
+ _: 1
185
+ }, 16, ["disabled", "loading", "onClick"])) : (s(), d(o(se), x({ key: 1 }, {
186
+ ...e.$attrs
187
+ }, {
188
+ disabled: p.value,
189
+ loading: i.value,
190
+ "button-props": {
191
+ ...t.buttonProps,
192
+ content: t?.buttonProps?.content ?? o(u)("ap.apExportGroup.export"),
193
+ type: t?.buttonProps?.type ?? "default"
194
+ },
195
+ "menu-list": f.value
196
+ }), null, 16, ["disabled", "loading", "button-props", "menu-list"]))
197
+ ], 64)) : S("", !0)
178
198
  ], 64));
179
199
  }
180
200
  });
181
201
  export {
182
- he as default
202
+ Fe as default
183
203
  };
@@ -42,7 +42,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
42
42
  default: string;
43
43
  };
44
44
  subTitle: {
45
- type: (StringConstructor | (() => VNode))[];
45
+ type: (StringConstructor | (() => VNode) | null)[];
46
46
  default: string;
47
47
  };
48
48
  maxCount: {
@@ -129,7 +129,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
129
129
  default: string;
130
130
  };
131
131
  subTitle: {
132
- type: (StringConstructor | (() => VNode))[];
132
+ type: (StringConstructor | (() => VNode) | null)[];
133
133
  default: string;
134
134
  };
135
135
  maxCount: {
@@ -201,7 +201,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
201
201
  acceptErrorMsg: string;
202
202
  subTitle: string | VNode< RendererNode, RendererElement, {
203
203
  [key: string]: any;
204
- }>;
204
+ }> | null;
205
205
  baseDirName: string;
206
206
  maxCountErrorMsg: string;
207
207
  showUploadErrorMsg: boolean;
@@ -46,7 +46,7 @@ const K = ["id"], me = /* @__PURE__ */ _({
46
46
  default: ""
47
47
  },
48
48
  subTitle: {
49
- type: [String, Object],
49
+ type: [String, Object, null],
50
50
  default: ""
51
51
  },
52
52
  maxCount: {
@@ -21,23 +21,24 @@ const H = /* @__PURE__ */ y({
21
21
  },
22
22
  emits: ["update:value"],
23
23
  setup(f, { emit: d }) {
24
- const o = f, v = d, { value: h, updateValue: g } = z(o, v), a = i(!1), n = i(), b = (e) => o._parent || e, { t: x } = E();
24
+ const o = f, v = d, { value: g, updateValue: h } = z(o, v), n = i(!1), l = i(), b = (e) => o._parent || e, { t: x } = E();
25
25
  function C(e) {
26
- const l = e.target.value || "";
27
- let r = L(l, `
26
+ const r = e.target.value || "";
27
+ let a = L(r, `
28
28
  ,`, `
29
29
  `, o.maxNum);
30
- if (r !== l) {
31
- const c = n.value?.$el || n.value;
32
- c && (c.value = r);
30
+ if (a = a.replace(/\\n/g, `
31
+ `), a !== r) {
32
+ const c = l.value?.$el || l.value;
33
+ c && (c.value = a);
33
34
  }
34
- g(r);
35
+ h(a);
35
36
  }
36
37
  function I(e) {
37
- o.disabled ? a.value = !1 : a.value = e, !e && o.onClose?.();
38
+ o.disabled ? n.value = !1 : n.value = e, !e && o.onClose?.();
38
39
  }
39
40
  const { b: s, e: N, em: V, bm: _ } = F("batch-input-group-popover-input");
40
- return (e, l) => (k(), A("div", {
41
+ return (e, r) => (k(), A("div", {
41
42
  class: p(t(s)())
42
43
  }, [
43
44
  u(t(P), {
@@ -45,7 +46,7 @@ const H = /* @__PURE__ */ y({
45
46
  "get-popup-container": b,
46
47
  trigger: "click",
47
48
  placement: "bottomLeft",
48
- open: a.value,
49
+ open: n.value,
49
50
  onOpenChange: I
50
51
  }, {
51
52
  content: m(() => [
@@ -54,13 +55,13 @@ const H = /* @__PURE__ */ y({
54
55
  }, [
55
56
  u(t($), {
56
57
  ref_key: "textAreaRef",
57
- ref: n,
58
+ ref: l,
58
59
  placeholder: t(x)("ap.batchInputGroup.popoverInputPlaceholder", {
59
60
  maxNum: e.maxNum + ""
60
61
  }),
61
62
  bordered: !1,
62
63
  rows: 10,
63
- value: t(h),
64
+ value: t(g),
64
65
  "allow-clear": !1,
65
66
  "auto-size": !1,
66
67
  onInput: C