@aplus-frontend/ui 7.14.3 → 7.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/es/src/ap-field/checkbox/index.vue.d.ts +3 -1
  2. package/es/src/ap-field/checkbox/index.vue.mjs +37 -31
  3. package/es/src/ap-field/interface.d.ts +4 -2
  4. package/es/src/ap-field/radio/index.vue.d.ts +1 -2
  5. package/es/src/ap-field/radio/index.vue.mjs +36 -41
  6. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  7. package/es/src/ap-field/select/index.vue.mjs +41 -39
  8. package/es/src/ap-field/style/select.mjs +1 -1
  9. package/es/src/ap-form/items/radio/index.vue.d.ts +5 -10
  10. package/es/src/ap-form/items/radio/index.vue.mjs +15 -20
  11. package/es/src/ap-table/constants.d.ts +5 -10
  12. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -36
  13. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -27
  14. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +78 -81
  15. package/es/src/config-provider/config-provider-props.d.ts +3 -1
  16. package/es/src/config-provider/config-provider.d.ts +7 -28
  17. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -10
  18. package/es/src/config-provider/index.d.ts +13 -55
  19. package/es/src/version.d.ts +1 -1
  20. package/es/src/version.mjs +1 -1
  21. package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -1
  22. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  23. package/lib/src/ap-field/interface.d.ts +4 -2
  24. package/lib/src/ap-field/radio/index.vue.d.ts +1 -2
  25. package/lib/src/ap-field/radio/index.vue.js +1 -1
  26. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  27. package/lib/src/ap-field/select/index.vue.js +1 -1
  28. package/lib/src/ap-field/style/select.js +1 -1
  29. package/lib/src/ap-form/items/radio/index.vue.d.ts +5 -10
  30. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  31. package/lib/src/ap-table/constants.d.ts +5 -10
  32. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  33. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  34. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  35. package/lib/src/config-provider/config-provider-props.d.ts +3 -1
  36. package/lib/src/config-provider/config-provider.d.ts +7 -28
  37. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -10
  38. package/lib/src/config-provider/index.d.ts +13 -55
  39. package/lib/src/version.d.ts +1 -1
  40. package/lib/src/version.js +1 -1
  41. package/package.json +3 -3
