@aplus-frontend/ui 0.2.22 → 0.2.24

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 (123) hide show
  1. package/es/src/ap-drawer/interface.d.ts +1 -1
  2. package/es/src/ap-drawer/utils/createDrawer.mjs +31 -32
  3. package/es/src/ap-field/checkbox/index.vue.d.ts +3 -0
  4. package/es/src/ap-field/checkbox/index.vue.mjs +6 -6
  5. package/es/src/ap-field/number/index.vue.d.ts +3 -0
  6. package/es/src/ap-field/number/index.vue.mjs +1 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  8. package/es/src/ap-field/radio/index.vue.mjs +8 -8
  9. package/es/src/ap-field/rate/index.vue.d.ts +2 -2
  10. package/es/src/ap-field/rate/index.vue.mjs +3 -3
  11. package/es/src/ap-field/slider/index.vue.d.ts +3 -0
  12. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  13. package/es/src/ap-field/switch/index.vue.d.ts +3 -0
  14. package/es/src/ap-field/switch/index.vue.mjs +2 -1
  15. package/es/src/ap-field/text/index.vue.d.ts +3 -0
  16. package/es/src/ap-field/text/index.vue2.mjs +9 -8
  17. package/es/src/ap-field/text/password.vue.d.ts +3 -0
  18. package/es/src/ap-field/text/password.vue.mjs +8 -7
  19. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  20. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  21. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  22. package/es/src/ap-form/hooks/use-watch.mjs +28 -22
  23. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  24. package/es/src/ap-form/items/checkbox/index.vue.mjs +12 -12
  25. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  26. package/es/src/ap-form/items/date/index.vue.mjs +10 -10
  27. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  28. package/es/src/ap-form/items/date-range/index.vue.mjs +9 -9
  29. package/es/src/ap-form/items/number/index.vue.d.ts +8 -3
  30. package/es/src/ap-form/items/number/index.vue.mjs +10 -10
  31. package/es/src/ap-form/items/radio/index.vue.d.ts +7 -2
  32. package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
  33. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  34. package/es/src/ap-form/items/select/index.vue.mjs +10 -10
  35. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  36. package/es/src/ap-form/items/switch/index.vue.mjs +10 -10
  37. package/es/src/ap-form/items/text/index.vue.d.ts +8 -3
  38. package/es/src/ap-form/items/text/index.vue2.mjs +15 -15
  39. package/es/src/ap-form/items/text/password.vue.d.ts +8 -3
  40. package/es/src/ap-form/items/text/password.vue.mjs +10 -10
  41. package/es/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  42. package/es/src/ap-form/items/text-area/index.vue.mjs +11 -11
  43. package/es/src/ap-modal/interface.d.ts +1 -0
  44. package/es/src/ap-modal/utils/createModal.mjs +41 -35
  45. package/es/src/ap-table/ap-table.vue2.mjs +31 -34
  46. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +21 -21
  47. package/es/src/ap-table/constants.d.ts +77 -40
  48. package/es/src/ap-table/utils.d.ts +40 -40
  49. package/es/src/ap-upload/apUpload.vue.d.ts +3 -0
  50. package/es/src/ap-upload/apUpload.vue.mjs +7 -6
  51. package/es/src/ap-upload/apUploadTypes.d.ts +1 -1
  52. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +30 -30
  53. package/es/src/ap-upload/components/Picture.vue2.mjs +33 -33
  54. package/es/src/ap-upload/components/SingleFile.vue2.mjs +40 -40
  55. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  56. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +1 -1
  57. package/es/src/design-token/index.mjs +3 -1
  58. package/es/src/theme/antd-global-overwrite/admin/form.css +0 -3
  59. package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
  60. package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  61. package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  62. package/lib/src/ap-drawer/interface.d.ts +1 -1
  63. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  64. package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -0
  65. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  66. package/lib/src/ap-field/number/index.vue.d.ts +3 -0
  67. package/lib/src/ap-field/number/index.vue.js +1 -1
  68. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  69. package/lib/src/ap-field/radio/index.vue.js +1 -1
  70. package/lib/src/ap-field/rate/index.vue.d.ts +2 -2
  71. package/lib/src/ap-field/rate/index.vue.js +1 -1
  72. package/lib/src/ap-field/slider/index.vue.d.ts +3 -0
  73. package/lib/src/ap-field/slider/index.vue.js +1 -1
  74. package/lib/src/ap-field/switch/index.vue.d.ts +3 -0
  75. package/lib/src/ap-field/switch/index.vue.js +1 -1
  76. package/lib/src/ap-field/text/index.vue.d.ts +3 -0
  77. package/lib/src/ap-field/text/index.vue2.js +1 -1
  78. package/lib/src/ap-field/text/password.vue.d.ts +3 -0
  79. package/lib/src/ap-field/text/password.vue.js +1 -1
  80. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  81. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  82. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  83. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  84. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  85. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  86. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  87. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  88. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  89. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  90. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -3
  91. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  92. package/lib/src/ap-form/items/radio/index.vue.d.ts +7 -2
  93. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  94. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  95. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  96. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  97. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  98. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -3
  99. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  100. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -3
  101. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  102. package/lib/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  103. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  104. package/lib/src/ap-modal/interface.d.ts +1 -0
  105. package/lib/src/ap-modal/utils/createModal.js +1 -1
  106. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  107. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  108. package/lib/src/ap-table/constants.d.ts +77 -40
  109. package/lib/src/ap-table/utils.d.ts +40 -40
  110. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -0
  111. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  112. package/lib/src/ap-upload/apUploadTypes.d.ts +1 -1
  113. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  114. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  115. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  116. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  117. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +1 -1
  118. package/lib/src/design-token/index.js +1 -1
  119. package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -3
  120. package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
  121. package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  122. package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  123. package/package.json +3 -3
