@aplus-frontend/ui 0.2.27 → 0.2.29

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/number/index.vue.d.ts +8 -8
  2. package/es/src/ap-field/select/index.vue.mjs +10 -10
  3. package/es/src/ap-field/text/index.vue2.mjs +23 -20
  4. package/es/src/ap-field/text/password.vue.mjs +19 -16
  5. package/es/src/ap-field/text-area/index.vue.mjs +7 -4
  6. package/es/src/ap-form/items/text/index.vue.d.ts +30 -0
  7. package/es/src/ap-form/items/text/password.vue.d.ts +30 -0
  8. package/es/src/ap-form/items/text-area/index.vue.d.ts +27 -0
  9. package/es/src/ap-form/search-form/index.vue.mjs +77 -77
  10. package/es/src/ap-form/search-form/utils.d.ts +1 -0
  11. package/es/src/ap-form/search-form/utils.mjs +18 -11
  12. package/es/src/ap-table/constants.d.ts +90 -0
  13. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
  14. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +57 -56
  15. package/es/src/business/ap-export-group/index.d.ts +57 -35
  16. package/es/src/business/ap-export-group/interface.d.ts +1 -0
  17. package/es/src/business/ap-summary/ap-summary.vue2.mjs +5 -5
  18. package/es/src/business/batch-input-group/index.vue.mjs +35 -32
  19. package/es/src/locale/lang/en.mjs +2 -1
  20. package/es/src/locale/lang/zh-cn.mjs +2 -1
  21. package/lib/src/ap-field/number/index.vue.d.ts +8 -8
  22. package/lib/src/ap-field/select/index.vue.js +1 -1
  23. package/lib/src/ap-field/text/index.vue2.js +1 -1
  24. package/lib/src/ap-field/text/password.vue.js +1 -1
  25. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  26. package/lib/src/ap-form/items/text/index.vue.d.ts +30 -0
  27. package/lib/src/ap-form/items/text/password.vue.d.ts +30 -0
  28. package/lib/src/ap-form/items/text-area/index.vue.d.ts +27 -0
  29. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  30. package/lib/src/ap-form/search-form/utils.d.ts +1 -0
  31. package/lib/src/ap-form/search-form/utils.js +1 -1
  32. package/lib/src/ap-table/constants.d.ts +90 -0
  33. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
  34. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  35. package/lib/src/business/ap-export-group/index.d.ts +57 -35
  36. package/lib/src/business/ap-export-group/interface.d.ts +1 -0
  37. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  38. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  39. package/lib/src/locale/lang/en.js +1 -1
  40. package/lib/src/locale/lang/zh-cn.js +1 -1
  41. package/package.json +5 -5