@@ -2,7 +2,9 @@ import { ApFieldCheckboxProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  import { CheckboxOptionType } from '@aplus-frontend/antdv';
5
- declare const _default: DefineComponent<ApFieldCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ declare const _default: DefineComponent<ApFieldCheckboxProps, {
6
+ request: () => Promise<void>;
7
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
8
  "update:value": (...args: any[]) => void;
7
9
  }, string, PublicProps, Readonly<ApFieldCheckboxProps> & Readonly<{
8
10
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -1,14 +1,14 @@
1
- import { defineComponent as g, ref as C, onMounted as V, createElementBlock as l, openBlock as o, Fragment as i, unref as e, createTextVNode as u, toDisplayString as m, createBlock as d, mergeProps as B } from "vue";
2
- import { Spin as O, CheckboxGroup as T } from "@aplus-frontend/antdv";
3
- import { isFunction as q, isNil as U, omit as _ } from "lodash-unified";
1
+ import { defineComponent as V, ref as q, onMounted as B, createElementBlock as l, openBlock as o, Fragment as n, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as O } from "vue";
2
+ import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
3
+ import { isFunction as _, isNil as F, omit as N } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import F from "../hooks/use-options.mjs";
7
- import N from "../style/index.mjs";
8
- import { getOptionValue as S, getOptionLabel as A } from "./helper.mjs";
9
- import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as z } from "../../hooks/useControllableValue.mjs";
11
- const Q = /* @__PURE__ */ g({
6
+ import S from "../hooks/use-options.mjs";
7
+ import A from "../style/index.mjs";
8
+ import { getOptionValue as j, getOptionLabel as z } from "./helper.mjs";
9
+ import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
11
+ const W = /* @__PURE__ */ V({
12
12
  name: "ApFieldCheckbox",
13
13
  inheritAttrs: !1,
14
14
  __name: "index",
@@ -30,33 +30,39 @@ const Q = /* @__PURE__ */ g({
30
30
  vertical: { type: Boolean }
31
31
  },
32
32
  emits: ["update:value"],
33
- setup(c, { emit: f }) {
34
- const v = f, t = c, { options: p, updateOptions: y } = F(t), { b: k, m: x } = j("field-checkbox"), h = N("field"), n = C(!1);
35
- V(() => {
36
- q(t.request) && (n.value = !0, t.request().then((a) => y(a)).finally(() => {
37
- n.value = !1;
38
- }));
33
+ setup(f, { expose: v, emit: y }) {
34
+ const k = y, t = f, { options: u, updateOptions: x } = S(t), { b: h, m: b } = D("field-checkbox"), g = A("field"), r = q(!1);
35
+ async function p() {
36
+ if (_(t.request))
37
+ return r.value = !0, t.request().then((a) => x(a)).finally(() => {
38
+ r.value = !1;
39
+ });
40
+ }
41
+ B(() => {
42
+ p();
39
43
  });
40
- const { value: r, updateValue: b } = z(
44
+ const { value: i, updateValue: C } = E(
41
45
  t,
42
- v,
46
+ k,
43
47
  {
44
48
  defaultValue: []
45
49
  }
46
50
  );
47
- return (a, D) => a.mode === "read" ? (o(), l(i, { key: 0 }, [
48
- e(U)(e(r)) ? (o(), l(i, { key: 0 }, [
49
- u(m(t.emptyText), 1)
50
- ], 64)) : (o(), l(i, { key: 1 }, [
51
- u(m(e(p)?.filter((s) => e(r).indexOf(e(S)(s)) > -1).map((s) => e(A)(s)).join("、") || t.emptyText), 1)
51
+ return v({
52
+ request: p
53
+ }), (a, G) => a.mode === "read" ? (o(), l(n, { key: 0 }, [
54
+ e(F)(e(i)) ? (o(), l(n, { key: 0 }, [
55
+ m(d(t.emptyText), 1)
56
+ ], 64)) : (o(), l(n, { key: 1 }, [
57
+ m(d(e(u)?.filter((s) => e(i).indexOf(e(j)(s)) > -1).map((s) => e(z)(s)).join("、") || t.emptyText), 1)
52
58
  ], 64))
53
- ], 64)) : (o(), l(i, { key: 1 }, [
54
- n.value ? (o(), d(e(O), {
59
+ ], 64)) : (o(), l(n, { key: 1 }, [
60
+ r.value ? (o(), c(e(T), {
55
61
  key: 0,
56
62
  size: "small"
57
- })) : (o(), d(e(T), B(
63
+ })) : (o(), c(e(U), O(
58
64
  { key: 1 },
59
- e(_)(t, [
65
+ e(N)(t, [
60
66
  "onUpdate:value",
61
67
  "value",
62
68
  "request",
@@ -64,15 +70,15 @@ const Q = /* @__PURE__ */ g({
64
70
  "emptyText"
65
71
  ]),
66
72
  {
67
- options: e(p),
68
- value: e(r),
69
- class: [e(k)(), a.vertical ? e(x)("vertical") : null, e(h)],
70
- "onUpdate:value": e(b)
73
+ options: e(u),
74
+ value: e(i),
75
+ class: [e(h)(), a.vertical ? e(b)("vertical") : null, e(g)],
76
+ "onUpdate:value": e(C)
71
77
  }
72
78
  ), null, 16, ["options", "value", "class", "onUpdate:value"]))
73
79
  ], 64));
74
80
  }
75
81
  });
76
82
  export {
77
- Q as default
83
+ W as default
78
84
  };
@@ -43,6 +43,9 @@ export type ApFieldCheckboxProps = BasicApFieldProps<CheckboxGroupProps> & {
43
43
  request?: () => Promise<CheckboxGroupProps['options']>;
44
44
  vertical?: boolean;
45
45
  };
46
+ export type ApFieldCheckboxExpose = {
47
+ request: () => Promise<void>;
48
+ };
46
49
  export type ApFieldDateProps = BasicApFieldProps<Omit<DatePickerProps, 'mode' | 'value' | 'defaultValue' | 'onChange' | 'onOk' | 'format' | 'onUpdate:value'>> & {
47
50
  emptyText?: string;
48
51
  value?: number | null;
@@ -94,8 +97,7 @@ export type ApFieldRadioProps = BasicApFieldProps<RadioGroupProps> & {
94
97
  vertical?: boolean;
95
98
  };
96
99
  export type ApiFieldRadioExpose = {
97
- focus: () => void;
98
- blur: () => void;
100
+ request: () => Promise<void>;
99
101
  };
100
102
  export type ApFieldSwitchConfirmConfig = Pick<PopconfirmProps, 'title' | 'okText' | 'cancelText' | 'description' | 'showCancel' | 'icon' | 'okType' | 'onCancel' | 'okButtonProps' | 'cancelButtonProps'>;
101
103
  export type ApFieldSwitchProps = BasicApFieldProps<Omit<SwitchProps, 'onClick'>> & {
@@ -7,8 +7,7 @@ import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/ant
7
7
  import { RadioChangeEvent } from '@aplus-frontend/antdv';
8
8
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
9
9
  declare const _default: DefineComponent<ApFieldRadioProps, {
10
- focus: () => void;
11
- blur: () => void;
10
+ request: () => Promise<void>;
12
11
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
12
  "update:value": (...args: any[]) => void;
14
13
  }, string, PublicProps, Readonly<ApFieldRadioProps> & Readonly<{
@@ -1,14 +1,14 @@
1
- import { defineComponent as V, shallowRef as _, ref as q, onMounted as C, computed as O, unref as e, createElementBlock as s, openBlock as a, Fragment as p, createTextVNode as S, toDisplayString as U, createBlock as m, mergeProps as G } from "vue";
2
- import { Spin as N, RadioGroup as z } from "@aplus-frontend/antdv";
3
- import { isNil as F, omit as w } from "lodash-unified";
1
+ import { defineComponent as h, ref as q, onMounted as V, computed as C, unref as e, createElementBlock as p, openBlock as a, Fragment as u, createTextVNode as O, toDisplayString as S, createBlock as m, mergeProps as U } from "vue";
2
+ import { Spin as _, RadioGroup as N } from "@aplus-frontend/antdv";
3
+ import { isNil as R, omit as z } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import A from "../hooks/use-options.mjs";
7
- import D from "../style/index.mjs";
8
- import { getOptionValue as E, getOptionLabel as I } from "./helper.mjs";
9
- import { useControllableValue as L } from "../../hooks/useControllableValue.mjs";
10
- import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
11
- const $ = /* @__PURE__ */ V({
6
+ import F from "../hooks/use-options.mjs";
7
+ import G from "../style/index.mjs";
8
+ import { getOptionValue as A, getOptionLabel as D } from "./helper.mjs";
9
+ import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
10
+ import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
11
+ const X = /* @__PURE__ */ h({
12
12
  name: "ApFieldRadio",
13
13
  __name: "index",
14
14
  props: {
@@ -32,40 +32,36 @@ const $ = /* @__PURE__ */ V({
32
32
  request: {}
33
33
  },
34
34
  emits: ["update:value"],
35
- setup(d, { expose: f, emit: c }) {
36
- const t = d, v = c, l = _(), { options: r, updateOptions: y } = A(t), { value: u, updateValue: g } = L(t, v), { b: k, m: b } = M("field-radio"), x = D("field"), n = q(!1);
37
- C(() => {
38
- t.request && (n.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
- n.value = !1;
35
+ setup(d, { expose: c, emit: f }) {
36
+ const t = d, v = f, { options: n, updateOptions: y } = F(t), { value: r, updateValue: g } = E(t, v), { b: k, m: x } = I("field-radio"), b = G("field"), l = q(!1);
37
+ async function i() {
38
+ t.request && (l.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
+ l.value = !1;
40
40
  }));
41
+ }
42
+ V(() => {
43
+ i();
41
44
  });
42
- const h = O(() => {
43
- const o = e(u);
44
- if (F(o))
45
+ const B = C(() => {
46
+ const o = e(r);
47
+ if (R(o))
45
48
  return t.emptyText;
46
- const i = r.value?.find(
47
- (R) => o === E(R)
49
+ const s = n.value?.find(
50
+ (T) => o === A(T)
48
51
  );
49
- return I(i) || t.emptyText;
52
+ return D(s) || t.emptyText;
50
53
  });
51
- function B() {
52
- l.value?.focus();
53
- }
54
- function T() {
55
- l.value?.blur();
56
- }
57
- return f({
58
- focus: B,
59
- blur: T
60
- }), (o, i) => o.mode === "read" ? (a(), s(p, { key: 0 }, [
61
- S(U(h.value), 1)
62
- ], 64)) : (a(), s(p, { key: 1 }, [
63
- n.value ? (a(), m(e(N), {
54
+ return c({
55
+ request: i
56
+ }), (o, s) => o.mode === "read" ? (a(), p(u, { key: 0 }, [
57
+ O(S(B.value), 1)
58
+ ], 64)) : (a(), p(u, { key: 1 }, [
59
+ l.value ? (a(), m(e(_), {
64
60
  key: 0,
65
61
  size: "small"
66
- })) : (a(), m(e(z), G(
62
+ })) : (a(), m(e(N), U(
67
63
  { key: 1 },
68
- e(w)(t, [
64
+ e(z)(t, [
69
65
  "value",
70
66
  "onUpdate:value",
71
67
  "options",
@@ -73,11 +69,10 @@ const $ = /* @__PURE__ */ V({
73
69
  "vertical"
74
70
  ]),
75
71
  {
76
- ref_key: "radioGroupRef",
77
- ref: l,
78
- value: e(u),
79
- options: e(r),
80
- class: [e(k)(), o.vertical ? e(b)("vertical") : null, e(x)],
72
+ ref: "radioGroupRef",
73
+ value: e(r),
74
+ options: e(n),
75
+ class: [e(k)(), o.vertical ? e(x)("vertical") : null, e(b)],
81
76
  "onUpdate:value": e(g)
82
77
  }
83
78
  ), null, 16, ["value", "options", "class", "onUpdate:value"]))
@@ -85,5 +80,5 @@ const $ = /* @__PURE__ */ V({
85
80
  }
86
81
  });
87
82
  export {
88
- $ as default
83
+ X as default
89
84
  };
@@ -322,7 +322,7 @@ declare function __VLS_template(): {
322
322
  };
323
323
  animation: StringConstructor;
324
324
  direction: {
325
- type: ** @type { [typeof __VLS_components.Select, typeof __VLS_components.Select, ] } */).PropType<"rtl" | "ltr">;
325
+ type: PropType<"rtl" | "ltr">;
326
326
  };
327
327
  disabled: {
328
328
  type: BooleanConstructor;
@@ -782,7 +782,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
782
782
  };
783
783
  animation: StringConstructor;
784
784
  direction: {
785
- type: ** @type { [typeof __VLS_components.Select, typeof __VLS_components.Select, ] } */).PropType<"rtl" | "ltr">;
785
+ type: PropType<"rtl" | "ltr">;
786
786
  };
787
787
  disabled: {
788
788
  type: BooleanConstructor;
@@ -1,4 +1,4 @@
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";
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 f, createElementBlock as _, createBlock as C, openBlock as m, toDisplayString as N, mergeProps as me, h as he, createSlots as ve, withCtx as h, createElementVNode as x, normalizeClass as v, createCommentVNode as M, resolveDynamicComponent as P, withModifiers as ye, renderList as ge, renderSlot as Ce, normalizeProps as be, guardReactiveProps as we } from "vue";
2
2
  import { Select as Se, Flex as D, Checkbox as T, Spin as ke } from "@aplus-frontend/antdv";
3
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";
@@ -180,7 +180,7 @@ const Me = {
180
180
  const F = de(), e = E, {
181
181
  b
182
182
  } = R("field-select"), {
183
- b: i
183
+ b: d
184
184
  } = R("field-select-popup-option"), K = Ae("field"), O = I(!1), {
185
185
  t: A
186
186
  } = Ie(), j = Be((t) => {
@@ -195,7 +195,7 @@ const Me = {
195
195
  const l = e.fieldNames?.label || "label";
196
196
  return typeof o?.[l] == "string" && o[l].toLowerCase().indexOf(t.toLowerCase()) > -1;
197
197
  }, {
198
- options: h,
198
+ options: c,
199
199
  updateOptions: y
200
200
  } = Ve(e), w = ce(), u = I(e?.loading || !1), W = $, G = s(() => {
201
201
  if (e.multiple)
@@ -227,14 +227,14 @@ const Me = {
227
227
  deep: !0
228
228
  });
229
229
  const {
230
- value: d,
230
+ value: p,
231
231
  updateValue: S
232
232
  } = _e(e, W), Q = Oe("Select", e), X = s(() => {
233
- const t = n(d);
233
+ const t = n(p);
234
234
  if (!t)
235
235
  return e.emptyText;
236
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;
237
+ return Ne(t) ? t.map((a) => n(c).find((re) => re[l] === a)?.[o]).filter(Boolean).join("、") || e.emptyText : n(c).find((a) => a[l] === t)?.[o] || e.emptyText;
238
238
  }), Y = s(() => {
239
239
  const t = !!e?.showSearch, o = e.searchMode;
240
240
  let l = {};
@@ -251,7 +251,7 @@ const Me = {
251
251
  placeholder: n(Q),
252
252
  ...l
253
253
  };
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));
254
+ }), Z = s(() => c.value.map((t) => t[e.fieldNames?.value || "value"])), k = s(() => c.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
255
  function te() {
256
256
  w.value?.focus();
257
257
  }
@@ -264,39 +264,41 @@ const Me = {
264
264
  }
265
265
  function le(t) {
266
266
  const o = B(t, "value");
267
- S(e.multiple ? [o] : o);
267
+ S(e.multiple ? [o] : o), e.onChange?.([o], [t]);
268
268
  }
269
269
  function ne(t) {
270
- return F.option ? c("div", {
271
- class: i("custom")
272
- }, [F.option(t)]) : c("span", {
273
- class: i("label")
270
+ return F.option ? f("div", {
271
+ class: d("custom")
272
+ }, [F.option(t)]) : f("span", {
273
+ class: d("label")
274
274
  }, [B(t, "label")]);
275
275
  }
276
276
  const ae = s(() => {
277
- const t = n(d) || [], o = k.value;
277
+ const t = n(p) || [], o = k.value;
278
278
  return o.length > 0 && o.every((l) => t.includes(l));
279
279
  }), se = s(() => {
280
- const t = n(d) || [], o = k.value, l = o.filter((a) => t.includes(a)).length;
280
+ const t = n(p) || [], o = k.value, l = o.filter((i) => t.includes(i)).length;
281
281
  return l > 0 && l < o.length;
282
282
  });
283
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]);
284
+ const t = new Set(n(p) || []), 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));
286
+ const i = c.value.filter((a) => t.has(a[e.fieldNames?.value || "value"]));
287
+ S([...t]), e.onChange?.([...t], i);
286
288
  }
287
289
  return U({
288
290
  focus: te,
289
291
  blur: oe,
290
292
  request: g
291
- }), (t, o) => t.mode === "read" ? (p(), _("span", Me, N(X.value), 1)) : (p(), C(n(Se), me({
293
+ }), (t, o) => t.mode === "read" ? (m(), _("span", Me, N(X.value), 1)) : (m(), C(n(Se), me({
292
294
  key: 1,
293
295
  ref_key: "selectRef",
294
296
  ref: w,
295
297
  "allow-clear": ""
296
298
  }, Y.value, {
297
299
  mode: G.value,
298
- value: n(d),
299
- options: n(h),
300
+ value: n(p),
301
+ options: n(c),
300
302
  loading: u.value,
301
303
  "menu-item-selected-icon": he("span"),
302
304
  "popup-class-name": `${n(b)("popup")} ${n(K)}`,
@@ -305,55 +307,55 @@ const Me = {
305
307
  onFocus: J,
306
308
  onDropdownVisibleChange: o[0] || (o[0] = (l) => O.value = l)
307
309
  }), ve({
308
- option: f((l) => [x("div", {
309
- class: m(n(i)("outter"))
310
- }, [c(n(D), {
310
+ option: h((l) => [x("div", {
311
+ class: v(n(d)("outter"))
312
+ }, [f(n(D), {
311
313
  justify: "space-between",
312
314
  align: "center",
313
- class: m(n(i)("wrapper")),
315
+ class: v(n(d)("wrapper")),
314
316
  gap: 8
315
317
  }, {
316
- default: f(() => [c(n(D), {
318
+ default: h(() => [f(n(D), {
317
319
  gap: 8,
318
320
  align: "center",
319
- class: m(n(i)("content-wrapper"))
321
+ class: v(n(d)("content-wrapper"))
320
322
  }, {
321
- default: f(() => [V.value ? (p(), C(n(T), {
323
+ default: h(() => [V.value ? (m(), C(n(T), {
322
324
  key: 0,
323
- checked: n(d)?.includes(B(l, "value"))
324
- }, null, 8, ["checked"])) : M("", !0), (p(), C(P(ne(l))))]),
325
+ checked: n(p)?.includes(B(l, "value"))
326
+ }, null, 8, ["checked"])) : M("", !0), (m(), C(P(ne(l))))]),
325
327
  _: 2
326
- }, 1032, ["class"]), ee.value && !l?.disabled ? (p(), _("span", {
328
+ }, 1032, ["class"]), ee.value && !l?.disabled ? (m(), _("span", {
327
329
  key: 0,
328
- class: m(n(i)("action")),
330
+ class: v(n(d)("action")),
329
331
  onClick: ye(() => le(l), ["stop"])
330
332
  }, N(n(A)("ap.field.chooseOnly")), 11, Pe)) : M("", !0)]),
331
333
  _: 2
332
334
  }, 1032, ["class"])], 2)]),
333
335
  _: 2
334
- }, [ge(n(L)(t.$slots, ["option"]), (l, a) => ({
335
- name: a,
336
- fn: f((v) => [Ce(t.$slots, a, be(we(v || {})))])
336
+ }, [ge(n(L)(t.$slots, ["option"]), (l, i) => ({
337
+ name: i,
338
+ fn: h((a) => [Ce(t.$slots, i, be(we(a || {})))])
337
339
  })), u.value ? {
338
340
  name: "notFoundContent",
339
- fn: f(() => [c(n(ke), {
341
+ fn: h(() => [f(n(ke), {
340
342
  size: "small"
341
343
  })]),
342
344
  key: "0"
343
345
  } : void 0, V.value ? {
344
346
  name: "dropdownRender",
345
- fn: f(({
347
+ fn: h(({
346
348
  menuNode: l
347
349
  }) => [x("div", {
348
350
  tabindex: -1,
349
- class: m(n(b)("popup-all-option")),
351
+ class: v(n(b)("popup-all-option")),
350
352
  onClick: ue
351
- }, [c(n(T), {
353
+ }, [f(n(T), {
352
354
  checked: ae.value,
353
355
  indeterminate: se.value
354
356
  }, 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
+ class: v(n(b)("popup-all-option-label"))
358
+ }, N(n(A)("ap.field.selectAll")), 3)], 2), (m(), C(P(l)))]),
357
359
  key: "1"
358
360
  } : void 0]), 1040, ["mode", "value", "options", "loading", "menu-item-selected-icon", "popup-class-name", "open", "onUpdate:value"]));
359
361
  }
@@ -19,7 +19,7 @@ const a = (o) => {
19
19
  paddingInline: o.space
20
20
  },
21
21
  [`${i}-option-wrapper`]: {
22
- height: "30px"
22
+ minHeight: "30px"
23
23
  },
24
24
  [`${i}-option-content-wrapper`]: {
25
25
  flex: 1,
@@ -15,8 +15,7 @@ declare function __VLS_template(): {
15
15
  radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
16
16
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
17
17
  }>, {
18
- focus: () => void;
19
- blur: () => void;
18
+ request: () => Promise<void>;
20
19
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
20
  "update:value": (...args: any[]) => void;
22
21
  }, PublicProps, {
@@ -139,8 +138,7 @@ declare function __VLS_template(): {
139
138
  }, Readonly< ApFieldRadioProps> & Readonly<{
140
139
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
141
140
  }>, {
142
- focus: () => void;
143
- blur: () => void;
141
+ request: () => Promise<void>;
144
142
  }, {}, {}, {}, {
145
143
  mode: FieldMode;
146
144
  vertical: boolean;
@@ -152,8 +150,7 @@ declare function __VLS_template(): {
152
150
  };
153
151
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
154
152
  declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
155
- focus: () => void;
156
- blur: () => void;
153
+ request: () => Promise<void> | undefined;
157
154
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemRadioProps> & Readonly<{}>, {
158
155
  disabled: boolean;
159
156
  required: boolean;
@@ -166,8 +163,7 @@ declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
166
163
  radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
167
164
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
168
165
  }>, {
169
- focus: () => void;
170
- blur: () => void;
166
+ request: () => Promise<void>;
171
167
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
172
168
  "update:value": (...args: any[]) => void;
173
169
  }, PublicProps, {
@@ -290,8 +286,7 @@ declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
290
286
  }, Readonly< ApFieldRadioProps> & Readonly<{
291
287
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
292
288
  }>, {
293
- focus: () => void;
294
- blur: () => void;
289
+ request: () => Promise<void>;
295
290
  }, {}, {}, {}, {
296
291
  mode: FieldMode;
297
292
  vertical: boolean;
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as _, renderList as x, renderSlot as g } from "vue";
1
+ import { defineComponent as u, useSlots as m, shallowRef as c, createBlock as y, openBlock as B, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as v, mergeProps as b, renderList as x, renderSlot as g } from "vue";
2
2
  import { omit as h } from "lodash-unified";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import "../../item/index.vue2.mjs";
5
5
  import F from "../../item/index.vue.mjs";
6
6
  import k from "../../../ap-field/radio/index.vue.mjs";
7
- const q = /* @__PURE__ */ f({
7
+ const A = /* @__PURE__ */ u({
8
8
  name: "ApFormItemRadio",
9
9
  __name: "index",
10
10
  props: {
@@ -52,34 +52,29 @@ const q = /* @__PURE__ */ f({
52
52
  autoFocus: { type: Boolean },
53
53
  field: { default: () => ({}) }
54
54
  },
55
- setup(i, { expose: n }) {
56
- const d = i, p = m(), e = c();
57
- return n({
58
- focus: () => {
59
- e.value?.focus();
60
- },
61
- blur: () => {
62
- e.value?.blur();
63
- }
64
- }), (o, S) => (v(), b(F, a(t(r(h)(d, ["field"]))), y({
55
+ setup(i, { expose: d }) {
56
+ const n = i, p = m(), o = c();
57
+ return d({
58
+ request: () => o.value?.request()
59
+ }), (e, C) => (B(), y(F, a(t(r(h)(n, ["field"]))), _({
65
60
  default: s(() => [
66
- B(r(k), _({
61
+ v(r(k), b({
67
62
  ref_key: "radioRef",
68
- ref: e,
69
- disabled: o.disabled
70
- }, o.field), null, 16, ["disabled"])
63
+ ref: o,
64
+ disabled: e.disabled
65
+ }, e.field), null, 16, ["disabled"])
71
66
  ]),
72
67
  _: 2
73
68
  }, [
74
- x(p, (P, l) => ({
69
+ x(p, (R, l) => ({
75
70
  name: l,
76
- fn: s((u) => [
77
- g(o.$slots, l, a(t(u || {})))
71
+ fn: s((f) => [
72
+ g(e.$slots, l, a(t(f || {})))
78
73
  ])
79
74
  }))
80
75
  ]), 1040));
81
76
  }
82
77
  });
83
78
  export {
84
- q as default
79
+ A as default
85
80
  };
@@ -726,8 +726,7 @@ export declare const apTableFormItemMap: {
726
726
  });
727
727
  radio: {
728
728
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemRadioProps> & Readonly<{}>, {
729
- focus: () => void;
730
- blur: () => void;
729
+ request: () => Promise<void> | undefined;
731
730
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
732
731
  disabled: boolean;
733
732
  required: boolean;
@@ -740,8 +739,7 @@ export declare const apTableFormItemMap: {
740
739
  radioRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldRadioProps> & Readonly<{
741
740
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
742
741
  }>, {
743
- focus: () => void;
744
- blur: () => void;
742
+ request: () => Promise<void>;
745
743
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
746
744
  "update:value": (...args: any[]) => void;
747
745
  }, PublicProps, {
@@ -864,8 +862,7 @@ export declare const apTableFormItemMap: {
864
862
  }, Readonly< ApFieldRadioProps> & Readonly<{
865
863
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
866
864
  }>, {
867
- focus: () => void;
868
- blur: () => void;
865
+ request: () => Promise<void>;
869
866
  }, {}, {}, {}, {
870
867
  mode: FieldMode;
871
868
  vertical: boolean;
@@ -880,8 +877,7 @@ export declare const apTableFormItemMap: {
880
877
  M: {};
881
878
  Defaults: {};
882
879
  }, Readonly< ApFormItemRadioProps> & Readonly<{}>, {
883
- focus: () => void;
884
- blur: () => void;
880
+ request: () => Promise<void> | undefined;
885
881
  }, {}, {}, {}, {
886
882
  disabled: boolean;
887
883
  required: boolean;
@@ -895,8 +891,7 @@ export declare const apTableFormItemMap: {
895
891
  __isTeleport?: never;
896
892
  __isSuspense?: never;
897
893
  } & ComponentOptionsBase<Readonly< ApFormItemRadioProps> & Readonly<{}>, {
898
- focus: () => void;
899
- blur: () => void;
894
+ request: () => Promise<void> | undefined;
900
895
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
901
896
  disabled: boolean;
902
897
  required: boolean;