@aplus-frontend/ui 7.14.3 → 7.14.5

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/ap-field/checkbox/index.vue.d.ts +3 -1
  2. package/es/src/ap-field/checkbox/index.vue.mjs +37 -31
  3. package/es/src/ap-field/interface.d.ts +4 -2
  4. package/es/src/ap-field/radio/index.vue.d.ts +1 -2
  5. package/es/src/ap-field/radio/index.vue.mjs +36 -41
  6. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  7. package/es/src/ap-field/select/index.vue.mjs +41 -39
  8. package/es/src/ap-field/style/select.mjs +1 -1
  9. package/es/src/ap-form/items/radio/index.vue.d.ts +5 -10
  10. package/es/src/ap-form/items/radio/index.vue.mjs +15 -20
  11. package/es/src/ap-table/constants.d.ts +5 -10
  12. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -36
  13. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -27
  14. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +78 -81
  15. package/es/src/config-provider/config-provider-props.d.ts +3 -1
  16. package/es/src/config-provider/config-provider.d.ts +7 -28
  17. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -10
  18. package/es/src/config-provider/index.d.ts +13 -55
  19. package/es/src/version.d.ts +1 -1
  20. package/es/src/version.mjs +1 -1
  21. package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -1
  22. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  23. package/lib/src/ap-field/interface.d.ts +4 -2
  24. package/lib/src/ap-field/radio/index.vue.d.ts +1 -2
  25. package/lib/src/ap-field/radio/index.vue.js +1 -1
  26. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  27. package/lib/src/ap-field/select/index.vue.js +1 -1
  28. package/lib/src/ap-field/style/select.js +1 -1
  29. package/lib/src/ap-form/items/radio/index.vue.d.ts +5 -10
  30. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  31. package/lib/src/ap-table/constants.d.ts +5 -10
  32. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  33. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  34. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  35. package/lib/src/config-provider/config-provider-props.d.ts +3 -1
  36. package/lib/src/config-provider/config-provider.d.ts +7 -28
  37. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -10
  38. package/lib/src/config-provider/index.d.ts +13 -55
  39. package/lib/src/version.d.ts +1 -1
  40. package/lib/src/version.js +1 -1
  41. package/package.json +3 -3
@@ -1,7 +1,6 @@
1
- import { defineComponent as O, useSlots as j, computed as o, createBlock as l, createCommentVNode as x, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as E, normalizeStyle as q, resolveDynamicComponent as k, h as L, createVNode as i, renderList as g, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as F } from "vue";
2
- import { DownOutlined as H } from "@ant-design/icons-vue";
3
- import { DropdownButton as J, Dropdown as K } from "@aplus-frontend/antdv";
4
- import { usePermission as M } from "@aplus-frontend/hooks";
1
+ import { defineComponent as I, computed as t, useSlots as O, createBlock as l, createCommentVNode as j, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as q, normalizeStyle as F, resolveDynamicComponent as g, h as k, createVNode as i, renderList as L, renderSlot as A, normalizeProps as v, guardReactiveProps as b, normalizeClass as H } from "vue";
2
+ import { DownOutlined as J } from "@ant-design/icons-vue";
3
+ import { DropdownButton as K, Dropdown as M } from "@aplus-frontend/antdv";
5
4
  import { useInjectApTable as Q } from "../../ap-table/context.mjs";
6
5
  import "../../ap-button/index.mjs";
7
6
  import "../../config-provider/index.mjs";
@@ -9,9 +8,10 @@ import "./MenuItemGroup.vue.mjs";
9
8
  import U from "./style/index.mjs";
10
9
  import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
11
10
  import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
11
+ import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
12
12
  import B from "./MenuItemGroup.vue2.mjs";
