@aplus-frontend/ui 0.4.1 → 0.4.3

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 (128) hide show
  1. package/es/src/ap-field/date/helper.d.ts +1 -1
  2. package/es/src/ap-field/date/helper.mjs +9 -9
  3. package/es/src/ap-field/date/index.vue.mjs +33 -25
  4. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  5. package/es/src/ap-field/interface.d.ts +0 -6
  6. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  8. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +407 -1
  10. package/es/src/ap-field/select/index.vue.mjs +14 -13
  11. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  12. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  13. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  15. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  16. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  18. package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
  19. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  22. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  23. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  24. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  25. package/es/src/ap-list/index.vue.d.ts +1 -1
  26. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  27. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  28. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  29. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  30. package/es/src/ap-table/constants.d.ts +2263 -13
  31. package/es/src/ap-table/context.d.ts +1 -0
  32. package/es/src/ap-table/context.mjs +11 -10
  33. package/es/src/ap-table/utils.d.ts +1180 -8
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  35. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  36. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  37. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  38. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  39. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  40. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  41. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  42. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  43. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  44. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  45. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
  46. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  47. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  48. package/es/src/business/ap-group-search/index.d.ts +418 -4
  49. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  50. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
  51. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  52. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  53. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  54. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  55. package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
  56. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  57. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  58. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  59. package/es/src/editable-table/index.vue.d.ts +1 -1
  60. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  61. package/lib/src/ap-field/date/helper.d.ts +1 -1
  62. package/lib/src/ap-field/date/helper.js +1 -1
  63. package/lib/src/ap-field/date/index.vue.js +1 -1
  64. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  65. package/lib/src/ap-field/interface.d.ts +0 -6
  66. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  67. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  68. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  69. package/lib/src/ap-field/select/index.vue.d.ts +407 -1
  70. package/lib/src/ap-field/select/index.vue.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  72. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  73. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  74. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  75. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  76. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  77. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  78. package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
  79. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  80. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  85. package/lib/src/ap-list/index.vue.d.ts +1 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  87. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  89. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  90. package/lib/src/ap-table/constants.d.ts +2263 -13
  91. package/lib/src/ap-table/context.d.ts +1 -0
  92. package/lib/src/ap-table/context.js +1 -1
  93. package/lib/src/ap-table/utils.d.ts +1180 -8
  94. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  95. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  96. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  97. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  98. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  99. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  100. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  101. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  102. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  103. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  104. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  105. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  106. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  107. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  108. package/lib/src/business/ap-group-search/index.d.ts +418 -4
  109. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  110. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  111. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  112. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  113. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  114. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  115. package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
  116. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  117. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  118. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  119. package/lib/src/editable-table/index.vue.d.ts +1 -1
  120. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  121. package/package.json +5 -5
  122. package/theme/ap-form/index.css +3 -4
  123. package/theme/ap-form/modal-form.css +3 -4
  124. package/theme/ap-form/modal-form.less +3 -4
  125. package/theme/ap-table/ap-table.css +3 -4
  126. package/theme/ap-table-modal/index.css +3 -4
  127. package/theme/editable-table/index.css +3 -4
  128. package/theme/index.css +3 -4
@@ -2,7 +2,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
2
2
  import { ApBatchActionProps } from './interface';
3
3
  export * from './interface';
