@aplus-frontend/ui 0.2.23 → 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 (103) hide show
  1. package/es/src/ap-field/checkbox/index.vue.d.ts +3 -0
  2. package/es/src/ap-field/checkbox/index.vue.mjs +6 -6
  3. package/es/src/ap-field/number/index.vue.d.ts +3 -0
  4. package/es/src/ap-field/number/index.vue.mjs +1 -1
  5. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  6. package/es/src/ap-field/radio/index.vue.mjs +8 -8
  7. package/es/src/ap-field/rate/index.vue.d.ts +2 -2
  8. package/es/src/ap-field/rate/index.vue.mjs +3 -3
  9. package/es/src/ap-field/slider/index.vue.d.ts +3 -0
  10. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  11. package/es/src/ap-field/switch/index.vue.d.ts +3 -0
  12. package/es/src/ap-field/switch/index.vue.mjs +2 -1
  13. package/es/src/ap-field/text/index.vue.d.ts +3 -0
  14. package/es/src/ap-field/text/index.vue2.mjs +9 -8
  15. package/es/src/ap-field/text/password.vue.d.ts +3 -0
  16. package/es/src/ap-field/text/password.vue.mjs +8 -7
  17. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  18. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  19. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  20. package/es/src/ap-form/hooks/use-watch.mjs +28 -22
  21. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  22. package/es/src/ap-form/items/checkbox/index.vue.mjs +12 -12
  23. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  24. package/es/src/ap-form/items/date/index.vue.mjs +10 -10
  25. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  26. package/es/src/ap-form/items/date-range/index.vue.mjs +9 -9
  27. package/es/src/ap-form/items/number/index.vue.d.ts +8 -3
  28. package/es/src/ap-form/items/number/index.vue.mjs +10 -10
  29. package/es/src/ap-form/items/radio/index.vue.d.ts +7 -2
  30. package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
  31. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/select/index.vue.mjs +10 -10
  33. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  34. package/es/src/ap-form/items/switch/index.vue.mjs +10 -10
  35. package/es/src/ap-form/items/text/index.vue.d.ts +8 -3
  36. package/es/src/ap-form/items/text/index.vue2.mjs +15 -15
  37. package/es/src/ap-form/items/text/password.vue.d.ts +8 -3
  38. package/es/src/ap-form/items/text/password.vue.mjs +10 -10
  39. package/es/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  40. package/es/src/ap-form/items/text-area/index.vue.mjs +11 -11
  41. package/es/src/ap-table/ap-table.vue2.mjs +30 -33
  42. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +21 -21
  43. package/es/src/ap-table/constants.d.ts +77 -40
  44. package/es/src/ap-table/utils.d.ts +40 -40
  45. package/es/src/ap-upload/apUpload.vue.d.ts +3 -0
  46. package/es/src/ap-upload/apUpload.vue.mjs +7 -6
  47. package/es/src/design-token/index.mjs +3 -1
  48. package/es/src/theme/antd-global-overwrite/admin/form.css +0 -3
  49. package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
  50. package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  51. package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  52. package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -0
  53. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  54. package/lib/src/ap-field/number/index.vue.d.ts +3 -0
  55. package/lib/src/ap-field/number/index.vue.js +1 -1
  56. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  57. package/lib/src/ap-field/radio/index.vue.js +1 -1
  58. package/lib/src/ap-field/rate/index.vue.d.ts +2 -2
  59. package/lib/src/ap-field/rate/index.vue.js +1 -1
  60. package/lib/src/ap-field/slider/index.vue.d.ts +3 -0
  61. package/lib/src/ap-field/slider/index.vue.js +1 -1
  62. package/lib/src/ap-field/switch/index.vue.d.ts +3 -0
  63. package/lib/src/ap-field/switch/index.vue.js +1 -1
  64. package/lib/src/ap-field/text/index.vue.d.ts +3 -0
  65. package/lib/src/ap-field/text/index.vue2.js +1 -1
  66. package/lib/src/ap-field/text/password.vue.d.ts +3 -0
  67. package/lib/src/ap-field/text/password.vue.js +1 -1
  68. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  69. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  70. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  71. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  72. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  74. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  76. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  77. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  78. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -3
  79. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  80. package/lib/src/ap-form/items/radio/index.vue.d.ts +7 -2
  81. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  82. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  83. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  84. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  85. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  86. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -3
  87. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  88. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -3
  89. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  90. package/lib/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  91. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  92. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  93. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  94. package/lib/src/ap-table/constants.d.ts +77 -40
  95. package/lib/src/ap-table/utils.d.ts +40 -40
  96. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -0
  97. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  98. package/lib/src/design-token/index.js +1 -1
  99. package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -3
  100. package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
  101. package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  102. package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  103. package/package.json +2 -2