@@ -1,84 +1,85 @@
1
- import { defineComponent as G, computed as i, ref as M, openBlock as m, createBlock as f, unref as o, normalizeClass as D, withCtx as n, createVNode as y, createTextVNode as p, toDisplayString as x, mergeProps as K, createCommentVNode as R } from "vue";
2
- import { DownOutlined as B } from "@ant-design/icons-vue";
3
- import { Dropdown as N, Menu as T, MenuItem as g, Button as I } from "@aplus-frontend/antdv";
1
+ import { defineComponent as B, computed as l, ref as D, openBlock as m, createBlock as f, unref as a, normalizeClass as K, withCtx as s, createVNode as y, createTextVNode as g, toDisplayString as x, mergeProps as R, createCommentVNode as N } from "vue";
2
+ import { DownOutlined as T } from "@ant-design/icons-vue";
3
+ import { message as I, Dropdown as V, Menu as q, MenuItem as M, Button as F } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { ApExportGroupActionType as u } from "./interface.mjs";
6
- import { usePermission as V } from "@aplus-frontend/hooks";
7
- import { handleExportDownload as q } from "./handleExportDownload.mjs";
8
- import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as O } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
11
- const te = /* @__PURE__ */ G({
5
+ import { ApExportGroupActionType as i } from "./interface.mjs";
6
+ import { usePermission as z } from "@aplus-frontend/hooks";
7
+ import { handleExportDownload as O } from "./handleExportDownload.mjs";
8
+ import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as j } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useGlobalConfig as H } from "../../config-provider/hooks/use-global-config.mjs";
11
+ const oe = /* @__PURE__ */ B({
12
12
  __name: "ApExportGroup",
13
13
  props: {
14
14
  selectedRowKeys: {},
15
15
  disabled: { type: Boolean },
16
16
  auth: {},
17
- ifShow: { type: Function },
17
+ ifShow: {},
18
18
  text: {},
19
19
  idKey: {},
20
- request: { type: Function },
21
- getRequestParams: { type: Function },
22
- getInitialParams: { type: Function },
23
- beforeRequest: { type: Function }
20
+ request: {},
21
+ getRequestParams: {},
22
+ getInitialParams: {},
23
+ beforeRequest: {},
24
+ successMessage: { type: [Boolean, String], default: !1 }
24
25
  },
25
- setup(C) {
26
- const { hasPermission: E } = V(), e = C, { b: _ } = z("ap-export-group"), { t: c } = O(), L = $("uiMode"), S = i(() => {
26
+ setup(E) {
27
+ const { hasPermission: C } = z(), e = E, { b: S } = $("ap-export-group"), { t: n } = j(), _ = H("uiMode"), L = l(() => {
27
28
  const t = {
28
29
  aplus: "#0070FF",
29
30
  admin: "#34b77c"
30
31
  };
31
- return b.value ? "" : t[L.value] || t.aplus;
32
- }), b = i(() => !!(e != null && e.disabled)), A = {
32
+ return b.value ? "" : t[_.value] || t.aplus;
33
+ }), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
33
34
  textAlign: "center"
34
- }, s = M(!1), w = i(() => (e == null ? void 0 : e.selectedRowKeys) || []), F = i(() => {
35
+ }, c = D(!1), w = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
35
36
  let t = e == null ? void 0 : e.ifShow;
36
- return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => E(e.auth)), (t == null ? void 0 : t()) ?? !0;
37
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
37
38
  });
38
- async function P({ key: t }) {
39
- var h, v;
40
- const { getRequestParams: l, request: a } = e || {};
39
+ async function k({ key: t }) {
40
+ var v, h;
41
+ const { getRequestParams: u, request: o } = e || {};
41
42
  let d = {};
42
- t === u.SELECT ? d = {
43
+ t === i.SELECT ? d = {
43
44
  [(e == null ? void 0 : e.idKey) || "ids"]: w.value
44
- } : t === u.ALL && (d = (l == null ? void 0 : l()) || {});
45
- const k = ((h = e == null ? void 0 : e.getInitialParams) == null ? void 0 : h.call(e)) || {};
45
+ } : t === i.ALL && (d = (u == null ? void 0 : u()) || {});
46
+ const p = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
46
47
  try {
47
- s.value = !0;
48
+ c.value = !0;
48
49
  let r = {
49
50
  ...d,
50
- ...k
51
+ ...p
51
52
  };
52
- r = ((v = e == null ? void 0 : e.beforeRequest) == null ? void 0 : v.call(e, r)) || r, await q(async () => await (a == null ? void 0 : a(r)));
53
+ r = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, r)) || r, await O(async () => await (o == null ? void 0 : o(r))), e != null && e.successMessage && I.success(A.value);
53
54
  } finally {
54
- s.value = !1;
55
+ c.value = !1;
55
56
  }
56
57
  }
57
- return (t, l) => F.value ? (m(), f(o(N), {
58
+ return (t, u) => P.value ? (m(), f(a(V), {
58
59
  key: 0,
59
- class: D([o(_)()]),
60
- overlayStyle: A,
60
+ class: K([a(S)()]),
61
+ overlayStyle: G,
61
62
  disabled: b.value
62
63
  }, {
63
- overlay: n(() => [
64
- y(o(T), { onClick: P }, {
65
- default: n(() => {
66
- var a;
64
+ overlay: s(() => [
65
+ y(a(q), { onClick: k }, {
66
+ default: s(() => {
67
+ var o;
67
68
  return [
68
- (m(), f(o(g), {
69
- key: o(u).SELECT,
70
- disabled: ((a = w.value) == null ? void 0 : a.length) === 0
69
+ (m(), f(a(M), {
70
+ key: a(i).SELECT,
71
+ disabled: ((o = w.value) == null ? void 0 : o.length) === 0
71
72
  }, {
72
- default: n(() => [
73
- p(x(o(c)("ap.apExportGroup.exportSelected")), 1)
73
+ default: s(() => [
74
+ g(x(a(n)("ap.apExportGroup.exportSelected")), 1)
74
75
  ]),
75
76
  _: 1
76
77
  }, 8, ["disabled"])),
77
- (m(), f(o(g), {
78
- key: o(u).ALL
78
+ (m(), f(a(M), {
79
+ key: a(i).ALL
79
80
  }, {
80
- default: n(() => [
81
- p(x(o(c)("ap.apExportGroup.exportAll")), 1)
81
+ default: s(() => [
82
+ g(x(a(n)("ap.apExportGroup.exportAll")), 1)
82
83
  ]),
83
84
  _: 1
84
85
  }))
@@ -87,26 +88,26 @@ const te = /* @__PURE__ */ G({
87
88
  _: 1
88
89
  })
89
90
  ]),
90
- default: n(() => [
91
- y(o(I), K({
91
+ default: s(() => [
92
+ y(a(F), R({
92
93
  ...t.$attrs
93
94
  }, {
94
95
  style: {
95
- color: S.value
96
+ color: L.value
96
97
  },
97
- loading: s.value
98
+ loading: c.value
98
99
  }), {
99
- default: n(() => [
100
- p(x((e == null ? void 0 : e.text) ?? o(c)("ap.apExportGroup.export")) + " ", 1),
101
- y(o(B))
100
+ default: s(() => [
101
+ g(x((e == null ? void 0 : e.text) ?? a(n)("ap.apExportGroup.export")) + " ", 1),
102
+ y(a(T))
102
103
  ]),
103
104
  _: 1
104
105
  }, 16, ["style", "loading"])
105
106
  ]),
106
107
  _: 1
107
- }, 8, ["class", "disabled"])) : R("", !0);
108
+ }, 8, ["class", "disabled"])) : N("", !0);
108
109
  }
109
110
  });
110
111
  export {
111
- te as default
112
+ oe as default
112
113
  };
@@ -3,27 +3,27 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
3
3
  export * from './interface';
4
4
  declare const ApExportGroup: {
5
5
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
6
- selectedRowKeys: {
7
- type: PropType<any[]>;
6
+ text: {
7
+ type: PropType<string>;
8
8
  };
9
9
  disabled: {
10
10
  type: PropType<boolean>;
11
11
  };
12
- auth: {
13
- type: PropType<string>;
12
+ request: {
13
+ type: PropType<(key: any) => Promise<any>>;
14
+ };
15
+ selectedRowKeys: {
16
+ type: PropType<any[]>;
14
17
  };
15
18
  ifShow: {
16
19
  type: PropType<() => boolean>;
17
20
  };
18
- text: {
21
+ auth: {
19
22
  type: PropType<string>;
20
23
  };
21
24
  idKey: {
22
25
  type: PropType<string>;
23
26
  };
24
- request: {
25
- type: PropType<(key: any) => Promise<any>>;
26
- };
27
27
  getRequestParams: {
28
28
  type: PropType<() => Record<string, any>>;
29
29
  };
@@ -33,28 +33,32 @@ declare const ApExportGroup: {
33
33
  beforeRequest: {
34
34
  type: PropType<(params: any) => Record<string, any>>;
35
35
  };
36
+ successMessage: {
37
+ type: PropType<string | boolean>;
38
+ default: boolean;
39
+ };
36
40
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
37
- selectedRowKeys: {
38
- type: PropType<any[]>;
41
+ text: {
42
+ type: PropType<string>;
39
43
  };
40
44
  disabled: {
41
45
  type: PropType<boolean>;
42
46
  };
43
- auth: {
44
- type: PropType<string>;
47
+ request: {
48
+ type: PropType<(key: any) => Promise<any>>;
49
+ };
50
+ selectedRowKeys: {
51
+ type: PropType<any[]>;
45
52
  };
46
53
  ifShow: {
47
54
  type: PropType<() => boolean>;
48
55
  };
49
- text: {
56
+ auth: {
50
57
  type: PropType<string>;
51
58
  };
52
59
  idKey: {
53
60
  type: PropType<string>;
54
61
  };
55
- request: {
56
- type: PropType<(key: any) => Promise<any>>;
57
- };
58
62
  getRequestParams: {
59
63
  type: PropType<() => Record<string, any>>;
60
64
  };
@@ -64,7 +68,13 @@ declare const ApExportGroup: {
64
68
  beforeRequest: {
65
69
  type: PropType<(params: any) => Record<string, any>>;
66
70
  };
67
- }>>, {}, true, {}, {}, {
71
+ successMessage: {
72
+ type: PropType<string | boolean>;
73
+ default: boolean;
74
+ };
75
+ }>>, {
76
+ successMessage: boolean | string;
77
+ }, true, {}, {}, {
68
78
  P: {};
69
79
  B: {};
70
80
  D: {};
@@ -72,27 +82,27 @@ declare const ApExportGroup: {
72
82
  M: {};
73
83
  Defaults: {};
74
84
  }, Readonly< ExtractPropTypes<{
75
- selectedRowKeys: {
76
- type: PropType<any[]>;
85
+ text: {
86
+ type: PropType<string>;
77
87
  };
78
88
  disabled: {
79
89
  type: PropType<boolean>;
80
90
  };
81
- auth: {
82
- type: PropType<string>;
91
+ request: {
92
+ type: PropType<(key: any) => Promise<any>>;
93
+ };
94
+ selectedRowKeys: {
95
+ type: PropType<any[]>;
83
96
  };
84
97
  ifShow: {
85
98
  type: PropType<() => boolean>;
86
99
  };
87
- text: {
100
+ auth: {
88
101
  type: PropType<string>;
89
102
  };
90
103
  idKey: {
91
104
  type: PropType<string>;
92
105
  };
93
- request: {
94
- type: PropType<(key: any) => Promise<any>>;
95
- };
96
106
  getRequestParams: {
97
107
  type: PropType<() => Record<string, any>>;
98
108
  };
@@ -102,32 +112,38 @@ declare const ApExportGroup: {
102
112
  beforeRequest: {
103
113
  type: PropType<(params: any) => Record<string, any>>;
104
114
  };
105
- }>>, {}, {}, {}, {}, {}>;
115
+ successMessage: {
116
+ type: PropType<string | boolean>;
117
+ default: boolean;
118
+ };
119
+ }>>, {}, {}, {}, {}, {
120
+ successMessage: boolean | string;
121
+ }>;
106
122
  __isFragment?: never;
107
123
  __isTeleport?: never;
108
124
  __isSuspense?: never;
109
125
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
110
- selectedRowKeys: {
111
- type: PropType<any[]>;
126
+ text: {
127
+ type: PropType<string>;
112
128
  };
113
129
  disabled: {
114
130
  type: PropType<boolean>;
115
131
  };
116
- auth: {
117
- type: PropType<string>;
132
+ request: {
133
+ type: PropType<(key: any) => Promise<any>>;
134
+ };
135
+ selectedRowKeys: {
136
+ type: PropType<any[]>;
118
137
  };
119
138
  ifShow: {
120
139
  type: PropType<() => boolean>;
121
140
  };
122
- text: {
141
+ auth: {
123
142
  type: PropType<string>;
124
143
  };
125
144
  idKey: {
126
145
  type: PropType<string>;
127
146
  };
128
- request: {
129
- type: PropType<(key: any) => Promise<any>>;
130
- };
131
147
  getRequestParams: {
132
148
  type: PropType<() => Record<string, any>>;
133
149
  };
@@ -137,7 +153,13 @@ declare const ApExportGroup: {
137
153
  beforeRequest: {
138
154
  type: PropType<(params: any) => Record<string, any>>;
139
155
  };
140
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
156
+ successMessage: {
157
+ type: PropType<string | boolean>;
158
+ default: boolean;
159
+ };
160
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
161
+ successMessage: boolean | string;
162
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
141
163
  $props: {
142
164
  onClick?: () => void;
143
165
  };
@@ -37,6 +37,7 @@ export interface ApExportGroupProps {
37
37
  */
38
38
  getInitialParams?: () => Record<string, any>;
39
39
  beforeRequest?: (params: any) => Record<string, any>;
40
+ successMessage?: boolean | string;
40
41
  }
41
42
  export declare enum ApExportGroupActionType {
42
43
  ALL = "ALL",
@@ -1,11 +1,11 @@
1
- import { defineComponent as v, computed as L, createVNode as N, Fragment as y, openBlock as m, createBlock as i, unref as r, normalizeClass as f, withCtx as x, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
1
+ import { defineComponent as I, computed as L, createVNode as N, Fragment as y, openBlock as m, createBlock as i, unref as r, normalizeClass as f, withCtx as x, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
2
2
  import { isNil as A, get as c } from "lodash-unified";
3
3
  import { TableSummaryRow as D, TableSummaryCell as F } from "@aplus-frontend/antdv";
4
4
  import { flattenColumns as V, formatDataIndex as u } from "./utils.mjs";
5
5
  import "../../config-provider/index.mjs";
6
6
  import { isNumeric as E, toThousand as P, toFixed as $ } from "@aplus-frontend/utils";
7
7
  import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
8
- const Q = /* @__PURE__ */ v({
8
+ const Q = /* @__PURE__ */ I({
9
9
  name: "ApSummary",
10
10
  __name: "ap-summary",
11
11
  props: {
@@ -25,7 +25,7 @@ const Q = /* @__PURE__ */ v({
25
25
  setup(k) {
26
26
  const n = k, h = (a) => a === 0, T = (a, o) => {
27
27
  var s;
28
- if (!a || !E(a) || o.valueType !== "number")
28
+ if (!E(a) || o.valueType !== "number")
29
29
  return a;
30
30
  const e = (s = o.fieldProps) == null ? void 0 : s.field, t = (e == null ? void 0 : e.precision) || 0;
31
31
  return (A(e == null ? void 0 : e.thousands) ? !0 : e == null ? void 0 : e.thousands) ? P(a, t) : $(a, t);
@@ -43,11 +43,11 @@ const Q = /* @__PURE__ */ v({
43
43
  if (h(d))
44
44
  s = n.summaryTitle;
45
45
  else if (b && (t.customRender || t.renderText)) {
46
- const p = c(n.data, u(t.dataIndex || t.key)), I = u(t.dataIndex || t.key), l = t.customRender || t.renderText;
46
+ const p = c(n.data, u(t.dataIndex || t.key)), v = u(t.dataIndex || t.key), l = t.customRender || t.renderText;
47
47
  s = l == null ? void 0 : l({
48
48
  value: p,
49
49
  record: {
50
- [I]: p
50
+ [v]: p
51
51
  },
52
52
  text: void 0,
53
53
  index: 0,
@@ -1,14 +1,14 @@
1
- import { defineComponent as O, ref as B, computed as u, unref as n, openBlock as g, createElementBlock as P, createVNode as s, withCtx as A, createBlock as T, normalizeStyle as z, createCommentVNode as K, mergeProps as $ } from "vue";
1
+ import { defineComponent as O, ref as B, computed as r, unref as n, openBlock as g, createElementBlock as P, createVNode as s, withCtx as A, createBlock as T, normalizeStyle as z, createCommentVNode as K, mergeProps as M } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
- import { Space as D } from "@aplus-frontend/antdv";
3
+ import { Space as $ } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { omit as G } from "lodash-unified";
5
+ import { omit as D } from "lodash-unified";
6
6
  import "./popover-input/index.vue.mjs";
7
7
  import "../../hooks/index.mjs";
8
- import { isDef as N } from "../../utils/index.mjs";
9
- import { useDefaultPlaceholder as q } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
- import { useControllableValue as H } from "../../hooks/useControllableValue.mjs";
11
- import { useLocale as M } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { isDef as G } from "../../utils/index.mjs";
9
+ import { useDefaultPlaceholder as N } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
+ import { useControllableValue as q } from "../../hooks/useControllableValue.mjs";
11
+ import { useLocale as H } from "../../config-provider/hooks/use-locale.mjs";
12
12
  import Y from "../../ap-field/select/index.vue.mjs";
13
13
  import { ApFieldText as J } from "../../ap-field/text/index.mjs";
14
14
  import Q from "./popover-input/index.vue2.mjs";
@@ -39,10 +39,13 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
39
39
  onPressEnter: {},
40
40
  onKeydown: {},
41
41
  onKeyup: {},
42
+ onMousedown: {},
43
+ onMouseUp: {},
42
44
  onFocus: {},
43
45
  onBlur: {},
44
46
  onChange: {},
45
47
  onInput: {},
48
+ onRawInput: {},
46
49
  onCompositionstart: {},
47
50
  onCompositionend: {},
48
51
  valueModifiers: {},
@@ -66,53 +69,53 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
66
69
  },
67
70
  emits: ["update:value"],
68
71
  setup(V, { emit: C }) {
69
- const l = V, S = q("Text", l), x = C, { value: a, updateValue: i } = H(
72
+ const l = V, S = N("Text", l), x = C, { value: a, updateValue: p } = q(
70
73
  l,
71
74
  x
72
- ), f = B(), d = B(), { t: b } = M(), I = u(() => l.options ? l.options.length > 1 && l.hasAll ? [
73
- { value: c, label: b("ap.apGroupSearch.all") },
75
+ ), f = B(), d = B(), { t: I } = H(), U = r(() => l.options ? l.options.length > 1 && l.hasAll ? [
76
+ { value: c, label: I("ap.apGroupSearch.all") },
74
77
  ...l.options
75
- ] : l.options : []), U = u(() => l.options ? l.options.map((e) => e.value) : []), _ = u(() => {
78
+ ] : l.options : []), b = r(() => l.options ? l.options.map((e) => e.value) : []), w = r(() => {
76
79
  var e, t;
77
80
  return (t = (e = n(a)) == null ? void 0 : e.value) != null && t.length ? n(a).value.join(",") : "";
78
- }), k = u(() => {
81
+ }), _ = r(() => {
79
82
  var e, t;
80
83
  return (t = (e = n(a)) == null ? void 0 : e.value) != null && t.length ? n(a).value.join(`
81
84
  `) : "";
82
- }), w = u(() => {
85
+ }), k = r(() => {
83
86
  var t;
84
87
  const e = (t = n(a)) == null ? void 0 : t.key;
85
88
  if (e != null && e.length)
86
89
  return e.length === 1 ? e[0] : c;
87
- }), R = u(() => {
90
+ }), R = r(() => {
88
91
  var o;
89
92
  const e = (o = n(a)) == null ? void 0 : o.key;
90
- return !e || (e == null ? void 0 : e.length) <= 1 ? n(S) : (l.options || []).filter((r) => e.includes(r.value)).map((r) => r.label).join("/");
93
+ return !e || (e == null ? void 0 : e.length) <= 1 ? n(S) : (l.options || []).filter((u) => e.includes(u.value)).map((u) => u.label).join("/");
91
94
  });
92
95
  function j(e) {
93
- const t = n(a) || {}, o = e === c ? n(U) : N(e) ? [e] : [];
94
- i({
96
+ const t = n(a) || {}, o = e === c ? n(b) : G(e) ? [e] : [];
97
+ p({
95
98
  ...t,
96
99
  key: o
97
100
  });
98
101
  }
99
102
  function E(e) {
100
103
  var v, y;
101
- const t = n(a) || {}, o = e.target.value || "", r = o.replace(/[,]+/g, ",");
102
- if (o !== r) {
104
+ const t = n(a) || {}, o = e.target.value || "", u = o.replace(/[,]+/g, ",");
105
+ if (o !== u) {
103
106
  const h = (y = (v = d.value) == null ? void 0 : v.$el) == null ? void 0 : y.querySelector("input");
104
- h && (h.value = r);
107
+ h && (h.value = u);
105
108
  }
106
- let p = r.split(",");
107
- p.length === 1 && p[0] === "" && (p = []), i({
109
+ let i = u.split(",");
110
+ i.length === 1 && i[0] === "" && (i = []), p({
108
111
  ...t,
109
- value: p
112
+ value: i
110
113
  });
111
114
  }
112
115
  function F(e) {
113
116
  const t = n(a) || {};
114
117
  let o = e.split(/,|\n/);
115
- i({
118
+ p({
116
119
  ...t,
117
120
  value: o
118
121
  });
@@ -120,7 +123,7 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
120
123
  function m() {
121
124
  var o;
122
125
  const e = n(a) || {}, t = (o = e.value) == null ? void 0 : o.filter(Boolean);
123
- i({
126
+ p({
124
127
  ...e,
125
128
  value: t
126
129
  });
@@ -138,22 +141,22 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
138
141
  onBlur: t[1] || (t[1] = //@ts-ignore
139
142
  (...o) => e.onBlur && e.onBlur(...o))
140
143
  }, [
141
- s(n(D).Compact, { block: "" }, {
144
+ s(n($).Compact, { block: "" }, {
142
145
  default: A(() => {
143
146
  var o;
144
147
  return [
145
148
  (o = e.options) != null && o.length ? (g(), T(n(Y), {
146
149
  key: 0,
147
150
  style: z(e.style),
148
- options: I.value,
149
- value: w.value,
151
+ options: U.value,
152
+ value: k.value,
150
153
  "onUpdate:value": j,
151
154
  "allow-clear": !1,
152
155
  "dropdown-match-select-width": !1
153
156
  }, null, 8, ["style", "options", "value"])) : K("", !0),
154
- s(n(J), $(
157
+ s(n(J), M(
155
158
  { style: e.inputStyle },
156
- n(G)(l, [
159
+ n(D)(l, [
157
160
  "style",
158
161
  "value",
159
162
  "onUpdate:value",
@@ -164,7 +167,7 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
164
167
  {
165
168
  ref_key: "inputRef",
166
169
  ref: d,
167
- value: _.value,
170
+ value: w.value,
168
171
  onInput: E,
169
172
  onBlur: L,
170
173
  placeholder: R.value
@@ -173,7 +176,7 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
173
176
  suffix: A(() => [
174
177
  s(Q, {
175
178
  _parent: f.value,
176
- value: k.value,
179
+ value: _.value,
177
180
  "onUpdate:value": F,
178
181
  onClose: m
179
182
  }, null, 8, ["_parent", "value"])
@@ -78,7 +78,8 @@ const e = {
78
78
  exportError: "Export error",
79
79
  exportSelected: "Export selected",
80
80
  exportAll: "Export all",
81
- export: "Export Excel"
81
+ export: "Export Excel",
82
+ exportSuccess: "The task has been submitted,please go to the download center to check the progress"
82
83
  },
83
84
  apBatchAction: {
84
85
  selected: "Selected",
@@ -87,7 +87,8 @@ const e = {
87
87
  exportError: "导出失败",
88
88
  exportSelected: "导出所选",
89
89
  exportAll: "导出全部",
90
- export: "导出Excel"
90
+ export: "导出Excel",
91
+ exportSuccess: "任务已提交,前往下载中心查看进度"
91
92
  },
92
93
  apBatchAction: {
93
94
  selected: "已选",
@@ -279,6 +279,10 @@ declare function __VLS_template(): {
279
279
  step: ValueType;
280
280
  bordered: boolean;
281
281
  onPressEnter: KeyboardEventHandler;
282
+ formatter: (value: ValueType, info: {
283
+ userTyping: boolean;
284
+ input: string;
285
+ }) => string;
282
286
  keyboard: boolean;
283
287
  onStep: (value: ValueType, info: {
284
288
  offset: ValueType;
@@ -287,10 +291,6 @@ declare function __VLS_template(): {
287
291
  stringMode: boolean;
288
292
  controls: boolean;
289
293
  parser: (displayValue: string) => ValueType;
290
- formatter: (value: ValueType, info: {
291
- userTyping: boolean;
292
- input: string;
293
- }) => string;
294
294
  }, true, {}, CustomSlotsType<{
295
295
  addonBefore?: any;
296
296
  addonAfter?: any;
@@ -446,6 +446,10 @@ declare function __VLS_template(): {
446
446
  step: ValueType;
447
447
  bordered: boolean;
448
448
  onPressEnter: KeyboardEventHandler;
449
+ formatter: (value: ValueType, info: {
450
+ userTyping: boolean;
451
+ input: string;
452
+ }) => string;
449
453
  keyboard: boolean;
450
454
  onStep: (value: ValueType, info: {
451
455
  offset: ValueType;
@@ -454,10 +458,6 @@ declare function __VLS_template(): {
454
458
  stringMode: boolean;
455
459
  controls: boolean;
456
460
  parser: (displayValue: string) => ValueType;
457
- formatter: (value: ValueType, info: {
458
- userTyping: boolean;
459
- input: string;
460
- }) => string;
461
461
  }> | null;
462
462
  };
463
463
  attrs: Partial<{}>;