@@ -1,34 +1,40 @@
1
- import { useInjectForm as I } from "../context.mjs";
2
- import { ref as h, watchEffect as N } from "vue";
3
- import { isArray as S } from "lodash-unified";
4
- import { INTERNAL_FORM_INSTANCE_MARK as A } from "../constant.mjs";
5
- function M(t, n) {
6
- return S(n) ? n.reduce((e, r) => e == null ? void 0 : e[r], t) : t == null ? void 0 : t[n];
1
+ import { useInjectForm as V } from "../context.mjs";
2
+ import { ref as N, watchEffect as A, unref as l, watch as M } from "vue";
3
+ import { isArray as R } from "lodash-unified";
4
+ import { INTERNAL_FORM_INSTANCE_MARK as y } from "../constant.mjs";
5
+ function w(t, e) {
6
+ return R(e) ? e.reduce((n, u) => n == null ? void 0 : n[u], t) : t == null ? void 0 : t[e];
7
7
  }
8
- function R(t) {
8
+ function I(t) {
9
9
  try {
10
10
  return JSON.stringify(t);
11
11
  } catch {
12
12
  return Math.random();
13
13
  }
14
14
  }
15
- const _ = (t, n) => {
16
- const { internalInstance: e } = I(), r = h();
17
- let a = "", c = !0;
18
- return N((f) => {
19
- var i;
20
- const u = ((i = n == null ? void 0 : n.value) == null ? void 0 : i.getInternalInstance(A)) || e;
21
- if (!u) {
22
- c = !1;
15
+ const F = (t, e) => {
16
+ const { internalInstance: n, model: u } = V(), i = N();
17
+ let a = "", o = !0;
18
+ return A((s) => {
19
+ var f;
20
+ const r = ((f = e == null ? void 0 : e.value) == null ? void 0 : f.getInternalInstance(y)) || n;
21
+ if (!r) {
22
+ o = !1;
23
23
  return;
24
24
  }
25
- const l = u.registerWatch((g) => {
26
- const s = M(g, t), o = R(s);
27
- o !== a && (r.value = s, a = o);
28
- }, c);
29
- f(l);
30
- }), r;
25
+ const c = r.registerWatch((S) => {
26
+ const g = w(S, l(t)), h = I(g);
27
+ h !== a && (i.value = g, a = h);
28
+ }, o);
29
+ s(c);
30
+ }), M(
31
+ () => l(t),
32
+ (s) => {
33
+ const r = w(l(u), s), c = I(r);
34
+ c !== a && (i.value = r, a = c);
35
+ }
36
+ ), i;
31
37
  };
32
38
  export {
33
- _ as default
39
+ F as default
34
40
  };
@@ -15,7 +15,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
15
15
  autoLink: boolean;
16
16
  required: undefined;
17
17
  validateFirst: undefined;
18
- disabled: boolean;
18
+ disabled: undefined;
19
19
  field: () => {};
20
20
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemCheckboxProps>, {
21
21
  hasFeedback: boolean;
@@ -23,7 +23,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
23
23
  autoLink: boolean;
24
24
  required: undefined;
25
25
  validateFirst: undefined;
26
- disabled: boolean;
26
+ disabled: undefined;
27
27
  field: () => {};
28
28
  }>>>, {
29
29
  disabled: boolean;
@@ -1,9 +1,9 @@
1
- import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as x, renderSlot as y } from "vue";
1
+ import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as v, renderSlot as x } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { omit as s } from "lodash-unified";
5
- import g from "../../item/index.vue.mjs";
6
- import h from "../../../ap-field/checkbox/index.vue.mjs";
4
+ import { omit as i } from "lodash-unified";
5
+ import y from "../../item/index.vue.mjs";
6
+ import g from "../../../ap-field/checkbox/index.vue.mjs";
7
7
  const w = /* @__PURE__ */ f({
8
8
  name: "ApFormItemCheckbox",
9
9
  __name: "index",
@@ -47,20 +47,20 @@ const w = /* @__PURE__ */ f({
47
47
  _signal: {},
48
48
  transform: {},
49
49
  field: { default: () => ({}) },
50
- disabled: { type: Boolean, default: !1 }
50
+ disabled: { type: Boolean, default: void 0 }
51
51
  },
52
- setup(i) {
53
- const d = i, n = m();
54
- return (e, v) => (u(), c(g, a(t(l(s)(d, ["field", "disabled"]))), b({
52
+ setup(d) {
53
+ const s = d, n = m();
54
+ return (e, h) => (u(), c(y, a(t(o(i)(s, ["field", "disabled"]))), b({
55
55
  default: r(() => [
56
- B(l(h), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
56
+ B(o(g), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
57
57
  ]),
58
58
  _: 2
59
59
  }, [
60
- x(l(s)(n, "default"), (C, o) => ({
61
- name: o,
60
+ v(o(i)(n, "default"), (C, l) => ({
61
+ name: l,
62
62
  fn: r((p) => [
63
- y(e.$slots, o, a(t(p || {})))
63
+ x(e.$slots, l, a(t(p || {})))
64
64
  ])
65
65
  }))
66
66
  ]), 1040));
@@ -38,7 +38,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
38
38
  autoLink: boolean;
39
39
  required: undefined;
40
40
  validateFirst: undefined;
41
- disabled: boolean;
41
+ disabled: undefined;
42
42
  field: () => {};
43
43
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemDateProps>, {
44
44
  hasFeedback: boolean;
@@ -46,7 +46,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
46
46
  autoLink: boolean;
47
47
  required: undefined;
48
48
  validateFirst: undefined;
49
- disabled: boolean;
49
+ disabled: undefined;
50
50
  field: () => {};
51
51
  }>>>, {
52
52
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as i, withCtx as n, createVNode as g, renderList as p, renderSlot as f } from "vue";
1
+ import { defineComponent as h, useSlots as B, computed as v, openBlock as y, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/date/index.vue2.mjs";
4
4
  import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
@@ -50,10 +50,10 @@ const L = /* @__PURE__ */ h({
50
50
  transform: {},
51
51
  field: { default: () => ({}) },
52
52
  placeholder: {},
53
- disabled: { type: Boolean, default: !1 }
53
+ disabled: { type: Boolean, default: void 0 }
54
54
  },
55
55
  setup(c) {
56
- const e = c, s = B(), b = y(() => {
56
+ const e = c, n = B(), b = v(() => {
57
57
  var o;
58
58
  return {
59
59
  placeholder: e.placeholder,
@@ -62,12 +62,12 @@ const L = /* @__PURE__ */ h({
62
62
  bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
63
63
  };
64
64
  });
65
- return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), i({
66
- default: n(() => [
67
- g(C, r(t(b.value)), i({ _: 2 }, [
68
- p(a(m)(s, a(u)), (_, l) => ({
65
+ return (o, P) => (y(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), s({
66
+ default: i(() => [
67
+ g(C, r(t(b.value)), s({ _: 2 }, [
68
+ p(a(m)(n, a(u)), (_, l) => ({
69
69
  name: l,
70
- fn: n((d) => [
70
+ fn: i((d) => [
71
71
  f(o.$slots, l, r(t(d || {})))
72
72
  ])
73
73
  }))
@@ -75,9 +75,9 @@ const L = /* @__PURE__ */ h({
75
75
  ]),
76
76
  _: 2
77
77
  }, [
78
- p(a(S)(s, a(u)), (_, l) => ({
78
+ p(a(S)(n, a(u)), (_, l) => ({
79
79
  name: l,
80
- fn: n((d) => [
80
+ fn: i((d) => [
81
81
  f(o.$slots, l, r(t(d || {})))
82
82
  ])
83
83
  }))
@@ -36,7 +36,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
36
36
  autoLink: boolean;
37
37
  required: undefined;
38
38
  validateFirst: undefined;
39
- disabled: boolean;
39
+ disabled: undefined;
40
40
  field: () => {};
41
41
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemDateRangeProps>, {
42
42
  hasFeedback: boolean;
@@ -44,7 +44,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
44
44
  autoLink: boolean;
45
45
  required: undefined;
46
46
  validateFirst: undefined;
47
- disabled: boolean;
47
+ disabled: undefined;
48
48
  field: () => {};
49
49
  }>>>, {
50
50
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as s, createVNode as F, renderList as f, renderSlot as m } from "vue";
1
+ import { defineComponent as B, useSlots as g, computed as v, openBlock as y, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as i, createVNode as F, renderList as f, renderSlot as m } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
@@ -50,10 +50,10 @@ const I = /* @__PURE__ */ B({
50
50
  transform: {},
51
51
  field: { default: () => ({}) },
52
52
  placeholder: {},
53
- disabled: { type: Boolean, default: !1 }
53
+ disabled: { type: Boolean, default: void 0 }
54
54
  },
55
55
  setup(b) {
56
- const e = b, i = g(), _ = y(() => {
56
+ const e = b, s = g(), _ = v(() => {
57
57
  var l, d;
58
58
  return {
59
59
  placeholder: e.placeholder,
@@ -62,12 +62,12 @@ const I = /* @__PURE__ */ B({
62
62
  bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
63
63
  };
64
64
  });
65
- return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
66
- default: s(() => [
65
+ return (l, d) => (y(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
66
+ default: i(() => [
67
67
  F(o(P), r(t(_.value)), p({ _: 2 }, [
68
- f(o(u)(i, o(c)), (h, a) => ({
68
+ f(o(u)(s, o(c)), (h, a) => ({
69
69
  name: a,
70
- fn: s((n) => [
70
+ fn: i((n) => [
71
71
  m(l.$slots, a, r(t(n || {})))
72
72
  ])
73
73
  }))
@@ -75,9 +75,9 @@ const I = /* @__PURE__ */ B({
75
75
  ]),
76
76
  _: 2
77
77
  }, [
78
- f(o(k)(i, o(c)), (h, a) => ({
78
+ f(o(k)(s, o(c)), (h, a) => ({
79
79
  name: a,
80
- fn: s((n) => [
80
+ fn: i((n) => [
81
81
  m(l.$slots, a, r(t(n || {})))
82
82
  ])
83
83
  }))
@@ -25,6 +25,7 @@ declare function __VLS_template(): {
25
25
  $: ComponentInternalInstance;
26
26
  $data: {};
27
27
  $props: Partial<{
28
+ disabled: boolean;
28
29
  bordered: boolean;
29
30
  keyboard: boolean;
30
31
  max: ValueType;
@@ -115,6 +116,7 @@ declare function __VLS_template(): {
115
116
  };
116
117
  disabled: {
117
118
  type: PropType<boolean>;
119
+ default: undefined;
118
120
  };
119
121
  bordered: {
120
122
  type: PropType<boolean>;
@@ -225,7 +227,7 @@ declare function __VLS_template(): {
225
227
  };
226
228
  }>> & {
227
229
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
228
- }, "bordered" | "keyboard" | "max" | "min" | "step" | "controls" | "emptyText" | "thousands">;
230
+ }, "disabled" | "bordered" | "keyboard" | "max" | "min" | "step" | "controls" | "emptyText" | "thousands">;
229
231
  $attrs: {
230
232
  [x: string]: unknown;
231
233
  };
@@ -272,6 +274,7 @@ declare function __VLS_template(): {
272
274
  };
273
275
  disabled: {
274
276
  type: PropType<boolean>;
277
+ default: undefined;
275
278
  };
276
279
  bordered: {
277
280
  type: PropType<boolean>;
@@ -388,6 +391,7 @@ declare function __VLS_template(): {
388
391
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
389
392
  "update:value": (...args: any[]) => void;
390
393
  }, string, {
394
+ disabled: boolean;
391
395
  bordered: boolean;
392
396
  keyboard: boolean;
393
397
  max: ValueType;
@@ -449,6 +453,7 @@ declare function __VLS_template(): {
449
453
  };
450
454
  disabled: {
451
455
  type: PropType<boolean>;
456
+ default: undefined;
452
457
  };
453
458
  bordered: {
454
459
  type: PropType<boolean>;
@@ -589,7 +594,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
589
594
  autoLink: boolean;
590
595
  required: undefined;
591
596
  validateFirst: undefined;
592
- disabled: boolean;
597
+ disabled: undefined;
593
598
  field: () => {};
594
599
  }>, {
595
600
  focus: () => void;
@@ -600,7 +605,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
600
605
  autoLink: boolean;
601
606
  required: undefined;
602
607
  validateFirst: undefined;
603
- disabled: boolean;
608
+ disabled: undefined;
604
609
  field: () => {};
605
610
  }>>>, {
606
611
  disabled: boolean;
@@ -1,11 +1,11 @@
1
- import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as N, renderList as i, renderSlot as f } from "vue";
1
+ import { defineComponent as y, useSlots as B, ref as _, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as N, renderList as i, renderSlot as u } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/number/index.vue2.mjs";
4
- import { omit as u, pick as S } from "lodash-unified";
4
+ import { omit as f, pick as S } from "lodash-unified";
5
5
  import { apFormItemSlotNames as m } from "../../constant.mjs";
6
6
  import C from "../../item/index.vue.mjs";
7
7
  import F from "../../../ap-field/number/index.vue.mjs";
8
- const T = /* @__PURE__ */ B({
8
+ const T = /* @__PURE__ */ y({
9
9
  name: "ApFormItemNumber",
10
10
  __name: "index",
11
11
  props: {
@@ -50,10 +50,10 @@ const T = /* @__PURE__ */ B({
50
50
  transform: {},
51
51
  field: { default: () => ({}) },
52
52
  placeholder: {},
53
- disabled: { type: Boolean, default: !1 }
53
+ disabled: { type: Boolean, default: void 0 }
54
54
  },
55
55
  setup(c, { expose: b }) {
56
- const h = c, p = _(), a = v();
56
+ const h = c, p = B(), a = _();
57
57
  return b({
58
58
  focus: () => {
59
59
  var e;
@@ -63,7 +63,7 @@ const T = /* @__PURE__ */ B({
63
63
  var e;
64
64
  (e = a.value) == null || e.blur();
65
65
  }
66
- }), (e, R) => (g(), x(C, t(s(l(u)(h, ["field", "placeholder", "disabled"]))), d({
66
+ }), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
67
67
  default: n(() => [
68
68
  k(F, N({
69
69
  ref_key: "inputNumberRef",
@@ -71,20 +71,20 @@ const T = /* @__PURE__ */ B({
71
71
  placeholder: e.placeholder,
72
72
  disabled: e.disabled
73
73
  }, e.field), d({ _: 2 }, [
74
- i(l(u)(p, l(m)), (y, o) => ({
74
+ i(l(f)(p, l(m)), (v, o) => ({
75
75
  name: o,
76
76
  fn: n((r) => [
77
- f(e.$slots, o, t(s(r || {})))
77
+ u(e.$slots, o, t(s(r || {})))
78
78
  ])
79
79
  }))
80
80
  ]), 1040, ["placeholder", "disabled"])
81
81
  ]),
82
82
  _: 2
83
83
  }, [
84
- i(l(S)(p, l(m)), (y, o) => ({
84
+ i(l(S)(p, l(m)), (v, o) => ({
85
85
  name: o,
86
86
  fn: n((r) => [
87
- f(e.$slots, o, t(s(r || {})))
87
+ u(e.$slots, o, t(s(r || {})))
88
88
  ])
89
89
  }))
90
90
  ]), 1040));
@@ -35,6 +35,7 @@ declare function __VLS_template(): {
35
35
  };
36
36
  disabled: {
37
37
  type: PropType<boolean>;
38
+ default: undefined;
38
39
  };
39
40
  prefixCls: {
40
41
  type: PropType<string>;
@@ -97,6 +98,7 @@ declare function __VLS_template(): {
97
98
  };
98
99
  disabled: {
99
100
  type: PropType<boolean>;
101
+ default: undefined;
100
102
  };
101
103
  prefixCls: {
102
104
  type: PropType<string>;
@@ -131,6 +133,7 @@ declare function __VLS_template(): {
131
133
  }, {
132
134
  mode: FieldMode;
133
135
  vertical: boolean;
136
+ disabled: boolean;
134
137
  emptyText: string;
135
138
  }, true, {}, {}, {
136
139
  P: {};
@@ -165,6 +168,7 @@ declare function __VLS_template(): {
165
168
  };
166
169
  disabled: {
167
170
  type: PropType<boolean>;
171
+ default: undefined;
168
172
  };
169
173
  prefixCls: {
170
174
  type: PropType<string>;
@@ -202,6 +206,7 @@ declare function __VLS_template(): {
202
206
  }, {}, {}, {}, {
203
207
  mode: FieldMode;
204
208
  vertical: boolean;
209
+ disabled: boolean;
205
210
  emptyText: string;
206
211
  }> | null;
207
212
  };
@@ -214,7 +219,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
214
219
  autoLink: boolean;
215
220
  required: undefined;
216
221
  validateFirst: undefined;
217
- disabled: boolean;
222
+ disabled: undefined;
218
223
  field: () => {};
219
224
  }>, {
220
225
  focus: () => void;
@@ -225,7 +230,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
225
230
  autoLink: boolean;
226
231
  required: undefined;
227
232
  validateFirst: undefined;
228
- disabled: boolean;
233
+ disabled: undefined;
229
234
  field: () => {};
230
235
  }>>>, {
231
236
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, useSlots as m, ref as c, openBlock as b, createBlock as _, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as v, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
1
+ import { defineComponent as u, useSlots as m, ref as c, openBlock as b, createBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { omit as h } from "lodash-unified";
@@ -47,11 +47,11 @@ const q = /* @__PURE__ */ u({
47
47
  _signal: {},
48
48
  transform: {},
49
49
  field: { default: () => ({}) },
50
- disabled: { type: Boolean, default: !1 }
50
+ disabled: { type: Boolean, default: void 0 }
51
51
  },
52
- setup(i, { expose: n }) {
53
- const d = i, p = m(), o = c();
54
- return n({
52
+ setup(i, { expose: d }) {
53
+ const n = i, p = m(), o = c();
54
+ return d({
55
55
  focus: () => {
56
56
  var e;
57
57
  (e = o.value) == null || e.focus();
@@ -60,7 +60,7 @@ const q = /* @__PURE__ */ u({
60
60
  var e;
61
61
  (e = o.value) == null || e.blur();
62
62
  }
63
- }), (e, P) => (b(), _(k, a(t(r(h)(d, ["field", "disabled"]))), v({
63
+ }), (e, P) => (b(), v(k, a(t(r(h)(n, ["field", "disabled"]))), _({
64
64
  default: s(() => [
65
65
  y(r(C), B({
66
66
  ref_key: "radioRef",
@@ -40,7 +40,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
40
40
  autoLink: boolean;
41
41
  required: undefined;
42
42
  validateFirst: undefined;
43
- disabled: boolean;
43
+ disabled: undefined;
44
44
  field: () => {};
45
45
  }>, {
46
46
  focus: () => void;
@@ -52,7 +52,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
52
52
  autoLink: boolean;
53
53
  required: undefined;
54
54
  validateFirst: undefined;
55
- disabled: boolean;
55
+ disabled: undefined;
56
56
  field: () => {};
57
57
  }>>>, {
58
58
  disabled: boolean;
@@ -50,34 +50,34 @@ const D = /* @__PURE__ */ x({
50
50
  transform: {},
51
51
  field: { default: () => ({}) },
52
52
  placeholder: {},
53
- disabled: { type: Boolean, default: !1 }
53
+ disabled: { type: Boolean, default: void 0 }
54
54
  },
55
- setup(_, { expose: v }) {
56
- const o = _, s = y();
57
- v({
55
+ setup(v, { expose: _ }) {
56
+ const o = v, d = y();
57
+ _({
58
58
  focus: () => {
59
59
  var e;
60
- (e = s.value) == null || e.focus();
60
+ (e = d.value) == null || e.focus();
61
61
  },
62
62
  blur: () => {
63
63
  var e;
64
- (e = s.value) == null || e.blur();
64
+ (e = d.value) == null || e.blur();
65
65
  },
66
66
  request: () => {
67
67
  var e;
68
- (e = s.value) == null || e.request();
68
+ (e = d.value) == null || e.request();
69
69
  }
70
70
  });
71
71
  const p = g(), h = S(() => {
72
- var e, d;
72
+ var e, s;
73
73
  return {
74
74
  placeholder: o.placeholder,
75
75
  disabled: o.disabled,
76
76
  ...o.field || {},
77
- bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (d = o.field) == null ? void 0 : d.bordered
77
+ bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (s = o.field) == null ? void 0 : s.bordered
78
78
  };
79
79
  });
80
- return (e, d) => (F(), k($, t(a(l(c)(o, ["field", "placeholder", "disabled"]))), u({
80
+ return (e, s) => (F(), k($, t(a(l(c)(o, ["field", "placeholder", "disabled"]))), u({
81
81
  default: i(() => [
82
82
  C(l(N), t(a(h.value)), u({ _: 2 }, [
83
83
  f(l(c)(p, l(b)), (B, r) => ({
@@ -22,7 +22,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
22
22
  autoLink: boolean;
23
23
  required: undefined;
24
24
  validateFirst: undefined;
25
- disabled: boolean;
25
+ disabled: undefined;
26
26
  valuePropName: string;
27
27
  field: () => {};
28
28
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemSwitchProps>, {
@@ -31,7 +31,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
31
31
  autoLink: boolean;
32
32
  required: undefined;
33
33
  validateFirst: undefined;
34
- disabled: boolean;
34
+ disabled: undefined;
35
35
  valuePropName: string;
36
36
  field: () => {};
37
37
  }>>>, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as n, withCtx as s, createVNode as g, mergeProps as v, renderList as d, renderSlot as p } from "vue";
1
+ import { defineComponent as b, useSlots as B, openBlock as h, createBlock as v, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as y, mergeProps as g, renderList as n, renderSlot as p } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/switch/index.vue2.mjs";
4
4
  import { omit as m, pick as x } from "lodash-unified";
@@ -48,16 +48,16 @@ const I = /* @__PURE__ */ b({
48
48
  _signal: {},
49
49
  transform: {},
50
50
  field: { default: () => ({}) },
51
- disabled: { type: Boolean, default: !1 }
51
+ disabled: { type: Boolean, default: void 0 }
52
52
  },
53
53
  setup(u) {
54
- const c = u, i = B();
55
- return (a, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), n({
56
- default: s(() => [
57
- g(k, v({ disabled: a.disabled }, a.field), n({ _: 2 }, [
58
- d(o(m)(i, o(f)), (_, e) => ({
54
+ const c = u, s = B();
55
+ return (a, C) => (h(), v(S, t(r(o(m)(c, ["field", "disabled"]))), d({
56
+ default: i(() => [
57
+ y(k, g({ disabled: a.disabled }, a.field), d({ _: 2 }, [
58
+ n(o(m)(s, o(f)), (_, e) => ({
59
59
  name: e,
60
- fn: s((l) => [
60
+ fn: i((l) => [
61
61
  p(a.$slots, e, t(r(l || {})))
62
62
  ])
63
63
  }))
@@ -65,9 +65,9 @@ const I = /* @__PURE__ */ b({
65
65
  ]),
66
66
  _: 2
67
67
  }, [
68
- d(o(x)(i, o(f)), (_, e) => ({
68
+ n(o(x)(s, o(f)), (_, e) => ({
69
69
  name: e,
70
- fn: s((l) => [
70
+ fn: i((l) => [
71
71
  p(a.$slots, e, t(r(l || {})))
72
72
  ])
73
73
  }))