@aplus-frontend/ui 7.17.1 → 7.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/es/index.mjs +29 -31
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +48 -48
  3. package/es/src/ap-field/cascader/index.vue.mjs +64 -67
  4. package/es/src/ap-field/interface.d.ts +6 -1
  5. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/select/index.vue.mjs +145 -134
  7. package/es/src/ap-field/select/read.vue2.mjs +1 -0
  8. package/es/src/ap-form/interface.d.ts +18 -0
  9. package/es/src/ap-form/items/select/index.vue.d.ts +8 -6
  10. package/es/src/ap-form/items/switch/index.vue.d.ts +1 -1
  11. package/es/src/ap-table/constants.d.ts +7 -6
  12. package/es/src/check-card/index.vue2.mjs +61 -64
  13. package/es/src/hooks/index.d.ts +0 -1
  14. package/es/src/hooks/index.mjs +10 -12
  15. package/es/src/version.d.ts +1 -1
  16. package/es/src/version.mjs +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  19. package/lib/src/ap-field/cascader/index.vue.js +1 -1
  20. package/lib/src/ap-field/interface.d.ts +6 -1
  21. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  22. package/lib/src/ap-field/select/index.vue.js +1 -1
  23. package/lib/src/ap-field/select/read.vue2.js +1 -1
  24. package/lib/src/ap-form/interface.d.ts +18 -0
  25. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -6
  26. package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -1
  27. package/lib/src/ap-table/constants.d.ts +7 -6
  28. package/lib/src/check-card/index.vue2.js +1 -1
  29. package/lib/src/hooks/index.d.ts +0 -1
  30. package/lib/src/hooks/index.js +1 -1
  31. package/lib/src/version.d.ts +1 -1
  32. package/lib/src/version.js +1 -1
  33. package/package.json +1 -1
  34. package/es/src/hooks/useMessage.d.ts +0 -62
  35. package/es/src/hooks/useMessage.mjs +0 -86
  36. package/lib/src/hooks/useMessage.d.ts +0 -62
  37. package/lib/src/hooks/useMessage.js +0 -1
@@ -1,20 +1,20 @@
1
- import { defineComponent as de, useSlots as pe, ref as _, shallowRef as fe, computed as s, onMounted as me, watch as he, unref as n, createVNode as f, createElementBlock as M, createBlock as C, openBlock as m, toDisplayString as B, mergeProps as ve, h as ye, createSlots as ge, withCtx as h, createElementVNode as N, normalizeClass as v, createCommentVNode as P, resolveDynamicComponent as D, withModifiers as Ce, renderList as be, renderSlot as Se, normalizeProps as we, guardReactiveProps as Fe } from "vue";
2
- import { Select as Oe, Flex as T, Checkbox as q, Spin as ke } from "@aplus-frontend/antdv";
3
- import { debounce as Be, isFunction as L, isArray as Ne, isNil as xe, omit as R, isNumber as Ae } from "lodash-unified";
1
+ import { defineComponent as fe, useSlots as me, ref as k, shallowRef as he, computed as s, onMounted as ve, watch as ye, unref as l, createVNode as m, createElementBlock as M, createBlock as C, openBlock as h, toDisplayString as N, mergeProps as ge, h as Ce, createSlots as be, withCtx as v, createElementVNode as x, normalizeClass as y, createCommentVNode as P, resolveDynamicComponent as T, withModifiers as we, renderList as Oe, renderSlot as Se, normalizeProps as Fe, guardReactiveProps as Be } from "vue";
2
+ import { Select as ke, Flex as q, Checkbox as L, Spin as Ne } from "@aplus-frontend/antdv";
3
+ import { debounce as xe, isFunction as z, isArray as Ae, isNil as Ve, omit as R, isNumber as Ie } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../utils/index.mjs";
6
- import { useDevWarning as Ve } from "../../utils/warning.mjs";
6
+ import { useDevWarning as _e } from "../../utils/warning.mjs";
7
7
  import "../../hooks/index.mjs";