4
4
  declare const ApBatchAction: {
5
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
6
+ headerRef: HTMLDivElement;
7
+ }, HTMLDivElement, ComponentProvideOptions, {
6
8
  P: {};
7
9
  B: {};
8
10
  D: {};
@@ -15,11 +17,11 @@ declare const ApBatchAction: {
15
17
  __isSuspense?: never;
16
18
  } & ComponentOptionsBase<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
17
19
  $slots: Readonly<{
18
- header: () => void;
20
+ header: () => any[];
19
21
  prefix: () => void;
20
22
  suffix: () => void;
21
23
  }> & {
22
- header: () => void;
24
+ header: () => any[];
23
25
  prefix: () => void;
24
26
  suffix: () => void;
25
27
  };
@@ -4,7 +4,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onExpand?: ((...args: any[]) => any) | undefined;
6
6
  readonly onChoose?: ((...args: any[]) => any) | undefined;
7
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & Partial<{}> & ApExpandAlertProps<T>> & PublicProps;
7
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
8
8
  expose(exposed: ShallowUnwrapRef<{
9
9
  setExpand: (state?: boolean) => void;
10
10
  }>): void;
@@ -1,16 +1,16 @@
1
- import { defineComponent as T, computed as r, ref as j, openBlock as y, createBlock as x, unref as a, normalizeClass as I, withCtx as s, createVNode as v, createTextVNode as g, toDisplayString as b, mergeProps as N, createCommentVNode as O } from "vue";
2
- import { DownOutlined as V } from "@ant-design/icons-vue";
3
- import { message as q, Dropdown as z, Menu as $, MenuItem as k, Button as H } from "@aplus-frontend/antdv";
1
+ import { defineComponent as j, computed as s, ref as I, openBlock as v, createBlock as x, unref as a, normalizeClass as N, withCtx as r, createVNode as g, createTextVNode as b, toDisplayString as p, mergeProps as O, createCommentVNode as V } from "vue";
2
+ import { DownOutlined as q } from "@ant-design/icons-vue";
3
+ import { message as z, Dropdown as $, Menu as H, MenuItem as C, Button as J } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { ApExportGroupActionType as c } from "./interface.mjs";
6
- import { usePermission as J } from "@aplus-frontend/hooks";
7
- import { handleExportDownload as Q } from "./handleExportDownload.mjs";
8
- import { useInjectApTable as U } from "../../ap-table/context.mjs";
9
- import { convertExportField as W } from "./convertExportField.mjs";
10
- import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Y } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as C } from "../../config-provider/hooks/use-global-config.mjs";
13
- const de = /* @__PURE__ */ T({
5
+ import { ApExportGroupActionType as f } from "./interface.mjs";
6
+ import { usePermission as Q } from "@aplus-frontend/hooks";
7
+ import { handleExportDownload as U } from "./handleExportDownload.mjs";
8
+ import { useInjectApTable as W } from "../../ap-table/context.mjs";
9
+ import { convertExportField as X } from "./convertExportField.mjs";
10
+ import { useNamespace as Y } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
13
+ const fe = /* @__PURE__ */ j({
14
14
  __name: "ApExportGroup",
15
15
  props: {
16
16
  selectedRowKeys: {},
@@ -26,79 +26,84 @@ const de = /* @__PURE__ */ T({
26
26
  successMessage: { type: [Boolean, String], default: !1 },
27
27
  exportField: { type: [Boolean, Object], default: void 0 }
28
28
  },
29
- setup(S) {
30
- const { hasPermission: _ } = J(), e = S, { columns: n } = U(), { b: L } = X("ap-export-group"), { t: u } = Y(), A = C("uiMode"), p = C("exportField"), B = r(() => {
29
+ setup(L) {
30
+ const { hasPermission: S } = Q(), e = L, { columns: n, dataSource: u } = W(), { b: A } = Y("ap-export-group"), { t: i } = Z(), B = _("uiMode"), w = _("exportField"), G = s(() => {
31
31
  const t = {
32
32
  aplus: "#0070FF",
33
33
  admin: "#34b77c"
34
34
  };
35
- return w.value ? "" : t[A.value] || t.aplus;
36
- }), w = r(() => !!(e != null && e.disabled)), G = r(() => (e == null ? void 0 : e.successMessage) === !0 ? u("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), d = r(() => {
37
- const t = "exportFieldList", o = (e == null ? void 0 : e.exportField) ?? (p.value === "" ? !0 : p.value) ?? !1;
35
+ return h.value ? "" : t[B.value] || t.aplus;
36
+ }), h = s(
37
+ () => {
38
+ var t;
39
+ return !!(e != null && e.disabled) || (u !== void 0 ? !((t = u == null ? void 0 : u.value) != null && t.length) : !1) || c.value;
40
+ }
41
+ ), P = s(() => (e == null ? void 0 : e.successMessage) === !0 ? i("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), m = s(() => {
42
+ const t = "exportFieldList", o = (e == null ? void 0 : e.exportField) ?? (w.value === "" ? !0 : w.value) ?? !1;
38
43
  return o === !0 ? {
39
44
  key: t
40
45
  } : typeof o == "object" ? {
41
46
  ...o,
42
47
  key: o.key ?? t
43
48
  } : o;
44
- }), P = {
49
+ }), K = {
45
50
  textAlign: "center"
46
- }, f = j(!1), h = r(() => (e == null ? void 0 : e.selectedRowKeys) || []), K = r(() => {
51
+ }, c = I(!1), E = s(() => (e == null ? void 0 : e.selectedRowKeys) || []), D = s(() => {
47
52
  let t = e == null ? void 0 : e.ifShow;
48
- return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => _(e.auth)), (t == null ? void 0 : t()) ?? !0;
53
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => S(e.auth)), (t == null ? void 0 : t()) ?? !0;
49
54
  });
50
- async function D({ key: t }) {
51
- var E, F, M;
55
+ async function R({ key: t }) {
56
+ var F, M, k;
52
57
  const { getRequestParams: o, request: l } = e || {};
53
- let m = {};
54
- t === c.SELECT ? m = {
55
- [(e == null ? void 0 : e.idKey) || "ids"]: h.value
56
- } : t === c.ALL && (m = (o == null ? void 0 : o()) || {});
57
- const R = ((E = e == null ? void 0 : e.getInitialParams) == null ? void 0 : E.call(e)) || {};
58
+ let y = {};
59
+ t === f.SELECT ? y = {
60
+ [(e == null ? void 0 : e.idKey) || "ids"]: E.value
61
+ } : t === f.ALL && (y = (o == null ? void 0 : o()) || {});
62
+ const T = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
58
63
  try {
59
- f.value = !0;
60
- let i = Object.assign(
64
+ c.value = !0;
65
+ let d = Object.assign(
61
66
  {
62
- ...m,
63
- ...R
67
+ ...y,
68
+ ...T
64
69
  },
65
- d.value && (n != null && n.value) ? {
66
- [d.value.key]: W(
70
+ m.value && (n != null && n.value) ? {
71
+ [m.value.key]: X(
67
72
  n.value,
68
- (F = d.value) == null ? void 0 : F.convertField
73
+ (M = m.value) == null ? void 0 : M.convertField
69
74
  )
70
75
  } : {}
71
76
  );
72
- i = ((M = e == null ? void 0 : e.beforeRequest) == null ? void 0 : M.call(e, i)) || i, await Q(async () => await (l == null ? void 0 : l(i))), e != null && e.successMessage && q.success(G.value);
77
+ d = ((k = e == null ? void 0 : e.beforeRequest) == null ? void 0 : k.call(e, d)) || d, await U(async () => await (l == null ? void 0 : l(d))), e != null && e.successMessage && z.success(P.value);
73
78
  } finally {
74
- f.value = !1;
79
+ c.value = !1;
75
80
  }
76
81
  }
77
- return (t, o) => K.value ? (y(), x(a(z), {
82
+ return (t, o) => D.value ? (v(), x(a($), {
78
83
  key: 0,
79
- class: I([a(L)()]),
80
- "overlay-style": P,
81
- disabled: w.value
84
+ class: N([a(A)()]),
85
+ "overlay-style": K,
86
+ disabled: h.value
82
87
  }, {
83
- overlay: s(() => [
84
- v(a($), { onClick: D }, {
85
- default: s(() => {
88
+ overlay: r(() => [
89
+ g(a(H), { onClick: R }, {
90
+ default: r(() => {
86
91
  var l;
87
92
  return [
88
- (y(), x(a(k), {
89
- key: a(c).SELECT,
90
- disabled: ((l = h.value) == null ? void 0 : l.length) === 0
93
+ (v(), x(a(C), {
94
+ key: a(f).SELECT,
95
+ disabled: ((l = E.value) == null ? void 0 : l.length) === 0
91
96
  }, {
92
- default: s(() => [
93
- g(b(a(u)("ap.apExportGroup.exportSelected")), 1)
97
+ default: r(() => [
98
+ b(p(a(i)("ap.apExportGroup.exportSelected")), 1)
94
99
  ]),
95
100
  _: 1
96
101
  }, 8, ["disabled"])),
97
- (y(), x(a(k), {
98
- key: a(c).ALL
102
+ (v(), x(a(C), {
103
+ key: a(f).ALL
99
104
  }, {
100
- default: s(() => [
101
- g(b(a(u)("ap.apExportGroup.exportAll")), 1)
105
+ default: r(() => [
106
+ b(p(a(i)("ap.apExportGroup.exportAll")), 1)
102
107
  ]),
103
108
  _: 1
104
109
  }))
@@ -107,26 +112,26 @@ const de = /* @__PURE__ */ T({
107
112
  _: 1
108
113
  })
109
114
  ]),
110
- default: s(() => [
111
- v(a(H), N({
115
+ default: r(() => [
116
+ g(a(J), O({
112
117
  ...t.$attrs
113
118
  }, {
114
119
  style: {
115
- color: B.value
120
+ color: G.value
116
121
  },
117
- loading: f.value
122
+ loading: c.value
118
123
  }), {
119
- default: s(() => [
120
- g(b((e == null ? void 0 : e.text) ?? a(u)("ap.apExportGroup.export")) + " ", 1),
121
- v(a(V))
124
+ default: r(() => [
125
+ b(p((e == null ? void 0 : e.text) ?? a(i)("ap.apExportGroup.export")) + " ", 1),
126
+ g(a(q))
122
127
  ]),
123
128
  _: 1
124
129
  }, 16, ["style", "loading"])
125
130
  ]),
126
131
  _: 1
127
- }, 8, ["class", "disabled"])) : O("", !0);
132
+ }, 8, ["class", "disabled"])) : V("", !0);
128
133
  }
129
134
  });
130
135
  export {
131
- de as default
136
+ fe as default
132
137
  };
@@ -23,7 +23,9 @@ declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {},
23
23
  }>, {
24
24
  dropdownMatchSelectWidth: number | boolean;
25
25
  hasAll: boolean;
26
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
27
+ containerRef: HTMLDivElement;
28
+ }, HTMLDivElement>;
27
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
30
  export default _default;
29
31
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as R, unref as t, resolveComponent as D, openBlock as w, createElementBlock as K, normalizeClass as d, createVNode as p, withCtx as C, normalizeStyle as O, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
1
+ import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as O, unref as t, resolveComponent as R, openBlock as C, createElementBlock as D, normalizeClass as d, createVNode as p, withCtx as w, normalizeStyle as K, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
2
2
  import { Flex as j, Select as E } from "@aplus-frontend/antdv";
3
3
  import G from "./images/icon-down.vue.mjs";
4
4
  import "./extension-select/index.vue.mjs";
@@ -85,6 +85,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
85
85
  optionFilterProp: {},
86
86
  optionLabelProp: {},
87
87
  defaultActiveFirstOption: { type: Boolean },
88
+ onClickOption: {},
88
89
  labelInValue: { type: Boolean },
89
90
  hasAll: { type: Boolean, default: !0 },
90
91
  style: {}
@@ -111,7 +112,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
111
112
  return !o || o.length === 1 ? n : ((i = l.options) == null ? void 0 : i.filter((r) => o.includes(r.value)).map((r) => r.label).join("/")) || n;
112
113
  });
113
114
  N(() => {
114
- R(
115
+ O(
115
116
  () => {
116
117
  var e;
117
118
  return [l.hasAll, (e = t(a)) == null ? void 0 : e.key];
@@ -141,31 +142,31 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
141
142
  });
142
143
  }, { b: I, e: g, em: L } = W("ap-group-search");
143
144
  return (e, o) => {
144
- const n = D("Divider");
145
- return w(), K("div", {
145
+ const n = R("Divider");
146
+ return C(), D("div", {
146
147
  ref_key: "containerRef",
147
148
  ref: y,
148
149
  class: d(t(I)())
149
150
  }, [
150
151
  p(t(j), null, {
151
- default: C(() => {
152
+ default: w(() => {
152
153
  var s, i;
153
154
  return [
154
155
  p(t(E), {
155
156
  value: V.value,
156
- style: O(B.value),
157
+ style: K(B.value),
157
158
  class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
158
159
  options: k.value,
159
160
  bordered: !1,
160
161
  "dropdown-match-select-width": l.dropdownMatchSelectWidth,
161
162
  onChange: A
162
163
  }, {
163
- suffixIcon: C(() => [
164
+ suffixIcon: w(() => [
164
165
  p(G)
165
166
  ]),
166
167
  _: 1
167
168
  }, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
168
- t(f) === "aplus" ? (w(), F(n, {
169
+ t(f) === "aplus" ? (C(), F(n, {
169
170
  key: 0,
170
171
  class: d(t(g)("divider")),
171
172
  type: "vertical",
@@ -8,5 +8,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
8
8
  change: (value: SelectValue) => any;
9
9
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onChange?: ((value: SelectValue) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
12
+ containerRef: HTMLDivElement;
13
+ }, HTMLDivElement>;
12
14
  export default _default;
@@ -1,11 +1,11 @@
1
- import { defineComponent as y, ref as t, computed as C, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
1
+ import { defineComponent as C, ref as a, computed as y, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
2
2
  import { Select as I } from "@aplus-frontend/antdv";
3
3
  import "../popover-select/index.vue.mjs";
4
4
  import "../../../config-provider/index.mjs";
5
5
  import { useGlobalConfig as R } from "../../../config-provider/hooks/use-global-config.mjs";
6
6
  import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
7
7
  import N from "../popover-select/index.vue2.mjs";
8
- const O = /* @__PURE__ */ y({
8
+ const F = /* @__PURE__ */ C({
9
9
  __name: "index",
10
10
  props: {
11
11
  value: {},
@@ -80,13 +80,14 @@ const O = /* @__PURE__ */ y({
80
80
  optionFilterProp: {},
81
81
  optionLabelProp: {},
82
82
  defaultActiveFirstOption: { type: Boolean },
83
+ onClickOption: {},
83
84
  labelInValue: { type: Boolean },
84
85
  __parentRef: {}
85
86
  },
86
87
  emits: ["change"],
87
88
  setup(u, { emit: c }) {
88
- const d = R("uiMode", "aplus"), o = u, r = t(), n = t(), a = t(!1), m = C(() => o.__parentRef || r.value), f = c, h = (e) => {
89
- e && (a.value = !1);
89
+ const d = R("uiMode", "aplus"), o = u, r = a(), n = a(), t = a(!1), m = y(() => o.__parentRef || r.value), f = c, h = (e) => {
90
+ e && (t.value = !1);
90
91
  };
91
92
  w(
92
93
  () => o.value,
@@ -110,10 +111,10 @@ const O = /* @__PURE__ */ y({
110
111
  mode: "tags",
111
112
  "show-arrow": !0,
112
113
  "not-found-content": !0,
113
- open: a.value,
114
+ open: t.value,
114
115
  "max-tag-count": o.maxTagCount,
115
116
  placeholder: o.placeholder,
116
- onDropdownVisibleChange: i[0] || (i[0] = (v) => a.value = v),
117
+ onDropdownVisibleChange: i[0] || (i[0] = (v) => t.value = v),
117
118
  onChange: p
118
119
  }, {
119
120
  suffixIcon: S(() => [
@@ -130,5 +131,5 @@ const O = /* @__PURE__ */ y({
130
131
  }
131
132
  });
132
133
  export {
133
- O as default
134
+ F as default
134
135
  };