13
- import Y from "../../ap-button/ap-button.vue.mjs";
14
- const de = /* @__PURE__ */ O({
13
+ import Z from "../../ap-button/ap-button.vue.mjs";
14
+ const me = /* @__PURE__ */ I({
15
15
  __name: "ApBatchActionGroup",
16
16
  props: {
17
17
  selectedRows: {},
@@ -19,19 +19,19 @@ const de = /* @__PURE__ */ O({
19
19
  menuList: {}
20
20
  },
21
21
  setup(C, { expose: $ }) {
22
- const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: R } = X(), { columns: T, dataSource: N } = Q(), e = C, { hasPermission: z } = M(), y = j(), w = o(
22
+ const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: G } = X(), { columns: R, dataSource: T } = Q(), e = C, N = Y("apExportGroup"), x = t(() => N.value?.hasPermission), y = O(), w = t(
23
23
  () => e?.buttonProps?.dropdownType || "default"
24
- ), a = o(
24
+ ), a = t(
25
25
  () => e?.buttonProps?.type || "borderLink"
26
- ), P = o(
27
- () => e?.buttonProps?.content || R("ap.apApBatchActionGroup.batchOperation")
28
- ), V = o(() => e?.selectedRows || []), c = o(
29
- () => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? V.value.length === 0 : !1)
30
- ), G = o(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), u = o(() => e?.menuList?.filter((t) => {
31
- if (t === "divider")
26
+ ), P = t(
27
+ () => e?.buttonProps?.content || G("ap.apApBatchActionGroup.batchOperation")
28
+ ), z = t(() => e?.selectedRows || []), c = t(
29
+ () => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? z.value.length === 0 : !1)
30
+ ), E = t(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), u = t(() => e?.menuList?.filter((o) => {
31
+ if (o === "divider")
32
32
  return !0;
33
- let d = t?.ifShow;
34
- return !t?.ifShow && t?.auth && (d = () => z(t.auth)), d?.() ?? !0;
33
+ let d = o?.ifShow;
34
+ return !o?.ifShow && o?.auth && (d = () => x.value?.(o.auth)), d?.() ?? !0;
35
35
  }) || []);
36
36
  function _() {
37
37
  return e?.buttonProps ? {
@@ -40,13 +40,13 @@ const de = /* @__PURE__ */ O({
40
40
  } : {};
41
41
  }
42
42
  return $({
43
- columns: T,
44
- dataSource: N
45
- }), (t, d) => u.value.length && w.value === "dropdown" ? (p(), l(r(J), f({
43
+ columns: R,
44
+ dataSource: T
45
+ }), (o, d) => u.value.length && w.value === "dropdown" ? (p(), l(r(K), f({
46
46
  key: 0,
47
47
  class: [r(h)(), r(D)]
48
48
  }, {
49
- ...t.$attrs,
49
+ ...o.$attrs,
50
50
  ..._(),
51
51
  disabled: c.value
52
52
  }), S({
@@ -56,25 +56,25 @@ const de = /* @__PURE__ */ O({
56
56
  }, { "menu-list": u.value }), null, 16, ["menu-list"])
57
57
  ]),
58
58
  default: n(() => [
59
- E("span", {
60
- style: q({
61
- color: G.value
59
+ q("span", {
60
+ style: F({
61
+ color: E.value
62
62
  })
63
63
  }, [
64
- (p(), l(k(L("span", [P.value]))))
64
+ (p(), l(g(k("span", [P.value]))))
65
65
  ], 4)
66
66
  ]),
67
67
  _: 2
68
68
  }, [
69
- g(y, (I, s) => ({
69
+ L(y, (V, s) => ({
70
70
  name: s,
71
71
  fn: n((m) => [
72
- A(t.$slots, s, b(v(m || {})))
72
+ A(o.$slots, s, v(b(m || {})))
73
73
  ])
74
74
  }))
75
- ]), 1040, ["class"])) : u.value.length && w.value === "default" ? (p(), l(r(K), {
75
+ ]), 1040, ["class"])) : u.value.length && w.value === "default" ? (p(), l(r(M), {
76
76
  key: 1,
77
- class: F([r(h)()]),
77
+ class: H([r(h)()]),
78
78
  disabled: c.value
79
79
  }, S({
80
80
  overlay: n(() => [
@@ -83,29 +83,29 @@ const de = /* @__PURE__ */ O({
83
83
  }, { "menu-list": u.value }), null, 16, ["menu-list"])
84
84
  ]),
85
85
  default: n(() => [
86
- i(r(Y), b(v({
87
- ...t.$attrs,
86
+ i(r(Z), v(b({
87
+ ...o.$attrs,
88
88
  ..._(),
89
89
  type: a.value
90
90
  })), {
91
91
  default: n(() => [
92
- (p(), l(k(L("span", [P.value])))),
93
- i(r(H))
92
+ (p(), l(g(k("span", [P.value])))),
93
+ i(r(J))
94
94
  ]),
95
95
  _: 1
96
96
  }, 16)
97
97
  ]),
98
98
  _: 2
99
99
  }, [
100
- g(y, (I, s) => ({
100
+ L(y, (V, s) => ({
101
101
  name: s,
102
102
  fn: n((m) => [
103
- A(t.$slots, s, b(v(m || {})))
103
+ A(o.$slots, s, v(b(m || {})))
104
104
  ])
105
105
  }))
106
- ]), 1032, ["class", "disabled"])) : x("", !0);
106
+ ]), 1032, ["class", "disabled"])) : j("", !0);
107
107
  }
108
108
  });
109
109
  export {
110
- de as default
110
+ me as default
111
111
  };
@@ -1,16 +1,17 @@
1
- import { defineComponent as v, computed as k, createBlock as r, openBlock as o, unref as u, normalizeProps as T, guardReactiveProps as P, withCtx as c, createElementBlock as i, Fragment as s, renderList as R, createCommentVNode as S, mergeProps as n, resolveDynamicComponent as m, h as _ } from "vue";
2
- import { Space as B } from "@aplus-frontend/antdv";
3
- import { usePermission as x } from "@aplus-frontend/hooks";
4
- import { omit as a } from "lodash-unified";
1
+ import { defineComponent as T, computed as i, createBlock as r, openBlock as o, unref as p, normalizeProps as P, guardReactiveProps as R, withCtx as c, createElementBlock as m, Fragment as a, renderList as x, createCommentVNode as G, mergeProps as s, resolveDynamicComponent as _, h as y } from "vue";
2
+ import { Space as S } from "@aplus-frontend/antdv";
3
+ import { omit as n } from "lodash-unified";
4
+ import "../../config-provider/index.mjs";
5
5
  import "../../ap-button/ap-action-button.vue2.mjs";
6
6
  import "../../ap-button/ap-button.vue2.mjs";
7
7
  import "../ap-batch-action-group/ApBatchActionGroup.vue.mjs";
8
8
  import "../ap-export-group/ApExportGroup.vue.mjs";
9
+ import { useGlobalConfig as B } from "../../config-provider/hooks/use-global-config.mjs";
9
10
  import C from "../../ap-button/ap-button.vue.mjs";
10
- import L from "../../ap-button/ap-action-button.vue.mjs";
11
- import $ from "../ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
12
- import b from "../ap-export-group/ApExportGroup.vue2.mjs";
13
- const H = /* @__PURE__ */ v({
11
+ import b from "../../ap-button/ap-action-button.vue.mjs";
12
+ import g from "../ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
13
+ import L from "../ap-export-group/ApExportGroup.vue2.mjs";
14
+ const J = /* @__PURE__ */ T({
14
15
  __name: "ApButtonGroup",
15
16
  props: {
16
17
  spaceProps: {},
@@ -18,48 +19,48 @@ const H = /* @__PURE__ */ v({
18
19
  selectedRowKeys: {},
19
20
  groupList: {}
20
21
  },
21
- setup(y) {
22
- const { hasPermission: d } = x(), p = y, h = k(() => p.groupList);
22
+ setup(d) {
23
+ const h = B("apExportGroup"), v = i(() => h.value?.hasPermission), u = d, w = i(() => u.groupList);
23
24
  function f(t) {
24
25
  let l = t?.ifShow;
25
- return !t?.ifShow && t?.auth && (l = () => d(t.auth)), l?.() ?? !0;
26
+ return !t?.ifShow && t?.auth && (l = () => v.value?.(t.auth)), l?.() ?? !0;
26
27
  }
27
- return (t, l) => (o(), r(u(B), T(P(p.spaceProps ?? {})), {
28
+ return (t, l) => (o(), r(p(S), P(R(u.spaceProps ?? {})), {
28
29
  default: c(() => [
29
- (o(!0), i(s, null, R(h.value, (e, w) => (o(), i(s, { key: w }, [
30
- e.valueType === "button" && f(e) ? (o(), r(C, n({
30
+ (o(!0), m(a, null, x(w.value, (e, k) => (o(), m(a, { key: k }, [
31
+ e.valueType === "button" && f(e) ? (o(), r(C, s({
31
32
  key: 0,
32
33
  ref_for: !0
33
34
  }, {
34
- ...u(a)(e, ["valueType", "ifShow", "auth"])
35
+ ...p(n)(e, ["valueType", "ifShow", "auth"])
35
36
  }), {
36
37
  default: c(() => [
37
- (o(), r(m(_(s, [e?.content]))))
38
+ (o(), r(_(y(a, [e?.content]))))
38
39
  ]),
39
40
  _: 2
40
- }, 1040)) : e.valueType === "actionButton" && f(e) ? (o(), r(L, n({
41
+ }, 1040)) : e.valueType === "actionButton" && f(e) ? (o(), r(b, s({
41
42
  key: 1,
42
43
  ref_for: !0
43
44
  }, {
44
- ...u(a)(e, ["valueType", "ifShow", "auth"])
45
+ ...p(n)(e, ["valueType", "ifShow", "auth"])
45
46
  }), {
46
47
  default: c(() => [
47
- (o(), r(m(_(s, [e?.content]))))
48
+ (o(), r(_(y(a, [e?.content]))))
48
49
  ]),
49
50
  _: 2
50
- }, 1040)) : e.valueType === "batchActionGroup" ? (o(), r($, n({
51
+ }, 1040)) : e.valueType === "batchActionGroup" ? (o(), r(g, s({
51
52
  key: 2,
52
53
  ref_for: !0
53
54
  }, {
54
- ...u(a)(e, ["valueType"]),
55
- selectedRows: p?.selectedRows
56
- }), null, 16)) : e.valueType === "exportGroup" ? (o(), r(b, n({
55
+ ...p(n)(e, ["valueType"]),
56
+ selectedRows: u?.selectedRows
57
+ }), null, 16)) : e.valueType === "exportGroup" ? (o(), r(L, s({
57
58
  key: 3,
58
59
  ref_for: !0
59
60
  }, {
60
- ...u(a)(e, ["valueType"]),
61
- selectedRowKeys: p?.selectedRowKeys
62
- }), null, 16)) : S("", !0)
61
+ ...p(n)(e, ["valueType"]),
62
+ selectedRowKeys: u?.selectedRowKeys
63
+ }), null, 16)) : G("", !0)
63
64
  ], 64))), 128))
64
65
  ]),
65
66
  _: 1
@@ -67,5 +68,5 @@ const H = /* @__PURE__ */ v({
67
68
  }
68
69
  });
69
70
  export {
70
- H as default
71
+ J as default
71
72
  };
@@ -1,23 +1,22 @@
1
- import { defineComponent as ye, computed as f, ref as Q, watch as ge, createVNode as m, createElementBlock as X, openBlock as d, Fragment as Y, createBlock as g, createCommentVNode as G, unref as t, mergeProps as F, withCtx as c, createTextVNode as _, toDisplayString as P, normalizeClass as V } from "vue";
1
+ import { defineComponent as ye, computed as d, ref as Q, watch as ge, createVNode as m, createElementBlock as X, openBlock as c, Fragment as Y, createBlock as g, createCommentVNode as G, unref as t, mergeProps as V, withCtx as f, createTextVNode as _, toDisplayString as P, normalizeClass as K } from "vue";
2
2
  import { DownOutlined as xe } from "@ant-design/icons-vue";
3
- import { message as q, Space as ve, Tooltip as K, Dropdown as he, Menu as ke, MenuItem as Z } from "@aplus-frontend/antdv";
4
- import { usePermission as be } from "@aplus-frontend/hooks";
5
- import { IconApAdLineAnnotation as j } from "@aplus-frontend/icon";
6
- import { transformTableParamsNoTimezone as Ee, isObjectWithContent as A } from "@aplus-frontend/utils";
3
+ import { message as q, Space as ve, Tooltip as j, Dropdown as he, Menu as ke, MenuItem as Z } from "@aplus-frontend/antdv";
4
+ import { IconApAdLineAnnotation as B } from "@aplus-frontend/icon";
5
+ import { transformTableParamsNoTimezone as be, isObjectWithContent as A } from "@aplus-frontend/utils";
7
6
  import { merge as N } from "lodash-unified";
8
7
  import "../../ap-button/index.mjs";
9
- import { useInjectApTable as we } from "../../ap-table/context.mjs";
8
+ import { useInjectApTable as Ee } from "../../ap-table/context.mjs";
10
9
  import "../../config-provider/index.mjs";
11
- import { ApBatchActionGroup as De } from "../ap-batch-action-group/index.mjs";
12
- import { convertExportField as Le } from "./convertExportField.mjs";
13
- import { handleExportDownload as Re } from "./handleExportDownload.mjs";
10
+ import { ApBatchActionGroup as we } from "../ap-batch-action-group/index.mjs";
11
+ import { convertExportField as De } from "./convertExportField.mjs";
12
+ import { handleExportDownload as Le } from "./handleExportDownload.mjs";
14
13
  import { ApExportGroupActionType as x } from "./interface.mjs";
15
- import Se from "./style/index.mjs";
16
- import { useNamespace as Ce } from "../../config-provider/hooks/use-namespace.mjs";
17
- import { useLocale as Ge } from "../../config-provider/hooks/use-locale.mjs";
18
- import { useGlobalConfig as Me } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import Re from "./style/index.mjs";
15
+ import { useNamespace as Se } from "../../config-provider/hooks/use-namespace.mjs";
16
+ import { useLocale as Ce } from "../../config-provider/hooks/use-locale.mjs";
17
+ import { useGlobalConfig as Ge } from "../../config-provider/hooks/use-global-config.mjs";
19
18
  import $ from "../../ap-button/ap-button.vue.mjs";
20
- const Xe = /* @__PURE__ */ ye({
19
+ const Je = /* @__PURE__ */ ye({
21
20
  __name: "ApExportGroup",
22
21
  props: {
23
22
  type: {
@@ -52,34 +51,32 @@ const Xe = /* @__PURE__ */ ye({
52
51
  handleExported: {}
53
52
  },
54
53
  setup(ee) {
55
- const {
56
- hasPermission: z
57
- } = be(), s = ee, {
58
- columns: U,
59
- dataSource: W,
54
+ const s = ee, {
55
+ columns: z,
56
+ dataSource: U,
60
57
  getSearchFormValues: te,
61
58
  getLastParams: ae
62
- } = we(), {
59
+ } = Ee(), {
63
60
  b: v
64
- } = Ce("ap-export-group"), h = Se("ap-export-group"), {
61
+ } = Se("ap-export-group"), h = Re("ap-export-group"), {
65
62
  t: i
66
- } = Ge(), B = Me("apExportGroup"), H = f(() => B?.value?.exportField), J = f(() => B?.value?.dateValidate), oe = f(() => B?.value?.handleExported), k = f(() => J.value === !0 ? {
63
+ } = Ce(), T = Ge("apExportGroup"), W = d(() => T.value?.hasPermission), H = d(() => T?.value?.exportField), J = d(() => T?.value?.dateValidate), oe = d(() => T?.value?.handleExported), k = d(() => J.value === !0 ? {
67
64
  maxDayRange: 90,
68
65
  smartIdentify: !0,
69
66
  enableMessage: !0
70
- } : J.value), b = f(() => s?.dateValidate === !0 ? {
67
+ } : J.value), b = d(() => s?.dateValidate === !0 ? {
71
68
  maxDayRange: 90,
72
69
  smartIdentify: !0,
73
70
  enableMessage: !0
74
- } : s?.dateValidate), S = Q(!1), I = Q(!1), C = f(() => !!s?.disabled || (W !== void 0 ? !W?.value?.length : !1) || S.value), ne = (e) => e === void 0 ? !1 : typeof e == "object" ? N({}, e) : e === !0 ? {} : e, E = (...e) => {
71
+ } : s?.dateValidate), S = Q(!1), I = Q(!1), C = d(() => !!s?.disabled || (U !== void 0 ? !U?.value?.length : !1) || S.value), ne = (e) => e === void 0 ? !1 : typeof e == "object" ? N({}, e) : e === !0 ? {} : e, E = (...e) => {
75
72
  let a = !1;
76
73
  for (const o of e)
77
74
  if (o !== void 0)
78
75
  if (o === !1)
79
76
  a = !1;
80
77
  else {
81
- const r = ne(o);
82
- r !== !1 && (a = a === !1 ? r : N({}, a, r));
78
+ const l = ne(o);
79
+ l !== !1 && (a = a === !1 ? l : N({}, a, l));
83
80
  }
84
81
  return a;
85
82
  };
@@ -88,7 +85,7 @@ const Xe = /* @__PURE__ */ ye({
88
85
  }, {
89
86
  immediate: !0
90
87
  });
91
- const se = f(() => s?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : s?.successMessage ? s.successMessage : ""), re = (e = s?.exportField) => {
88
+ const se = d(() => s?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : s?.successMessage ? s.successMessage : ""), le = (e = s?.exportField) => {
92
89
  const a = "exportFieldList", o = e ?? (H.value === "" ? !0 : H.value) ?? !1;
93
90
  return o === !0 ? {
94
91
  key: a
@@ -96,14 +93,14 @@ const Xe = /* @__PURE__ */ ye({
96
93
  ...o,
97
94
  key: o.key ?? a
98
95
  } : o;
99
- }, le = {
96
+ }, re = {
100
97
  textAlign: "center"
101
- }, T = f(() => s?.selectedRowKeys || []), O = f(() => {
98
+ }, F = d(() => s?.selectedRowKeys || []), O = d(() => {
102
99
  let e = s?.ifShow;
103
- return !s?.ifShow && s?.auth && (e = () => z(s.auth)), e?.() ?? !0;
100
+ return !s?.ifShow && s?.auth && (e = () => W.value?.(s.auth)), e?.() ?? !0;
104
101
  });
105
102
  async function ue() {
106
- T.value.length > 0 ? M({
103
+ F.value.length > 0 ? M({
107
104
  key: x.SELECT
108
105
  }) : M({
109
106
  key: x.ALL
@@ -114,24 +111,24 @@ const Xe = /* @__PURE__ */ ye({
114
111
  option: a
115
112
  }) {
116
113
  const o = N({}, s, a || {}), {
117
- getRequestParams: r,
114
+ getRequestParams: l,
118
115
  request: D
119
- } = o || {}, n = ae?.()?.sort, l = n ? Ee({
116
+ } = o || {}, n = ae?.()?.sort, r = n ? be({
120
117
  sort: n
121
- }) : {}, u = re(o?.exportField);
118
+ }) : {}, u = le(o?.exportField);
122
119
  let p = {};
123
120
  e === x.SELECT ? p = {
124
- [o?.idKey || "ids"]: T.value
125
- } : e === x.ALL && (p = r?.() || te?.(!0) || {});
121
+ [o?.idKey || "ids"]: F.value
122
+ } : e === x.ALL && (p = l?.() || te?.(!0) || {});
126
123
  const y = o?.getInitialParams?.() || {};
127
124
  try {
128
125
  S.value = !0;
129
126
  let L = Object.assign({
130
127
  ...p,
131
128
  ...y,
132
- ...l
133
- }, u && U?.value ? {
134
- [u.key]: Le(U.value, u?.convertField)
129
+ ...r
130
+ }, u && z?.value ? {
131
+ [u.key]: De(z.value, u?.convertField)
135
132
  } : {});
136
133
  L = o?.beforeRequest?.(L) || L;
137
134
  const R = E(k.value, b.value, a?.dateValidate);
@@ -139,15 +136,15 @@ const Xe = /* @__PURE__ */ ye({
139
136
  params: L,
140
137
  dateValidate: R
141
138
  });
142
- const me = await Re(async () => await D?.(L));
139
+ const me = await Le(async () => await D?.(L));
143
140
  o?.successMessage && q.success(se.value), (o?.handleExported || oe.value)?.(me, L);
144
141
  } finally {
145
142
  S.value = !1;
146
143
  }
147
144
  }
148
- const w = f(() => s?.groupList?.filter((e) => {
145
+ const w = d(() => s?.groupList?.filter((e) => {
149
146
  let a = e?.ifShow;
150
- return !e?.ifShow && e?.auth && (a = () => z(e.auth)), a?.() ?? !0;
147
+ return !e?.ifShow && e?.auth && (a = () => W.value?.(e.auth)), a?.() ?? !0;
151
148
  })?.map((e, a) => ({
152
149
  key: a,
153
150
  content: e?.text,
@@ -156,7 +153,7 @@ const Xe = /* @__PURE__ */ ye({
156
153
  disabled: e?.disabled,
157
154
  dateValidate: e?.dateValidate,
158
155
  onClick: () => {
159
- T.value.length > 0 ? M({
156
+ F.value.length > 0 ? M({
160
157
  key: x.SELECT,
161
158
  option: e
162
159
  }) : M({
@@ -169,12 +166,12 @@ const Xe = /* @__PURE__ */ ye({
169
166
  return m(ve, {
170
167
  size: 4
171
168
  }, {
172
- default: () => [m("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && A(e) ? m(K, {
169
+ default: () => [m("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && A(e) ? m(j, {
173
170
  title: i("ap.apExportGroup.maxMessage", {
174
171
  maxDayRange: e.maxDayRange ?? 90
175
172
  })
176
173
  }, {
177
- default: () => [m(j, {
174
+ default: () => [m(B, {
178
175
  class: [v("icon"), h.value]
179
176
  }, null)]
180
177
  }) : null]
@@ -183,10 +180,10 @@ const Xe = /* @__PURE__ */ ye({
183
180
  ...a,
184
181
  [o]: e?.[o]
185
182
  } : a, {}), de = (e) => {
186
- const a = Object.keys(e), o = [], r = /* @__PURE__ */ new Set(), D = [];
183
+ const a = Object.keys(e), o = [], l = /* @__PURE__ */ new Set(), D = [];
187
184
  for (let n = 0; n < a.length; n++)
188
- for (let l = n + 1; l < a.length; l++) {
189
- const u = a[n], p = a[l];
185
+ for (let r = n + 1; r < a.length; r++) {
186
+ const u = a[n], p = a[r];
190
187
  let y = "";
191
188
  const L = Math.min(u.length, p.length);
192
189
  for (let R = 0; R < L && u[R] === p[R]; R++)
@@ -199,14 +196,14 @@ const Xe = /* @__PURE__ */ ye({
199
196
  diff: Math.abs(e[u] - e[p])
200
197
  });
201
198
  }
202
- D.sort((n, l) => l.length !== n.length ? l.length - n.length : n.diff - l.diff);
199
+ D.sort((n, r) => r.length !== n.length ? r.length - n.length : n.diff - r.diff);
203
200
  for (const n of D)
204
- if (!r.has(n.key1) && !r.has(n.key2)) {
205
- const l = e[n.key1], u = e[n.key2];
201
+ if (!l.has(n.key1) && !l.has(n.key2)) {
202
+ const r = e[n.key1], u = e[n.key2];
206
203
  o.push({
207
- startKey: l < u ? n.key1 : n.key2,
208
- endKey: l < u ? n.key2 : n.key1
209
- }), r.add(n.key1), r.add(n.key2);
204
+ startKey: r < u ? n.key1 : n.key2,
205
+ endKey: r < u ? n.key2 : n.key1
206
+ }), l.add(n.key1), l.add(n.key2);
210
207
  }
211
208
  return o;
212
209
  }, ce = ({
@@ -219,17 +216,17 @@ const Xe = /* @__PURE__ */ ye({
219
216
  }) => {
220
217
  if (a.enableMessage === !1)
221
218
  return;
222
- const o = a.maxDayRange ?? 90, r = pe(e), D = [...a.smartIdentify ?? !0 ? de(r) : [], ...a.dateKeyList?.filter((n) => r[n.startKey || ""] && r[n.endKey || ""]) ?? []];
219
+ const o = a.maxDayRange ?? 90, l = pe(e), D = [...a.smartIdentify ?? !0 ? de(l) : [], ...a.dateKeyList?.filter((n) => l[n.startKey || ""] && l[n.endKey || ""]) ?? []];
223
220
  if (D.length === 0) {
224
221
  q.warn(a?.emptyTooltip ?? i("ap.apExportGroup.emptyTooltip", {
225
222
  maxDayRange: o
226
223
  }));
227
224
  return;
228
225
  } else if (D.some(({
229
- startKey: l,
226
+ startKey: r,
230
227
  endKey: u
231
228
  }) => {
232
- const p = r[l || ""], y = r[u || ""];
229
+ const p = l[r || ""], y = l[u || ""];
233
230
  return p !== void 0 && y !== void 0 && !ce({
234
231
  startTime: p,
235
232
  endTime: y,
@@ -242,7 +239,7 @@ const Xe = /* @__PURE__ */ ye({
242
239
  return;
243
240
  }
244
241
  };
245
- return (e, a) => (d(), X(Y, null, [O.value && s.type === "button" ? (d(), g(t($), F({
242
+ return (e, a) => (c(), X(Y, null, [O.value && s.type === "button" ? (c(), g(t($), V({
246
243
  key: 0
247
244
  }, {
248
245
  ...e.$attrs
@@ -253,65 +250,65 @@ const Xe = /* @__PURE__ */ ye({
253
250
  "min-width": "",
254
251
  onClick: ue
255
252
  }), {
256
- default: c(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (d(), g(t(K), {
253
+ default: f(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (c(), g(t(j), {
257
254
  key: 0,
258
255
  title: t(i)("ap.apExportGroup.maxMessage", {
259
256
  maxDayRange: E(k.value, b.value).maxDayRange ?? 90
260
257
  })
261
258
  }, {
262
- default: c(() => [m(t(j), {
263
- class: V([t(v)("icon"), t(h)])
259
+ default: f(() => [m(t(B), {
260
+ class: K([t(v)("icon"), t(h)])
264
261
  }, null, 8, ["class"])]),
265
262
  _: 1
266
263
  }, 8, ["title"])) : G("", !0)]),
267
264
  _: 1
268
- }, 16, ["class", "disabled", "loading"])) : G("", !0), O.value && s.type === "dropdown" ? (d(), g(t(he), {
265
+ }, 16, ["class", "disabled", "loading"])) : G("", !0), O.value && s.type === "dropdown" ? (c(), g(t(he), {
269
266
  key: 1,
270
267
  open: I.value,
271
268
  "onUpdate:open": a[0] || (a[0] = (o) => I.value = o),
272
- class: V([t(v)(), t(h)]),
273
- "overlay-style": le,
269
+ class: K([t(v)(), t(h)]),
270
+ "overlay-style": re,
274
271
  disabled: C.value
275
272
  }, {
276
- overlay: c(() => [m(t(ke), {
273
+ overlay: f(() => [m(t(ke), {
277
274
  onClick: M
278
275
  }, {
279
- default: c(() => [(d(), g(t(Z), {
276
+ default: f(() => [(c(), g(t(Z), {
280
277
  key: t(x).SELECT,
281
- disabled: T.value?.length === 0
278
+ disabled: F.value?.length === 0
282
279
  }, {
283
- default: c(() => [_(P(t(i)("ap.apExportGroup.exportSelected")), 1)]),
280
+ default: f(() => [_(P(t(i)("ap.apExportGroup.exportSelected")), 1)]),
284
281
  _: 1
285
- }, 8, ["disabled"])), (d(), g(t(Z), {
282
+ }, 8, ["disabled"])), (c(), g(t(Z), {
286
283
  key: t(x).ALL
287
284
  }, {
288
- default: c(() => [_(P(t(i)("ap.apExportGroup.exportAll")), 1)]),
285
+ default: f(() => [_(P(t(i)("ap.apExportGroup.exportAll")), 1)]),
289
286
  _: 1
290
287
  }))]),
291
288
  _: 1
292
289
  })]),
293
- default: c(() => [m(t($), F({
290
+ default: f(() => [m(t($), V({
294
291
  ...e.$attrs
295
292
  }, {
296
293
  loading: S.value
297
294
  }), {
298
- default: c(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (d(), g(t(K), {
295
+ default: f(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (c(), g(t(j), {
299
296
  key: 0,
300
297
  title: t(i)("ap.apExportGroup.maxMessage", {
301
298
  maxDayRange: E(k.value, b.value).maxDayRange ?? 90
302
299
  })
303
300
  }, {
304
- default: c(() => [m(t(j), {
305
- class: V([t(v)("icon"), t(h)])
301
+ default: f(() => [m(t(B), {
302
+ class: K([t(v)("icon"), t(h)])
306
303
  }, null, 8, ["class"])]),
307
304
  _: 1
308
305
  }, 8, ["title"])) : G("", !0), m(t(xe))]),
309
306
  _: 1
310
307
  }, 16, ["loading"])]),
311
308
  _: 1
312
- }, 8, ["open", "class", "disabled"])) : G("", !0), O.value && s.type === "group" ? (d(), X(Y, {
309
+ }, 8, ["open", "class", "disabled"])) : G("", !0), O.value && s.type === "group" ? (c(), X(Y, {
313
310
  key: 2
314
- }, [w.value.length === 1 ? (d(), g(t($), F({
311
+ }, [w.value.length === 1 ? (c(), g(t($), V({
315
312
  key: 0
316
313
  }, {
317
314
  ...e.$attrs
@@ -322,19 +319,19 @@ const Xe = /* @__PURE__ */ ye({
322
319
  "min-width": "",
323
320
  onClick: w.value?.[0]?.onClick
324
321
  }), {
325
- default: c(() => [_(P(w.value?.[0]?.content ?? s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value, w.value?.[0]?.dateValidate)) ? (d(), g(t(K), {
322
+ default: f(() => [_(P(w.value?.[0]?.content ?? s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value, w.value?.[0]?.dateValidate)) ? (c(), g(t(j), {
326
323
  key: 0,
327
324
  title: t(i)("ap.apExportGroup.maxMessage", {
328
325
  maxDayRange: E(k.value, b.value, w.value?.[0]?.dateValidate).maxDayRange ?? 90
329
326
  })
330
327
  }, {
331
- default: c(() => [m(t(j), {
332
- class: V([t(v)("icon"), t(h)])
328
+ default: f(() => [m(t(B), {
329
+ class: K([t(v)("icon"), t(h)])
333
330
  }, null, 8, ["class"])]),
334
331
  _: 1
335
332
  }, 8, ["title"])) : G("", !0)]),
336
333
  _: 1
337
- }, 16, ["class", "disabled", "loading", "onClick"])) : (d(), g(t(De), F({
334
+ }, 16, ["class", "disabled", "loading", "onClick"])) : (c(), g(t(we), V({
338
335
  key: 1
339
336
  }, {
340
337
  ...e.$attrs
@@ -352,5 +349,5 @@ const Xe = /* @__PURE__ */ ye({
352
349
  }
353
350
  });
354
351
  export {
355
- Xe as default
352
+ Je as default
356
353
  };
@@ -21,7 +21,9 @@ type ApProCardConfig = {
21
21
  type ApImageConfig = Pick<ApImageProps, 'uiMode'>;
22
22
  type ApTitleConfig = Pick<ApTitleProps, 'uiMode'>;
23
23
  type ApFilePreviewConfig = Pick<ApFilePreviewProps, 'parserPlugin'>;
24
- type ApExportGroupConfig = Pick<ApExportGroupListItem, 'dateValidate' | 'exportField' | 'handleExported'>;
24
+ type ApExportGroupConfig = Pick<ApExportGroupListItem, 'dateValidate' | 'exportField' | 'handleExported'> & {
25
+ hasPermission?: any;
26
+ };
25
27
  export declare const configProviderProps: () => {
26
28
  iconPrefixCls: StringConstructor;
27
29
  getTargetContainer: {