8
- import { useDefaultPlaceholder as Ie } from "../hooks/use-default-placeholder.mjs";
9
- import _e from "../style/index.mjs";
10
- import { useSelectOptions as Me } from "./use-select-options.mjs";
11
- import { isDef as x } from "../../utils/is.mjs";
12
- import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
13
- import { useLocale as Pe } from "../../config-provider/hooks/use-locale.mjs";
14
- import { useControllableValue as De } from "../../hooks/useControllableValue.mjs";
15
- const Te = {
8
+ import { useDefaultPlaceholder as De } from "../hooks/use-default-placeholder.mjs";
9
+ import Me from "../style/index.mjs";
10
+ import { useSelectOptions as Pe } from "./use-select-options.mjs";
11
+ import { isDef as A } from "../../utils/is.mjs";
12
+ import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as Te } from "../../config-provider/hooks/use-locale.mjs";
14
+ import { useControllableValue as qe } from "../../hooks/useControllableValue.mjs";
15
+ const Le = {
16
16
  key: 0
17
- }, qe = ["onClick"], Ye = /* @__PURE__ */ de({
17
+ }, ze = ["onClick"], et = /* @__PURE__ */ fe({
18
18
  name: "ApFieldSelect",
19
19
  __name: "index",
20
20
  props: {
@@ -159,6 +159,9 @@ const Te = {
159
159
  type: Boolean,
160
160
  default: void 0
161
161
  },
162
+ fetchOnOpen: {
163
+ type: Boolean
164
+ },
162
165
  lazy: {
163
166
  type: [Boolean, String],
164
167
  default: !1
@@ -177,199 +180,207 @@ const Te = {
177
180
  }
178
181
  },
179
182
  emits: ["update:value"],
180
- setup(E, {
181
- expose: U,
182
- emit: K
183
+ setup(U, {
184
+ expose: K,
185
+ emit: $
183
186
  }) {
184
187
  let r = 0;
185
- const b = pe(), e = E, {
186
- deprecated: $
187
- } = Ve("ApFieldSelect");
188
- $(!x(e.refetchOnFocus), "refetchOnFocus", "fetchOnFocus");
188
+ const b = me(), e = U, {
189
+ deprecated: j
190
+ } = _e("ApFieldSelect");
191
+ j(!A(e.refetchOnFocus), "refetchOnFocus", "fetchOnFocus");
189
192
  const {
190
- b: S
191
- } = z("field-select"), {
192
- b: c
193
- } = z("field-select-popup-option"), j = _e("field"), A = _(!1), {
194
- t: V
195
- } = Pe(), H = Be((t) => {
196
- if (!L(e.request))
193
+ b: w
194
+ } = E("field-select"), {
195
+ b: d
196
+ } = E("field-select-popup-option"), H = Me("field"), V = k(!1), I = k(!1), {
197
+ t: _
198
+ } = Te(), W = xe((t) => {
199
+ if (!z(e.request))
197
200
  return;
198
201
  r += 1;
199
- const o = r;
200
- g([]), u.value = !0, e.request(t).then((l) => {
201
- r === o && (g(l), u.value = !1);
202
+ const n = r;
203
+ g([]), u.value = !0, e.request(t).then((o) => {
204
+ r === n && (g(o), u.value = !1);
202
205
  });
203
- }, e.searchDelay), W = (t, o) => {
204
- const l = e.fieldNames?.label || "label";
205
- return typeof o?.[l] == "string" && o[l].toLowerCase().indexOf(t.toLowerCase()) > -1;
206
+ }, e.searchDelay), G = (t, n) => {
207
+ const o = e.fieldNames?.label || "label";
208
+ return typeof n?.[o] == "string" && n[o].toLowerCase().indexOf(t.toLowerCase()) > -1;
206
209
  }, {
207
- options: d,
210
+ options: p,
208
211
  updateOptions: g
209
- } = Me(e), w = fe(), u = _(e?.loading || !1), G = K, J = s(() => e.fetchOnFocus ?? e.refetchOnFocus), Q = s(() => {
212
+ } = Pe(e), O = he(), u = k(e?.loading || !1), J = $, Q = s(() => e.fetchOnFocus ?? e.refetchOnFocus), X = s(() => {
210
213
  if (e.multiple)
211
214
  return e.tokenSeparators ? "tags" : "multiple";
212
215
  });
213
- async function y(t = !0) {
214
- if (!L(e.request))
216
+ async function i(t = !0) {
217
+ if (!z(e.request))
215
218
  return;
216
219
  u.value = !0, r += 1;
217
- const o = r;
220
+ const n = r;
218
221
  try {
219
222
  t && g([]);
220
- const l = await e.request(void 0, e.params);
221
- if (o !== r)
223
+ const o = await e.request(void 0, e.params);
224
+ if (n !== r)
222
225
  return;
223
- g(l);
226
+ g(o);
224
227
  } finally {
225
228
  u.value = !1;
226
229
  }
227
230
  }
228
- function X(t) {
229
- !A.value && r === 0 && e.lazy === "first-focus" ? y() : J.value && !u.value && y(!0), e.onFocus?.(t), A.value = !0;
231
+ function Y(t) {
232
+ !V.value && r === 0 && e.lazy === "first-focus" ? i() : Q.value && !u.value && i(!0), e.onFocus?.(t), V.value = !0;
233
+ }
234
+ function Z(t) {
235
+ if (!t) {
236
+ e.onDropdownVisibleChange?.(t);
237
+ return;
238
+ }
239
+ !I.value && r === 0 && e.lazy === "first-open" ? i() : e.fetchOnOpen && !u.value && i(!0), e.onDropdownVisibleChange?.(t), I.value = !0;
230
240
  }
231
- me(() => {
241
+ ve(() => {
232
242
  if (!e.lazy) {
233
- y();
243
+ i();
234
244
  return;
235
245
  }
236
- }), he(() => e.params, () => {
237
- y();
246
+ }), ye(() => e.params, () => {
247
+ i();
238
248
  }, {
239
249
  deep: !0
240
250
  });
241
251
  const {
242
- value: p,
243
- updateValue: F
244
- } = De(e, G), Y = Ie("Select", e), Z = s(() => {
245
- const t = n(p);
252
+ value: f,
253
+ updateValue: S
254
+ } = qe(e, J), ee = De("Select", e), te = s(() => {
255
+ const t = l(f);
246
256
  if (!t)
247
257
  return e.emptyText;
248
- const o = e.fieldNames?.label || "label", l = e.fieldNames?.value || "value";
249
- return Ne(t) ? t.map((a) => n(d).find((ce) => ce[l] === a)?.[o]).filter(Boolean).join("、") || e.emptyText : n(d).find((a) => a[l] === t)?.[o] || e.emptyText;
250
- }), ee = s(() => {
251
- const t = !!e?.showSearch, o = e.searchMode;
252
- let l = {};
253
- return t && (l = o === "request" ? {
258
+ const n = e.fieldNames?.label || "label", o = e.fieldNames?.value || "value";
259
+ return Ae(t) ? t.map((a) => l(p).find((pe) => pe[o] === a)?.[n]).filter(Boolean).join("、") || e.emptyText : l(p).find((a) => a[o] === t)?.[n] || e.emptyText;
260
+ }), ne = s(() => {
261
+ const t = !!e?.showSearch, n = e.searchMode;
262
+ let o = {};
263
+ return t && (o = n === "request" ? {
254
264
  defaultActiveFirstOption: !1,
255
- onSearch: H,
265
+ onSearch: W,
256
266
  notFoundContent: u.value ? void 0 : null,
257
267
  filterOption: !1,
258
268
  suffixIcon: null
259
269
  } : {
260
- filterOption: xe(e?.filterOption) ? W : e?.filterOption
270
+ filterOption: Ve(e?.filterOption) ? G : e?.filterOption
261
271
  }), {
262
272
  ...R(e, ["mode", "value", "onUpdate:value", "onSearch", "request", "searchMode", "onFocus", "onBeforeSelect"]),
263
- placeholder: n(Y),
264
- ...l
273
+ placeholder: l(ee),
274
+ ...o
265
275
  };
266
- }), te = s(() => d.value.map((t) => t[e.fieldNames?.value || "value"])), O = s(() => d.value.filter((t) => !t.disabled).map((t) => t[e.fieldNames?.value || "value"])), I = s(() => !e.multiple || x(e.maxCount) ? !1 : Ae(e.addAll) ? te.value.length >= e.addAll : !!e.addAll), oe = s(() => e.multiple && e.allowOnlySelect && (!x(e.maxCount) || e.maxCount >= 1));
267
- function le() {
268
- w.value?.focus();
276
+ }), oe = s(() => p.value.map((t) => t[e.fieldNames?.value || "value"])), F = s(() => p.value.filter((t) => !t.disabled).map((t) => t[e.fieldNames?.value || "value"])), D = s(() => !e.multiple || A(e.maxCount) ? !1 : Ie(e.addAll) ? oe.value.length >= e.addAll : !!e.addAll), le = s(() => e.multiple && e.allowOnlySelect && (!A(e.maxCount) || e.maxCount >= 1));
277
+ function ae() {
278
+ O.value?.focus();
269
279
  }
270
- function ne() {
271
- w.value?.blur();
280
+ function se() {
281
+ O.value?.blur();
272
282
  }
273
- function k(t, o) {
274
- const l = e.fieldNames?.[o] ?? o;
275
- return t[l];
283
+ function B(t, n) {
284
+ const o = e.fieldNames?.[n] ?? n;
285
+ return t[o];
276
286
  }
277
- function ae(t) {
278
- const o = k(t, "value");
279
- F(e.multiple ? [o] : o), e.onChange?.([o], [t]);
287
+ function ue(t) {
288
+ const n = B(t, "value");
289
+ S(e.multiple ? [n] : n), e.onChange?.([n], [t]);
280
290
  }
281
- function se(t) {
282
- return b.option ? f("div", {
283
- class: c("custom")
284
- }, [b.option(t)]) : f("span", {
285
- class: c("label")
286
- }, [k(t, "label")]);
291
+ function re(t) {
292
+ return b.option ? m("div", {
293
+ class: d("custom")
294
+ }, [b.option(t)]) : m("span", {
295
+ class: d("label")
296
+ }, [B(t, t.options?.length ? "groupLabel" : "label")]);
287
297
  }
288
- const ue = s(() => {
289
- const t = n(p) || [], o = O.value;
290
- return o.length > 0 && o.every((l) => t.includes(l));
291
- }), re = s(() => {
292
- const t = n(p) || [], o = O.value, l = o.filter((i) => t.includes(i)).length;
293
- return l > 0 && l < o.length;
298
+ const ie = s(() => {
299
+ const t = l(f) || [], n = F.value;
300
+ return n.length > 0 && n.every((o) => t.includes(o));
301
+ }), ce = s(() => {
302
+ const t = l(f) || [], n = F.value, o = n.filter((c) => t.includes(c)).length;
303
+ return o > 0 && o < n.length;
294
304
  });
295
- function ie() {
296
- const t = new Set(n(p) || []), o = O.value;
297
- o.length > 0 && o.every((a) => t.has(a)) ? o.forEach((a) => t.delete(a)) : o.forEach((a) => t.add(a));
298
- const i = d.value.filter((a) => t.has(a[e.fieldNames?.value || "value"]));
299
- F([...t]), e.onChange?.([...t], i);
305
+ function de() {
306
+ const t = new Set(l(f) || []), n = F.value;
307
+ n.length > 0 && n.every((a) => t.has(a)) ? n.forEach((a) => t.delete(a)) : n.forEach((a) => t.add(a));
308
+ const c = p.value.filter((a) => t.has(a[e.fieldNames?.value || "value"]));
309
+ S([...t]), e.onChange?.([...t], c);
300
310
  }
301
- return U({
302
- focus: le,
303
- blur: ne,
304
- request: y
305
- }), (t, o) => t.mode === "read" ? (m(), M("span", Te, B(Z.value), 1)) : (m(), C(n(Oe), ve({
311
+ return K({
312
+ focus: ae,
313
+ blur: se,
314
+ request: i
315
+ }), (t, n) => t.mode === "read" ? (h(), M("span", Le, N(te.value), 1)) : (h(), C(l(ke), ge({
306
316
  key: 1,
307
317
  ref_key: "selectRef",
308
- ref: w,
318
+ ref: O,
309
319
  "allow-clear": ""
310
- }, ee.value, {
311
- mode: Q.value,
312
- value: n(p),
313
- options: n(d),
320
+ }, ne.value, {
321
+ mode: X.value,
322
+ value: l(f),
323
+ options: l(p),
314
324
  loading: u.value,
315
- "menu-item-selected-icon": ye("span"),
316
- "popup-class-name": `${n(S)("popup")} ${n(j)}`,
317
- "onUpdate:value": n(F),
318
- onFocus: X
319
- }), ge({
320
- option: h((l) => [N("div", {
321
- class: v(n(c)("outter"))
322
- }, [f(n(T), {
325
+ "menu-item-selected-icon": Ce("span"),
326
+ "popup-class-name": `${l(w)("popup")} ${l(H)}`,
327
+ "onUpdate:value": l(S),
328
+ onFocus: Y,
329
+ onDropdownVisibleChange: Z
330
+ }), be({
331
+ option: v((o) => [x("div", {
332
+ class: y(l(d)("outter"))
333
+ }, [m(l(q), {
323
334
  justify: "space-between",
324
335
  align: "center",
325
- class: v(n(c)("wrapper")),
336
+ class: y(l(d)("wrapper")),
326
337
  gap: 8
327
338
  }, {
328
- default: h(() => [f(n(T), {
339
+ default: v(() => [m(l(q), {
329
340
  gap: 8,
330
341
  align: "center",
331
- class: v(n(c)("content-wrapper"))
342
+ class: y(l(d)("content-wrapper"))
332
343
  }, {
333
- default: h(() => [I.value ? (m(), C(n(q), {
344
+ default: v(() => [D.value ? (h(), C(l(L), {
334
345
  key: 0,
335
- checked: n(p)?.includes(k(l, "value"))
336
- }, null, 8, ["checked"])) : P("", !0), (m(), C(D(se(l))))]),
346
+ checked: l(f)?.includes(B(o, "value"))
347
+ }, null, 8, ["checked"])) : P("", !0), (h(), C(T(re(o))))]),
337
348
  _: 2
338
- }, 1032, ["class"]), oe.value && !l?.disabled ? (m(), M("span", {
349
+ }, 1032, ["class"]), le.value && !o?.disabled ? (h(), M("span", {
339
350
  key: 0,
340
- class: v(n(c)("action")),
341
- onClick: Ce(() => ae(l), ["stop"])
342
- }, B(n(V)("ap.field.chooseOnly")), 11, qe)) : P("", !0)]),
351
+ class: y(l(d)("action")),
352
+ onClick: we(() => ue(o), ["stop"])
353
+ }, N(l(_)("ap.field.chooseOnly")), 11, ze)) : P("", !0)]),
343
354
  _: 2
344
355
  }, 1032, ["class"])], 2)]),
345
356
  _: 2
346
- }, [be(n(R)(b, ["option"]), (l, i) => ({
347
- name: i,
348
- fn: h((a) => [Se(t.$slots, i, we(Fe(a || {})))])
357
+ }, [Oe(l(R)(b, ["option"]), (o, c) => ({
358
+ name: c,
359
+ fn: v((a) => [Se(t.$slots, c, Fe(Be(a || {})))])
349
360
  })), u.value ? {
350
361
  name: "notFoundContent",
351
- fn: h(() => [f(n(ke), {
362
+ fn: v(() => [m(l(Ne), {
352
363
  size: "small"
353
364
  })]),
354
365
  key: "0"
355
- } : void 0, I.value ? {
366
+ } : void 0, D.value ? {
356
367
  name: "dropdownRender",
357
- fn: h(({
358
- menuNode: l
359
- }) => [N("div", {
368
+ fn: v(({
369
+ menuNode: o
370
+ }) => [x("div", {
360
371
  tabindex: -1,
361
- class: v(n(S)("popup-all-option")),
362
- onClick: ie
363
- }, [f(n(q), {
364
- checked: ue.value,
365
- indeterminate: re.value
366
- }, null, 8, ["checked", "indeterminate"]), N("span", {
367
- class: v(n(S)("popup-all-option-label"))
368
- }, B(n(V)("ap.field.selectAll")), 3)], 2), (m(), C(D(l)))]),
372
+ class: y(l(w)("popup-all-option")),
373
+ onClick: de
374
+ }, [m(l(L), {
375
+ checked: ie.value,
376
+ indeterminate: ce.value
377
+ }, null, 8, ["checked", "indeterminate"]), x("span", {
378
+ class: y(l(w)("popup-all-option-label"))
379
+ }, N(l(_)("ap.field.selectAll")), 3)], 2), (h(), C(T(o)))]),
369
380
  key: "1"
370
381
  } : void 0]), 1040, ["mode", "value", "options", "loading", "menu-item-selected-icon", "popup-class-name", "onUpdate:value"]));
371
382
  }
372
383
  });
373
384
  export {
374
- Ye as default
385
+ et as default
375
386
  };
@@ -91,6 +91,7 @@ const f = { key: 0 }, C = /* @__PURE__ */ i({
91
91
  searchMode: {},
92
92
  refetchOnFocus: { type: Boolean },
93
93
  fetchOnFocus: { type: Boolean },
94
+ fetchOnOpen: { type: Boolean },
94
95
  lazy: { type: [Boolean, String] },
95
96
  addAll: { type: [Boolean, Number] },
96
97
  params: {},
@@ -171,8 +171,22 @@ export type ApFormListProps = {
171
171
  transform?: ApFormItemTransformType;
172
172
  };
173
173
  export type ApFormSearchFormProps = ApFormProps & {
174
+ /**
175
+ * 是否展开
176
+ * @deprecated 已废弃
177
+ */
174
178
  collapse?: boolean;
179
+ /**
180
+ * 默认情况下是否展开
181
+ * @deprecated 已废弃
182
+ */
175
183
  defaultCollapse?: boolean;
184
+ /**
185
+ * 展开关闭时的回调
186
+ * @deprecated 已废弃
187
+ * @param collapse
188
+ * @returns
189
+ */
176
190
  'onUpdate:collapse'?: (collapse?: boolean) => void;
177
191
  searchText?: string;
178
192
  resetText?: string;
@@ -180,6 +194,10 @@ export type ApFormSearchFormProps = ApFormProps & {
180
194
  onReset?: () => void;
181
195
  customReset?: boolean;
182
196
  extraInAction?: boolean;
197
+ /**
198
+ * 是否是强制展开的(即无法关闭)
199
+ * @deprecated 已废弃
200
+ */
183
201
  forceExpand?: boolean;
184
202
  countPerRow?: number;
185
203
  submitLoading?: boolean;
@@ -135,7 +135,8 @@ declare function __VLS_template(): {
135
135
  readonly searchMode?: "filter" | "request" | undefined;
136
136
  readonly refetchOnFocus?: boolean | undefined;
137
137
  readonly fetchOnFocus?: boolean | undefined;
138
- readonly lazy?: boolean | "first-focus" | undefined;
138
+ readonly fetchOnOpen?: boolean | undefined;
139
+ readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
139
140
  readonly addAll?: boolean | number | undefined;
140
141
  readonly params?: Recordable | undefined;
141
142
  readonly searchDelay?: number | undefined;
@@ -595,7 +596,7 @@ declare function __VLS_template(): {
595
596
  disabled: boolean;
596
597
  virtual: boolean;
597
598
  autofocus: boolean;
598
- lazy: boolean | "first-focus";
599
+ lazy: boolean | "first-focus" | "first-open";
599
600
  loading: boolean;
600
601
  bordered: boolean;
601
602
  allowClear: boolean;
@@ -639,7 +640,7 @@ declare function __VLS_template(): {
639
640
  disabled: boolean;
640
641
  virtual: boolean;
641
642
  autofocus: boolean;
642
- lazy: boolean | "first-focus";
643
+ lazy: boolean | "first-focus" | "first-open";
643
644
  loading: boolean;
644
645
  bordered: boolean;
645
646
  allowClear: boolean;
@@ -799,7 +800,8 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
799
800
  readonly searchMode?: "filter" | "request" | undefined;
800
801
  readonly refetchOnFocus?: boolean | undefined;
801
802
  readonly fetchOnFocus?: boolean | undefined;
802
- readonly lazy?: boolean | "first-focus" | undefined;
803
+ readonly fetchOnOpen?: boolean | undefined;
804
+ readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
803
805
  readonly addAll?: boolean | number | undefined;
804
806
  readonly params?: Recordable | undefined;
805
807
  readonly searchDelay?: number | undefined;
@@ -1259,7 +1261,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1259
1261
  disabled: boolean;
1260
1262
  virtual: boolean;
1261
1263
  autofocus: boolean;
1262
- lazy: boolean | "first-focus";
1264
+ lazy: boolean | "first-focus" | "first-open";
1263
1265
  loading: boolean;
1264
1266
  bordered: boolean;
1265
1267
  allowClear: boolean;
@@ -1303,7 +1305,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1303
1305
  disabled: boolean;
1304
1306
  virtual: boolean;
1305
1307
  autofocus: boolean;
1306
- lazy: boolean | "first-focus";
1308
+ lazy: boolean | "first-focus" | "first-open";
1307
1309
  loading: boolean;
1308
1310
  bordered: boolean;
1309
1311
  allowClear: boolean;
@@ -243,8 +243,8 @@ declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {
243
243
  hasFeedback: boolean;
244
244
  autoLink: boolean;
245
245
  validateFirst: boolean;
246
- field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
247
246
  valuePropName: string;
247
+ field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
248
248
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
249
249
  switchRef: ({
250
250
  $: ComponentInternalInstance;
@@ -2579,7 +2579,8 @@ export declare const apTableFormItemMap: {
2579
2579
  readonly searchMode?: "filter" | "request" | undefined;
2580
2580
  readonly refetchOnFocus?: boolean | undefined;
2581
2581
  readonly fetchOnFocus?: boolean | undefined;
2582
- readonly lazy?: boolean | "first-focus" | undefined;
2582
+ readonly fetchOnOpen?: boolean | undefined;
2583
+ readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
2583
2584
  readonly addAll?: boolean | number | undefined;
2584
2585
  readonly params?: Recordable | undefined;
2585
2586
  readonly searchDelay?: number | undefined;
@@ -3039,7 +3040,7 @@ export declare const apTableFormItemMap: {
3039
3040
  disabled: boolean;
3040
3041
  virtual: boolean;
3041
3042
  autofocus: boolean;
3042
- lazy: boolean | "first-focus";
3043
+ lazy: boolean | "first-focus" | "first-open";
3043
3044
  loading: boolean;
3044
3045
  bordered: boolean;
3045
3046
  allowClear: boolean;
@@ -3083,7 +3084,7 @@ export declare const apTableFormItemMap: {
3083
3084
  disabled: boolean;
3084
3085
  virtual: boolean;
3085
3086
  autofocus: boolean;
3086
- lazy: boolean | "first-focus";
3087
+ lazy: boolean | "first-focus" | "first-open";
3087
3088
  loading: boolean;
3088
3089
  bordered: boolean;
3089
3090
  allowClear: boolean;
@@ -3208,8 +3209,8 @@ export declare const apTableFormItemMap: {
3208
3209
  hasFeedback: boolean;
3209
3210
  autoLink: boolean;
3210
3211
  validateFirst: boolean;
3211
- field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3212
3212
  valuePropName: string;
3213
+ field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3213
3214
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
3214
3215
  switchRef: ({
3215
3216
  $: ComponentInternalInstance;
@@ -3439,8 +3440,8 @@ export declare const apTableFormItemMap: {
3439
3440
  hasFeedback: boolean;
3440
3441
  autoLink: boolean;
3441
3442
  validateFirst: boolean;
3442
- field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3443
3443
  valuePropName: string;
3444
+ field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3444
3445
  }>;
3445
3446
  __isFragment?: never;
3446
3447
  __isTeleport?: never;
@@ -3455,8 +3456,8 @@ export declare const apTableFormItemMap: {
3455
3456
  hasFeedback: boolean;
3456
3457
  autoLink: boolean;
3457
3458
  validateFirst: boolean;
3458
- field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3459
3459
  valuePropName: string;
3460
+ field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
3460
3461
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3461
3462
  $slots: Readonly<{
3462
3463
  checkedChildren: any;