@aplus-frontend/ui 7.13.7 → 7.13.9

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 (31) hide show
  1. package/es/src/ap-field/select/index.vue.d.ts +13 -3
  2. package/es/src/ap-field/select/index.vue.mjs +250 -207
  3. package/es/src/ap-field/style/select.mjs +61 -31
  4. package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
  5. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +13 -12
  6. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
  7. package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +25 -24
  8. package/es/src/ap-table/components/setting/template/item.vue2.mjs +1 -0
  9. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  10. package/es/src/ap-table/constants.d.ts +2 -2
  11. package/es/src/ap-table/style/setting.mjs +2 -2
  12. package/es/src/locale/lang/en.mjs +2 -1
  13. package/es/src/locale/lang/zh-cn.mjs +2 -1
  14. package/es/src/version.d.ts +1 -1
  15. package/es/src/version.mjs +1 -1
  16. package/lib/src/ap-field/select/index.vue.d.ts +13 -3
  17. package/lib/src/ap-field/select/index.vue.js +1 -1
  18. package/lib/src/ap-field/style/select.js +1 -1
  19. package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
  20. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  21. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
  22. package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
  23. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  24. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  25. package/lib/src/ap-table/constants.d.ts +2 -2
  26. package/lib/src/ap-table/style/setting.js +1 -1
  27. package/lib/src/locale/lang/en.js +1 -1
  28. package/lib/src/locale/lang/zh-cn.js +1 -1
  29. package/lib/src/version.d.ts +1 -1
  30. package/lib/src/version.js +1 -1
  31. package/package.json +1 -1
@@ -19,7 +19,7 @@ type ApFieldSelectSlots = {
19
19
  maxTagPlaceholder: any;
20
20
  optionLabel: any;
21
21
  default: any;
22
- dropdownRender: any;
22
+ option: any;
23
23
  };
24
24
  declare function __VLS_template(): {
25
25
  attrs: Partial<{}>;
@@ -170,7 +170,12 @@ declare function __VLS_template(): {
170
170
  type: PropType<(props: CustomTagProps) => any>;
171
171
  };
172
172
  optionLabelRender: {
173
- type: PropType<(option: Record<string, any>) => any>;
173
+ type: **
174
+ * 在聚焦时再次发起网络请求的前提:
175
+ * 1. 设置了`refetchOnFocus=true`
176
+ * 2. `fetchId > 0`表示已经发起过一次网络请求
177
+ * 3. 当前并不处于loading状态
178
+ */).PropType<(option: Record<string, any>) => any>;
174
179
  };
175
180
  onClear: PropType<() => void>;
176
181
  defaultOpen: {
@@ -630,7 +635,12 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
630
635
  type: PropType<(props: CustomTagProps) => any>;
631
636
  };
632
637
  optionLabelRender: {
633
- type: PropType<(option: Record<string, any>) => any>;
638
+ type: **
639
+ * 在聚焦时再次发起网络请求的前提:
640
+ * 1. 设置了`refetchOnFocus=true`
641
+ * 2. `fetchId > 0`表示已经发起过一次网络请求
642
+ * 3. 当前并不处于loading状态
643
+ */).PropType<(option: Record<string, any>) => any>;
634
644
  };
635
645
  onClear: PropType<() => void>;