@@ -6,16 +6,19 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
6
6
  emptyText: string;
7
7
  mode: string;
8
8
  options: () => never[];
9
+ disabled: undefined;
9
10
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
11
  "update:value": (...args: any[]) => void;
11
12
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldCheckboxProps>, {
12
13
  emptyText: string;
13
14
  mode: string;
14
15
  options: () => never[];
16
+ disabled: undefined;
15
17
  }>>> & {
16
18
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
17
19
  }, {
18
20
  mode: FieldMode;
21
+ disabled: boolean;
19
22
  options: (string | number | CheckboxOptionType)[];
20
23
  emptyText: string;
21
24
  }, {}>;
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as c, createBlock as d, mergeProps as V } from "vue";
1
+ import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as V } from "vue";
2
2
  import { isFunction as B, isNil as O, omit as q } from "lodash-unified";
3
3
  import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
4
4
  import "../../hooks/index.mjs";
@@ -22,7 +22,7 @@ const I = /* @__PURE__ */ h({
22
22
  name: {},
23
23
  prefixCls: {},
24
24
  options: { default: () => [] },
25
- disabled: { type: Boolean },
25
+ disabled: { type: Boolean, default: void 0 },
26
26
  id: {},
27
27
  emptyText: { default: "--" },
28
28
  request: {},
@@ -47,15 +47,15 @@ const I = /* @__PURE__ */ h({
47
47
  var u;
48
48
  return a.mode === "read" ? (o(), l(n, { key: 0 }, [
49
49
  e(O)(e(r)) ? (o(), l(n, { key: 0 }, [
50
- m(c(t.emptyText), 1)
50
+ m(d(t.emptyText), 1)
51
51
  ], 64)) : (o(), l(n, { key: 1 }, [
52
- m(c(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
52
+ m(d(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
53
53
  ], 64))
54
54
  ], 64)) : (o(), l(n, { key: 1 }, [
55
- i.value ? (o(), d(e(T), {
55
+ i.value ? (o(), c(e(T), {
56
56
  key: 0,
57
57
  size: "small"
58
- })) : (o(), d(e(U), V({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
58
+ })) : (o(), c(e(U), V({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
59
59
  options: e(p),
60
60
  value: e(r),
61
61
  "onUpdate:value": e(g),
@@ -472,6 +472,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
472
472
  max: number;
473
473
  min: number;
474
474
  step: number;
475
+ disabled: undefined;
475
476
  }>, {
476
477
  focus: typeof focus;
477
478
  blur: typeof blur;
@@ -486,9 +487,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
486
487
  max: number;
487
488
  min: number;
488
489
  step: number;
490
+ disabled: undefined;
489
491
  }>>> & {
490
492
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
491
493
  }, {
494
+ disabled: boolean;
492
495
  bordered: boolean;
493
496
  keyboard: boolean;
494
497
  max: ValueType;
@@ -38,7 +38,7 @@ const te = /* @__PURE__ */ x({
38
38
  tabindex: {},
39
39
  controls: { type: Boolean, default: !0 },
40
40
  readonly: { type: Boolean },
41
- disabled: { type: Boolean },
41
+ disabled: { type: Boolean, default: void 0 },
42
42
  autofocus: { type: Boolean },
43
43
  keyboard: { type: Boolean, default: !0 },
44
44
  parser: {},
@@ -7,6 +7,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
7
7
  emptyText: string;
8
8
  mode: string;
9
9
  vertical: boolean;
10
+ disabled: undefined;
10
11
  }>, {
11
12
  focus: typeof focus;
12
13
  blur: typeof blur;
@@ -16,11 +17,13 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
16
17
  emptyText: string;
17
18
  mode: string;
18
19
  vertical: boolean;
20
+ disabled: undefined;
19
21
  }>>> & {
20
22
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
21
23
  }, {
22
24
  mode: FieldMode;
23
25
  vertical: boolean;
26
+ disabled: boolean;
24
27
  emptyText: string;
25
28
  }, {}>;
26
29
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as c, createTextVNode as R, toDisplayString as U, createBlock as d, mergeProps as h } from "vue";
1
+ import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as d, createTextVNode as R, toDisplayString as U, createBlock as f, mergeProps as h } from "vue";
2
2
  import { Spin as G, RadioGroup as N } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as S, omit as z } from "lodash-unified";
@@ -18,7 +18,7 @@ const W = /* @__PURE__ */ q({
18
18
  value: {},
19
19
  size: {},
20
20
  options: {},
21
- disabled: { type: Boolean },
21
+ disabled: { type: Boolean, default: void 0 },
22
22
  name: {},
23
23
  buttonStyle: {},
24
24
  id: {},
@@ -30,8 +30,8 @@ const W = /* @__PURE__ */ q({
30
30
  vertical: { type: Boolean, default: !1 }
31
31
  },
32
32
  emits: ["update:value"],
33
- setup(f, { expose: v, emit: y }) {
34
- const t = f, g = y, n = p(), { options: u, updateOptions: k } = D(t), { value: i, updateValue: x } = E(t, g), { m: b } = L("field-radio"), r = p(!1);
33
+ setup(c, { expose: v, emit: y }) {
34
+ const t = c, g = y, n = p(), { options: u, updateOptions: k } = D(t), { value: i, updateValue: x } = E(t, g), { m: b } = L("field-radio"), r = p(!1);
35
35
  C(() => {
36
36
  var e;
37
37
  t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => k(a)).finally(() => {
@@ -59,13 +59,13 @@ const W = /* @__PURE__ */ q({
59
59
  return v({
60
60
  focus: B,
61
61
  blur: V
62
- }), (e, a) => e.mode === "read" ? (l(), m(c, { key: 0 }, [
62
+ }), (e, a) => e.mode === "read" ? (l(), m(d, { key: 0 }, [
63
63
  R(U(T.value), 1)
64
- ], 64)) : (l(), m(c, { key: 1 }, [
65
- r.value ? (l(), d(o(G), {
64
+ ], 64)) : (l(), m(d, { key: 1 }, [
65
+ r.value ? (l(), f(o(G), {
66
66
  key: 0,
67
67
  size: "small"
68
- })) : (l(), d(o(N), h(
68
+ })) : (l(), f(o(N), h(
69
69
  { key: 1 },
70
70
  o(z)(t, [
71
71
  "value",
@@ -136,7 +136,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
136
136
  autofocus: boolean;
137
137
  count: number;
138
138
  character: undefined;
139
- disabled: boolean;
139
+ disabled: undefined;
140
140
  }>, {
141
141
  focus: typeof focus;
142
142
  blur: typeof blur;
@@ -149,7 +149,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
149
149
  autofocus: boolean;
150
150
  count: number;
151
151
  character: undefined;
152
- disabled: boolean;
152
+ disabled: undefined;
153
153
  }>>> & {
154
154
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
155
155
  }, {
@@ -16,7 +16,7 @@ const D = /* @__PURE__ */ v({
16
16
  allowHalf: { type: Boolean, default: !1 },
17
17
  allowClear: { type: Boolean, default: !0 },
18
18
  tooltips: {},
19
- disabled: { type: Boolean, default: !1 },
19
+ disabled: { type: Boolean, default: void 0 },
20
20
  character: { default: void 0 },
21
21
  autofocus: { type: Boolean, default: !1 },
22
22
  tabindex: {},
@@ -32,7 +32,7 @@ const D = /* @__PURE__ */ v({
32
32
  },
33
33
  emits: ["update:value"],
34
34
  setup(r, { expose: u, emit: n }) {
35
- const a = r, l = b(), s = n, d = h(), { value: f, updateValue: c } = V(a, s), i = y(() => a.mode === "read" ? !0 : a.disabled);
35
+ const a = r, l = b(), d = n, s = h(), { value: f, updateValue: c } = V(a, d), i = y(() => a.mode === "read" ? !0 : a.disabled);
36
36
  function p() {
37
37
  var e, t;
38
38
  (t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
@@ -51,7 +51,7 @@ const D = /* @__PURE__ */ v({
51
51
  ref_key: "rateRef",
52
52
  ref: l
53
53
  }), x({ _: 2 }, [
54
- d.character ? {
54
+ s.character ? {
55
55
  name: "character",
56
56
  fn: g(() => [
57
57
  k(e.$slots, "character")
@@ -381,6 +381,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
381
381
  tooltipOpen: undefined;
382
382
  tooltipVisible: undefined;
383
383
  emptyText: string;
384
+ disabled: undefined;
384
385
  }>, {
385
386
  focus: typeof focus;
386
387
  blur: typeof blur;
@@ -394,9 +395,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
394
395
  tooltipOpen: undefined;
395
396
  tooltipVisible: undefined;
396
397
  emptyText: string;
398
+ disabled: undefined;
397
399
  }>>> & {
398
400
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
399
401
  }, {
402
+ disabled: boolean;
400
403
  max: number;
401
404
  min: number;
402
405
  step: number;
@@ -23,7 +23,7 @@ const I = /* @__PURE__ */ x({
23
23
  value: {},
24
24
  defaultValue: {},
25
25
  included: { type: Boolean, default: !0 },
26
- disabled: { type: Boolean },
26
+ disabled: { type: Boolean, default: void 0 },
27
27
  vertical: { type: Boolean },
28
28
  tipFormatter: {},
29
29
  tooltipOpen: { type: Boolean, default: void 0 },
@@ -41,8 +41,8 @@ const I = /* @__PURE__ */ x({
41
41
  emptyText: { default: "--" }
42
42
  },
43
43
  emits: ["update:value"],
44
- setup(p, { expose: s, emit: i }) {
45
- const d = g(), l = k(), a = p, f = i, { value: r, updateValue: m } = E(a, f), c = C(() => {
44
+ setup(i, { expose: p, emit: s }) {
45
+ const d = g(), l = k(), a = i, f = s, { value: r, updateValue: m } = E(a, f), c = C(() => {
46
46
  const e = o(r);
47
47
  return w(e) ? a.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
48
48
  });
@@ -54,7 +54,7 @@ const I = /* @__PURE__ */ x({
54
54
  var e, t;
55
55
  (t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
56
56
  }
57
- return s({
57
+ return p({
58
58
  focus: v,
59
59
  blur: y
60
60
  }), (e, t) => e.mode === "read" ? (u(), S(_, { key: 0 }, [
@@ -17,6 +17,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
17
17
  unCheckedValue: boolean;
18
18
  size: string;
19
19
  loading: undefined;
20
+ disabled: undefined;
20
21
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
22
  "update:checked": (...args: any[]) => void;
22
23
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldSwitchProps>, {
@@ -25,10 +26,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
25
26
  unCheckedValue: boolean;
26
27
  size: string;
27
28
  loading: undefined;
29
+ disabled: undefined;
28
30
  }>>> & {
29
31
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
30
32
  }, {
31
33
  size: "small" | "default";
34
+ disabled: boolean;
32
35
  loading: boolean;
33
36
  checkedValue: string | number | boolean;
34
37
  unCheckedValue: string | number | boolean;
@@ -17,7 +17,8 @@ const O = /* @__PURE__ */ z({
17
17
  default: "default"
18
18
  },
19
19
  disabled: {
20
- type: Boolean
20
+ type: Boolean,
21
+ default: void 0
21
22
  },
22
23
  checkedChildren: {},
23
24
  unCheckedChildren: {},
@@ -22,6 +22,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
22
22
  type: string;
23
23
  lazy: boolean;
24
24
  allowClear: boolean;
25
+ disabled: undefined;
25
26
  }>, {
26
27
  focus: (options?: InputFocusOptions) => void;
27
28
  blur: () => void;
@@ -37,11 +38,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
37
38
  type: string;
38
39
  lazy: boolean;
39
40
  allowClear: boolean;
41
+ disabled: undefined;
40
42
  }>>> & {
41
43
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
42
44
  }, {
43
45
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
44
46
  mode: FieldMode;
47
+ disabled: boolean;
45
48
  bordered: boolean;
46
49
  lazy: boolean;
47
50
  allowClear: boolean;
@@ -1,4 +1,4 @@
1
- import { isVNode as v, defineComponent as B, ref as g, useSlots as h, computed as b, createVNode as i, mergeProps as C, unref as u, Fragment as S, openBlock as _, createBlock as R, resolveDynamicComponent as T } from "vue";
1
+ import { isVNode as v, defineComponent as B, ref as g, useSlots as h, computed as b, createVNode as d, mergeProps as C, unref as u, Fragment as S, openBlock as _, createBlock as R, resolveDynamicComponent as T } from "vue";
2
2
  import { Input as V } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as j } from "lodash-unified";
@@ -63,7 +63,8 @@ const M = /* @__PURE__ */ B({
63
63
  inputElement: {},
64
64
  prefixCls: {},
65
65
  disabled: {
66
- type: Boolean
66
+ type: Boolean,
67
+ default: void 0
67
68
  },
68
69
  focused: {
69
70
  type: Boolean
@@ -88,11 +89,11 @@ const M = /* @__PURE__ */ B({
88
89
  },
89
90
  emits: ["update:value"],
90
91
  setup(l, {
91
- expose: c,
92
- emit: d
92
+ expose: i,
93
+ emit: c
93
94
  }) {
94
95
  const a = g(), t = h();
95
- c({
96
+ i({
96
97
  focus: (e) => {
97
98
  var o;
98
99
  (o = a.value) == null || o.focus(e);
@@ -114,20 +115,20 @@ const M = /* @__PURE__ */ B({
114
115
  return (e = a.value) == null ? void 0 : e.input;
115
116
  })
116
117
  });
117
- const f = d, n = l, {
118
+ const f = c, n = l, {
118
119
  value: r,
119
120
  updateValue: s
120
121
  } = w(n, f), m = F("Text", n);
121
122
  function y() {
122
123
  var e, o;
123
- return n.mode === "edit" ? i(V, C(j(n, ["mode", "emptyText", "value", "onUpdate:value"]), {
124
+ return n.mode === "edit" ? d(V, C(j(n, ["mode", "emptyText", "value", "onUpdate:value"]), {
124
125
  placeholder: u(m),
125
126
  value: u(r),
126
127
  "onUpdate:value": s,
127
128
  ref: a
128
129
  }), z(t) ? t : {
129
130
  default: () => [t]
130
- }) : i(S, null, [n.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), u(r) || n.emptyText, n.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
131
+ }) : d(S, null, [n.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), u(r) || n.emptyText, n.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
131
132
  }
132
133
  return (e, o) => (_(), R(T(y())));
133
134
  }
@@ -25,6 +25,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
25
25
  visibilityToggle: boolean;
26
26
  action: string;
27
27
  visible: undefined;
28
+ disabled: undefined;
28
29
  }>, {
29
30
  focus: () => void;
30
31
  blur: () => void;
@@ -41,6 +42,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
41
42
  visibilityToggle: boolean;
42
43
  action: string;
43
44
  visible: undefined;
45
+ disabled: undefined;
44
46
  }>>> & {
45
47
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
46
48
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -48,6 +50,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
48
50
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
49
51
  mode: FieldMode;
50
52
  visible: boolean;
53
+ disabled: boolean;
51
54
  bordered: boolean;
52
55
  lazy: boolean;
53
56
  allowClear: boolean;
@@ -4,7 +4,7 @@ import "../../hooks/index.mjs";
4
4
  import { omit as O } from "lodash-unified";
5
5
  import { EyeOutlined as j, EyeInvisibleOutlined as k } from "@ant-design/icons-vue";
6
6
  import { useDefaultPlaceholder as E } from "../hooks/use-default-placeholder.mjs";
7
- import { useControllableValue as d } from "../../hooks/useControllableValue.mjs";
7
+ import { useControllableValue as p } from "../../hooks/useControllableValue.mjs";
8
8
  function F(l) {
9
9
  return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !x(l);
10
10
  }
@@ -64,7 +64,8 @@ const G = /* @__PURE__ */ h({
64
64
  inputElement: {},
65
65
  prefixCls: {},
66
66
  disabled: {
67
- type: Boolean
67
+ type: Boolean,
68
+ default: void 0
68
69
  },
69
70
  focused: {
70
71
  type: Boolean
@@ -119,10 +120,10 @@ const G = /* @__PURE__ */ h({
119
120
  const s = f, t = l, {
120
121
  value: m,
121
122
  updateValue: y
122
- } = d(t, s), v = E("TextPassword", t), {
123
+ } = p(t, s), v = E("TextPassword", t), {
123
124
  value: b,
124
125
  updateValue: r
125
- } = d(t, s, {
126
+ } = p(t, s, {
126
127
  valuePropName: "visible"
127
128
  });
128
129
  function B() {
@@ -138,15 +139,15 @@ const G = /* @__PURE__ */ h({
138
139
  }), F(u) ? u : {
139
140
  default: () => [u]
140
141
  });
141
- let p = o(w, null, [t.emptyText]);
142
- return e && (p = o(U, null, {
142
+ let d = o(w, null, [t.emptyText]);
143
+ return e && (d = o(U, null, {
143
144
  default: () => [o("span", null, [n ? e : "********"]), o("span", {
144
145
  style: {
145
146
  cursor: "pointer"
146
147
  },
147
148
  onClick: () => r(!n)
148
149
  }, [n ? o(j, null, null) : o(k, null, null)])]
149
- })), p;
150
+ })), d;
150
151
  }
151
152
  return (e, n) => (V(), _(S(B())));
152
153
  }
@@ -9,6 +9,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
9
9
  type: string;
10
10
  lazy: boolean;
11
11
  allowClear: boolean;
12
+ disabled: undefined;
12
13
  }>, {
13
14
  focus: (options?: InputFocusOptions) => void;
14
15
  blur: () => void;
@@ -22,11 +23,13 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
22
23
  type: string;
23
24
  lazy: boolean;
24
25
  allowClear: boolean;
26
+ disabled: undefined;
25
27
  }>>> & {
26
28
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
27
29
  }, {
28
30
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
29
31
  mode: FieldMode;
32
+ disabled: boolean;
30
33
  bordered: boolean;
31
34
  lazy: boolean;
32
35
  allowClear: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, ref as y, computed as x, openBlock as r, createElementBlock as B, normalizeClass as v, unref as o, toDisplayString as h, createBlock as b, mergeProps as C } from "vue";
1
+ import { defineComponent as f, ref as y, computed as v, openBlock as r, createElementBlock as x, normalizeClass as B, unref as o, toDisplayString as h, createBlock as b, mergeProps as C } from "vue";
2
2
  import { isNil as z, omit as A } from "lodash-unified";
3
3
  import "../../hooks/index.mjs";
4
4
  import "../../config-provider/index.mjs";
@@ -31,7 +31,7 @@ const V = /* @__PURE__ */ f({
31
31
  onKeyup: {},
32
32
  focused: { type: Boolean },
33
33
  hidden: { type: Boolean },
34
- disabled: { type: Boolean },
34
+ disabled: { type: Boolean, default: void 0 },
35
35
  prefixCls: {},
36
36
  id: {},
37
37
  autofocus: { type: Boolean },
@@ -67,13 +67,13 @@ const V = /* @__PURE__ */ f({
67
67
  var e;
68
68
  (e = t.value) == null || e.blur();
69
69
  },
70
- resizableTextArea: x(() => {
70
+ resizableTextArea: v(() => {
71
71
  var e;
72
72
  return (e = t.value) == null ? void 0 : e.resizableTextArea;
73
73
  })
74
- }), (e, n) => e.mode === "read" ? (r(), B("span", {
74
+ }), (e, n) => e.mode === "read" ? (r(), x("span", {
75
75
  key: 0,
76
- class: v(o(m)())
76
+ class: B(o(m)())
77
77
  }, h(o(z)(o(a)) || o(a) === "" ? e.emptyText : o(a)), 3)) : (r(), b(o(g).TextArea, C({ key: 1 }, o(A)(l, ["onUpdate:value", "value"]), {
78
78
  placeholder: o(c),
79
79
  value: o(a),
@@ -2,5 +2,5 @@ import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
2
2
  import { ApFormExpose } from '../interface';
3
3
  import { Ref } from 'vue';
4
4
  type ApFormIns<T> = ApFormExpose<T>;
5
- declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath, form?: Ref<ApFormIns<StoreType> | undefined>) => Ref<ValueType | undefined>;
5
+ declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath | Ref<NamePath>, form?: Ref<ApFormIns<StoreType> | undefined>) => Ref<ValueType | undefined>;
6
6
  export default useWatch;
@@ -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;