636
646
  defaultOpen: {
@@ -1,21 +1,25 @@
1
- import { defineComponent as te, ref as V, shallowRef as le, computed as r, onMounted as ae, watch as ne, unref as l, createElementBlock as I, createBlock as x, openBlock as f, toDisplayString as C, mergeProps as re, h as se, createSlots as ue, withCtx as c, createVNode as w, normalizeClass as p, createCommentVNode as _, createElementVNode as S, withModifiers as ie, renderList as ce, renderSlot as pe, normalizeProps as de, guardReactiveProps as fe, resolveDynamicComponent as me } from "vue";
2
- import { Select as ve, Flex as M, Checkbox as P, Spin as he } from "@aplus-frontend/antdv";
3
- import { debounce as ye, isFunction as D, isArray as ge, isNil as Ce, omit as we, isNumber as Se } from "lodash-unified";
1
+ import { defineComponent as ie, useSlots as de, ref as I, shallowRef as ce, computed as s, onMounted as pe, watch as fe, unref as n, createVNode as c, createElementBlock as _, createBlock as C, openBlock as p, toDisplayString as N, mergeProps as me, h as he, createSlots as ve, withCtx as f, createElementVNode as x, normalizeClass as m, createCommentVNode as M, resolveDynamicComponent as P, withModifiers as ye, renderList as ge, renderSlot as Ce, normalizeProps as be, guardReactiveProps as we } from "vue";
2
+ import { Select as Se, Flex as D, Checkbox as T, Spin as ke } from "@aplus-frontend/antdv";
3
+ import { debounce as Be, isFunction as q, isArray as Ne, isNil as xe, omit as L, isNumber as Fe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../utils/index.mjs";
6
6
  import "../../hooks/index.mjs";
7
- import { useDefaultPlaceholder as be } from "../hooks/use-default-placeholder.mjs";
8
- import Be from "../style/index.mjs";
9
- import { useSelectOptions as ke } from "./use-select-options.mjs";
10
- import { useNamespace as xe } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Oe } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useControllableValue as Fe } from "../../hooks/useControllableValue.mjs";
13
- import { isDef as T } from "../../utils/is.mjs";
14
- const Ne = { key: 0 }, Ae = ["onClick"], Ke = /* @__PURE__ */ te({
7
+ import { useDefaultPlaceholder as Oe } from "../hooks/use-default-placeholder.mjs";
8
+ import Ae from "../style/index.mjs";
9
+ import { useSelectOptions as Ve } from "./use-select-options.mjs";
10
+ import { useNamespace as R } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as Ie } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useControllableValue as _e } from "../../hooks/useControllableValue.mjs";
13
+ import { isDef as z } from "../../utils/is.mjs";
14
+ const Me = {
15
+ key: 0
16
+ }, Pe = ["onClick"], Ge = /* @__PURE__ */ ie({
15
17
  name: "ApFieldSelect",
16
18
  __name: "index",
17
19
  props: {
18
- mode: { default: "edit" },
20
+ mode: {
21
+ default: "edit"
22
+ },
19
23
  class: {},
20
24
  style: {},
21
25
  defaultValue: {},
@@ -23,8 +27,14 @@ const Ne = { key: 0 }, Ae = ["onClick"], Ke = /* @__PURE__ */ te({
23
27
  suffixIcon: {},
24
28
  itemIcon: {},
25
29
  size: {},
26
- bordered: { type: Boolean, default: void 0 },
27
- showArrow: { type: Boolean, default: void 0 },
30
+ bordered: {
31
+ type: Boolean,
32
+ default: void 0
33
+ },
34
+ showArrow: {
35
+ type: Boolean,
36
+ default: void 0
37
+ },
28
38
  variant: {},
29
39
  maxCount: {},
30
40
  transitionName: {},
@@ -46,25 +56,46 @@ const Ne = { key: 0 }, Ae = ["onClick"], Ke = /* @__PURE__ */ te({
46
56
  onKeyup: {},
47
57
  onMousedown: {},
48
58
  onSelect: {},
49
- open: { type: Boolean, default: void 0 },
59
+ open: {
60
+ type: Boolean,
61
+ default: void 0
62
+ },
50
63
  animation: {},
51
64
  direction: {},
52
- disabled: { type: Boolean, default: void 0 },
65
+ disabled: {
66
+ type: Boolean,
67
+ default: void 0
68
+ },
53
69
  prefixCls: {},
54
70
  id: {},
55
- autofocus: { type: Boolean, default: void 0 },
71
+ autofocus: {
72
+ type: Boolean,
73
+ default: void 0
74
+ },
56
75
  getPopupContainer: {},
57
- virtual: { type: Boolean, default: void 0 },
76
+ virtual: {
77
+ type: Boolean,
78
+ default: void 0
79
+ },
58
80
  dropdownMatchSelectWidth: {},
59
81
  placeholder: {},
60
- loading: { type: Boolean, default: void 0 },
82
+ loading: {
83
+ type: Boolean,
84
+ default: void 0
85
+ },
61
86
  prefix: {},
62
87
  clearIcon: {},
63
- allowClear: { type: Boolean, default: !0 },
88
+ allowClear: {
89
+ type: Boolean,
90
+ default: !0
91
+ },
64
92
  fieldNames: {},
65
93
  inputValue: {},
66
94
  searchValue: {},
67
- autoClearSearchValue: { type: Boolean, default: void 0 },
95
+ autoClearSearchValue: {
96
+ type: Boolean,
97
+ default: void 0
98
+ },
68
99
  onDeselect: {},
69
100
  onActive: {},
70
101
  filterOption: {},
@@ -72,16 +103,28 @@ const Ne = { key: 0 }, Ae = ["onClick"], Ke = /* @__PURE__ */ te({
72
103
  optionFilterProp: {},
73
104
  optionLabelProp: {},
74
105
  options: {},
75
- defaultActiveFirstOption: { type: Boolean, default: void 0 },
106
+ defaultActiveFirstOption: {
107
+ type: Boolean,
108
+ default: void 0
109
+ },
76
110
  listItemHeight: {},
77
111
  onClickOption: {},
78
112
  menuItemSelectedIcon: {},
79
- labelInValue: { type: Boolean, default: void 0 },
80
- showSearch: { type: Boolean, default: void 0 },
113
+ labelInValue: {
114
+ type: Boolean,
115
+ default: void 0
116
+ },
117
+ showSearch: {
118
+ type: Boolean,
119
+ default: void 0
120
+ },
81
121
  tagRender: {},
82
122
  optionLabelRender: {},
83
123
  onClear: {},
84
- defaultOpen: { type: Boolean, default: void 0 },
124
+ defaultOpen: {
125
+ type: Boolean,
126
+ default: void 0
127
+ },
85
128
  onDropdownVisibleChange: {},
86
129
  maxTagTextLength: {},
87
130
  maxTagCount: {},
@@ -94,227 +137,227 @@ const Ne = { key: 0 }, Ae = ["onClick"], Ke = /* @__PURE__ */ te({
94
137
  showAction: {},
95
138
  onPopupScroll: {},
96
139
  onInputKeyDown: {},
97
- emptyText: { default: "--" },
140
+ emptyText: {
141
+ default: "--"
142
+ },
98
143
  request: {},
99
- multiple: { type: Boolean, default: void 0 },
144
+ multiple: {
145
+ type: Boolean,
146
+ default: void 0
147
+ },
100
148
  value: {},
101
149
  "onUpdate:value": {},
102
- searchMode: { default: "filter" },
103
- refetchOnFocus: { type: Boolean, default: !1 },
104
- lazy: { type: Boolean, default: !1 },
105
- addAll: { type: [Boolean, Number], default: 5 },
150
+ searchMode: {
151
+ default: "filter"
152
+ },
153
+ refetchOnFocus: {
154
+ type: Boolean,
155
+ default: !1
156
+ },
157
+ lazy: {
158
+ type: Boolean,
159
+ default: !1
160
+ },
161
+ addAll: {
162
+ type: [Boolean, Number],
163
+ default: 5
164
+ },
106
165
  params: {},
107
- searchDelay: { default: 300 },
108
- allowOnlySelect: { type: Boolean, default: !0 }
166
+ searchDelay: {
167
+ default: 300
168
+ },
169
+ allowOnlySelect: {
170
+ type: Boolean,
171
+ default: !0
172
+ }
109
173
  },
110
174
  emits: ["update:value"],
111
- setup(q, { expose: R, emit: L }) {
112
- let s = 0;
113
- const e = q, { b: u } = xe("field-select"), z = Be("field"), O = V(!1), { t: F } = Oe(), U = ye((o) => {
114
- if (!D(e.request))
175
+ setup(E, {
176
+ expose: U,
177
+ emit: $
178
+ }) {
179
+ let r = 0;
180
+ const F = de(), e = E, {
181
+ b
182
+ } = R("field-select"), {
183
+ b: i
184
+ } = R("field-select-popup-option"), K = Ae("field"), O = I(!1), {
185
+ t: A
186
+ } = Ie(), j = Be((t) => {
187
+ if (!q(e.request))
115
188
  return;
116
- s += 1;
117
- const a = s;
118
- v([]), n.value = !0, e.request(o).then((t) => {
119
- s === a && (v(t), n.value = !1);
189
+ r += 1;
190
+ const o = r;
191
+ y([]), u.value = !0, e.request(t).then((l) => {
192
+ r === o && (y(l), u.value = !1);
120
193
  });
121
- }, e.searchDelay), $ = (o, a) => {
122
- const t = e.fieldNames?.label || "label";
123
- return typeof a?.[t] == "string" && a[t].toLowerCase().indexOf(o.toLowerCase()) > -1;
124
- }, { options: m, updateOptions: v } = ke(e), b = le(), n = V(e?.loading || !1), K = L, j = r(() => {
194
+ }, e.searchDelay), H = (t, o) => {
195
+ const l = e.fieldNames?.label || "label";
196
+ return typeof o?.[l] == "string" && o[l].toLowerCase().indexOf(t.toLowerCase()) > -1;
197
+ }, {
198
+ options: h,
199
+ updateOptions: y
200
+ } = Ve(e), w = ce(), u = I(e?.loading || !1), W = $, G = s(() => {
125
201
  if (e.multiple)
126
202
  return e.tokenSeparators ? "tags" : "multiple";
127
203
  });
128
- async function h(o = !0) {
129
- if (!D(e.request))
204
+ async function g(t = !0) {
205
+ if (!q(e.request))
130
206
  return;
131
- n.value = !0, s += 1;
132
- const a = s;
207
+ u.value = !0, r += 1;
208
+ const o = r;
133
209
  try {
134
- o && v([]);
135
- const t = await e.request(void 0, e.params);
136
- if (a !== s)
210
+ t && y([]);
211
+ const l = await e.request(void 0, e.params);
212
+ if (o !== r)
137
213
  return;
138
- v(t);
214
+ y(l);
139
215
  } finally {
140
- n.value = !1;
216
+ u.value = !1;
141
217
  }
142
218
  }
143
- function E(o) {
144
- e.onFocus?.(o), e.refetchOnFocus && s > 0 && !n.value && h(!0);
219
+ function J(t) {
220
+ e.onFocus?.(t), e.refetchOnFocus && r > 0 && !u.value && g(!0);
145
221
  }
146
- ae(() => {
147
- e.lazy || h();
148
- }), ne(
149
- () => e.params,
150
- () => {
151
- h();
152
- },
153
- {
154
- deep: !0
155
- }
156
- );
157
- const { value: i, updateValue: y } = Fe(e, K), H = be("Select", e), W = r(() => {
158
- const o = l(i);
159
- if (!o)
222
+ pe(() => {
223
+ e.lazy || g();
224
+ }), fe(() => e.params, () => {
225
+ g();
226
+ }, {
227
+ deep: !0
228
+ });
229
+ const {
230
+ value: d,
231
+ updateValue: S
232
+ } = _e(e, W), Q = Oe("Select", e), X = s(() => {
233
+ const t = n(d);
234
+ if (!t)
160
235
  return e.emptyText;
161
- const a = e.fieldNames?.label || "label", t = e.fieldNames?.value || "value";
162
- return ge(o) ? o.map(
163
- (d) => l(m).find((oe) => oe[t] === d)?.[a]
164
- ).filter(Boolean).join("、") || e.emptyText : l(m).find(
165
- (d) => d[t] === o
166
- )?.[a] || e.emptyText;
167
- }), G = r(() => {
168
- const o = !!e?.showSearch, a = e.searchMode;
169
- let t = {};
170
- return o && (t = a === "request" ? {
236
+ const o = e.fieldNames?.label || "label", l = e.fieldNames?.value || "value";
237
+ return Ne(t) ? t.map((v) => n(h).find((re) => re[l] === v)?.[o]).filter(Boolean).join("、") || e.emptyText : n(h).find((v) => v[l] === t)?.[o] || e.emptyText;
238
+ }), Y = s(() => {
239
+ const t = !!e?.showSearch, o = e.searchMode;
240
+ let l = {};
241
+ return t && (l = o === "request" ? {
171
242
  defaultActiveFirstOption: !1,
172
- onSearch: U,
173
- notFoundContent: n.value ? void 0 : null,
243
+ onSearch: j,
244
+ notFoundContent: u.value ? void 0 : null,
174
245
  filterOption: !1,
175
246
  suffixIcon: null
176
247
  } : {
177
- filterOption: Ce(e?.filterOption) ? $ : e?.filterOption
248
+ filterOption: xe(e?.filterOption) ? H : e?.filterOption
178
249
  }), {
179
- ...we(e, [
180
- "mode",
181
- "value",
182
- "onUpdate:value",
183
- "onSearch",
184
- "request",
185
- "searchMode",
186
- "onFocus",
187
- "onBeforeSelect"
188
- ]),
189
- placeholder: l(H),
190
- ...t
250
+ ...L(e, ["mode", "value", "onUpdate:value", "onSearch", "request", "searchMode", "onFocus", "onBeforeSelect"]),
251
+ placeholder: n(Q),
252
+ ...l
191
253
  };
192
- }), g = r(
193
- () => m.value.map((o) => o[e.fieldNames?.value || "value"])
194
- ), N = r(() => !e.multiple || T(e.maxCount) ? !1 : Se(e.addAll) ? g.value.length >= e.addAll : !!e.addAll), J = r(
195
- () => e.multiple && e.allowOnlySelect && (!T(e.maxCount) || e.maxCount >= 1)
196
- );
197
- function Q() {
198
- b.value?.focus();
254
+ }), Z = s(() => h.value.map((t) => t[e.fieldNames?.value || "value"])), k = s(() => h.value.filter((t) => !t.disabled).map((t) => t[e.fieldNames?.value || "value"])), V = s(() => !e.multiple || z(e.maxCount) ? !1 : Fe(e.addAll) ? Z.value.length >= e.addAll : !!e.addAll), ee = s(() => e.multiple && e.allowOnlySelect && (!z(e.maxCount) || e.maxCount >= 1));
255
+ function te() {
256
+ w.value?.focus();
199
257
  }
200
- function X() {
201
- b.value?.blur();
258
+ function oe() {
259
+ w.value?.blur();
202
260
  }
203
- function B(o, a) {
204
- const t = e.fieldNames?.[a] ?? a;
205
- return o[t];
261
+ function B(t, o) {
262
+ const l = e.fieldNames?.[o] ?? o;
263
+ return t[l];
206
264
  }
207
- function Y(o) {
208
- const a = B(o, "value");
209
- y(e.multiple ? [a] : a);
265
+ function le(t) {
266
+ const o = B(t, "value");
267
+ S(e.multiple ? [o] : o);
210
268
  }
211
- const A = r(() => {
212
- const o = l(i) || [], a = g.value;
213
- return a.length > 0 && a.every((t) => o.includes(t));
214
- }), Z = r(() => (l(i) || []).length > 0 && !A.value);
215
- function ee() {
216
- console.log("123");
217
- const o = l(i) || [], a = g.value;
218
- a.length && a.every((t) => o?.includes(t)) ? y([]) : y(g.value);
269
+ function ne(t) {
270
+ return F.option ? c("div", {
271
+ class: i("custom")
272
+ }, [F.option(t)]) : c("span", {
273
+ class: i("label")
274
+ }, [B(t, "label")]);
275
+ }
276
+ const ae = s(() => {
277
+ const t = n(d) || [], o = k.value;
278
+ return o.length > 0 && o.every((l) => t.includes(l));
279
+ }), se = s(() => {
280
+ const t = n(d) || [], o = k.value, l = o.filter((a) => t.includes(a)).length;
281
+ return l > 0 && l < o.length;
282
+ });
283
+ function ue() {
284
+ const t = new Set(n(d) || []), o = k.value;
285
+ o.length > 0 && o.every((a) => t.has(a)) ? o.forEach((a) => t.delete(a)) : o.forEach((a) => t.add(a)), S([...t]);
219
286
  }
220
- return R({
221
- focus: Q,
222
- blur: X,
223
- request: h
224
- }), (o, a) => o.mode === "read" ? (f(), I("span", Ne, C(W.value), 1)) : (f(), x(l(ve), re({
287
+ return U({
288
+ focus: te,
289
+ blur: oe,
290
+ request: g
291
+ }), (t, o) => t.mode === "read" ? (p(), _("span", Me, N(X.value), 1)) : (p(), C(n(Se), me({
225
292
  key: 1,
226
293
  ref_key: "selectRef",
227
- ref: b,
294
+ ref: w,
228
295
  "allow-clear": ""
229
- }, G.value, {
230
- mode: j.value,
231
- value: l(i),
232
- options: l(m),
233
- loading: n.value,
234
- "menu-item-selected-icon": se("span"),
235
- "popup-class-name": `${l(u)("popup")} ${l(z)}`,
296
+ }, Y.value, {
297
+ mode: G.value,
298
+ value: n(d),
299
+ options: n(h),
300
+ loading: u.value,
301
+ "menu-item-selected-icon": he("span"),
302
+ "popup-class-name": `${n(b)("popup")} ${n(K)}`,
236
303
  open: O.value,
237
- virtual: !1,
238
- "onUpdate:value": l(y),
239
- onFocus: E,
240
- onDropdownVisibleChange: a[0] || (a[0] = (t) => O.value = t)
241
- }), ue({
242
- option: c((t) => [
243
- w(l(M), {
244
- justify: "space-between",
304
+ "onUpdate:value": n(S),
305
+ onFocus: J,
306
+ onDropdownVisibleChange: o[0] || (o[0] = (l) => O.value = l)
307
+ }), ve({
308
+ option: f((l) => [x("div", {
309
+ class: m(n(i)("outter"))
310
+ }, [c(n(D), {
311
+ justify: "space-between",
312
+ align: "center",
313
+ class: m(n(i)("wrapper")),
314
+ gap: 8
315
+ }, {
316
+ default: f(() => [c(n(D), {
317
+ gap: 8,
245
318
  align: "center",
246
- class: p(l(u)("popup-option-wrapper")),
247
- gap: 8
319
+ class: m(n(i)("content-wrapper"))
248
320
  }, {
249
- default: c(() => [
250
- w(l(M), {
251
- gap: 8,
252
- align: "center"
253
- }, {
254
- default: c(() => [
255
- N.value ? (f(), x(l(P), {
256
- key: 0,
257
- checked: l(i)?.includes(
258
- B(t, "value")
259
- )
260
- }, null, 8, ["checked"])) : _("", !0),
261
- S("span", {
262
- class: p(l(u)("popup-option-label"))
263
- }, C(B(t, "label")), 3)
264
- ]),
265
- _: 2
266
- }, 1024),
267
- J.value ? (f(), I("span", {
268
- key: 0,
269
- class: p(l(u)("popup-option-action")),
270
- onClick: ie(() => Y(t), ["stop"])
271
- }, C(l(F)("ap.field.chooseOnly")), 11, Ae)) : _("", !0)
272
- ]),
321
+ default: f(() => [V.value ? (p(), C(n(T), {
322
+ key: 0,
323
+ checked: n(d)?.includes(B(l, "value"))
324
+ }, null, 8, ["checked"])) : M("", !0), (p(), C(P(ne(l))))]),
273
325
  _: 2
274
- }, 1032, ["class"])
275
- ]),
326
+ }, 1032, ["class"]), ee.value && !l?.disabled ? (p(), _("span", {
327
+ key: 0,
328
+ class: m(n(i)("action")),
329
+ onClick: ye(() => le(l), ["stop"])
330
+ }, N(n(A)("ap.field.chooseOnly")), 11, Pe)) : M("", !0)]),
331
+ _: 2
332
+ }, 1032, ["class"])], 2)]),
276
333
  _: 2
277
- }, [
278
- ce(o.$slots, (t, k) => ({
279
- name: k,
280
- fn: c((d) => [
281
- pe(o.$slots, k, de(fe(d || {})))
282
- ])
283
- })),
284
- n.value ? {
285
- name: "notFoundContent",
286
- fn: c(() => [
287
- w(l(he), { size: "small" })
288
- ]),
289
- key: "0"
290
- } : void 0,
291
- N.value ? {
292
- name: "dropdownRender",
293
- fn: c(({ menuNode: t }) => [
294
- S("div", {
295
- class: p(l(u)("popup-all-option-wrapper"))
296
- }, [
297
- S("div", {
298
- tabindex: -1,
299
- class: p(l(u)("popup-all-option")),
300
- onClick: ee
301
- }, [
302
- w(l(P), {
303
- checked: A.value,
304
- indeterminate: Z.value
305
- }, null, 8, ["checked", "indeterminate"]),
306
- S("span", {
307
- class: p(l(u)("popup-all-option-label"))
308
- }, C(l(F)("ap.field.selectAll")), 3)
309
- ], 2)
310
- ], 2),
311
- (f(), x(me(t)))
312
- ]),
313
- key: "1"
314
- } : void 0
315
- ]), 1040, ["mode", "value", "options", "loading", "menu-item-selected-icon", "popup-class-name", "open", "onUpdate:value"]));
334
+ }, [ge(n(L)(t.$slots, ["option"]), (l, a) => ({
335
+ name: a,
336
+ fn: f((v) => [Ce(t.$slots, a, be(we(v || {})))])
337
+ })), u.value ? {
338
+ name: "notFoundContent",
339
+ fn: f(() => [c(n(ke), {
340
+ size: "small"
341
+ })]),
342
+ key: "0"
343
+ } : void 0, V.value ? {
344
+ name: "dropdownRender",
345
+ fn: f(({
346
+ menuNode: l
347
+ }) => [x("div", {
348
+ tabindex: -1,
349
+ class: m(n(b)("popup-all-option")),
350
+ onClick: ue
351
+ }, [c(n(T), {
352
+ checked: ae.value,
353
+ indeterminate: se.value
354
+ }, null, 8, ["checked", "indeterminate"]), x("span", {
355
+ class: m(n(b)("popup-all-option-label"))
356
+ }, N(n(A)("ap.field.selectAll")), 3)], 2), (p(), C(P(l)))]),
357
+ key: "1"
358
+ } : void 0]), 1040, ["mode", "value", "options", "loading", "menu-item-selected-icon", "popup-class-name", "open", "onUpdate:value"]));
316
359
  }
317
360
  });
318
361
  export {
319
- Ke as default
362
+ Ge as default
320
363
  };