@aplus-frontend/ui 0.0.18 → 0.0.20

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 (115) hide show
  1. package/es/index.mjs +26 -23
  2. package/es/src/ap-field/date/index.vue.d.ts +3 -1
  3. package/es/src/ap-field/date-range/index.vue.d.ts +3 -3
  4. package/es/src/ap-field/date-range/index.vue.mjs +1 -1
  5. package/es/src/ap-field/interface.d.ts +1 -1
  6. package/es/src/ap-form/ap-form-item.vue.d.ts +2 -8
  7. package/es/src/ap-form/ap-form-item.vue.mjs +61 -57
  8. package/es/src/ap-form/constant.d.ts +4 -0
  9. package/es/src/ap-form/constant.mjs +4 -3
  10. package/es/src/ap-form/interface.d.ts +10 -0
  11. package/es/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
  12. package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -13
  13. package/es/src/ap-form/items/date/index.vue.d.ts +26 -14
  14. package/es/src/ap-form/items/date/index.vue.mjs +26 -18
  15. package/es/src/ap-form/items/date-range/index.vue.d.ts +24 -13
  16. package/es/src/ap-form/items/date-range/index.vue.mjs +27 -19
  17. package/es/src/ap-form/items/number/index.vue.d.ts +16 -9
  18. package/es/src/ap-form/items/number/index.vue.mjs +30 -22
  19. package/es/src/ap-form/items/radio/index.vue.d.ts +9 -2
  20. package/es/src/ap-form/items/radio/index.vue.mjs +21 -14
  21. package/es/src/ap-form/items/select/index.vue.d.ts +28 -15
  22. package/es/src/ap-form/items/select/index.vue.mjs +30 -22
  23. package/es/src/ap-form/items/switch/index.vue.d.ts +10 -6
  24. package/es/src/ap-form/items/switch/index.vue.mjs +25 -17
  25. package/es/src/ap-form/items/text/index.vue.d.ts +14 -8
  26. package/es/src/ap-form/items/text/index.vue2.mjs +32 -24
  27. package/es/src/ap-form/items/text/password.vue.d.ts +16 -9
  28. package/es/src/ap-form/items/text/password.vue.mjs +29 -21
  29. package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -2
  30. package/es/src/ap-form/items/text-area/index.vue.mjs +24 -17
  31. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  32. package/es/src/ap-form/style/ap-form-item.css +11 -0
  33. package/es/src/ap-modal/index.d.ts +9 -0
  34. package/es/src/ap-modal/index.mjs +10 -0
  35. package/es/src/ap-modal/type.d.ts +13 -0
  36. package/es/src/ap-modal/type.mjs +1 -0
  37. package/es/src/ap-modal/utils/createModal.d.ts +3 -0
  38. package/es/src/ap-modal/utils/createModal.mjs +74 -0
  39. package/es/src/ap-modal/utils/index.d.ts +1 -0
  40. package/es/src/ap-modal/utils/index.mjs +4 -0
  41. package/es/src/ap-table/ap-table.vue.mjs +135 -124
  42. package/es/src/ap-table/constants.d.ts +2716 -1475
  43. package/es/src/ap-table/interface.d.ts +4 -0
  44. package/es/src/ap-table/style/ap-table.css +1 -0
  45. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  46. package/es/src/business/expandAlert/ApExpandAlert.vue.mjs +4 -0
  47. package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +113 -0
  48. package/es/src/business/expandAlert/interface.d.ts +26 -0
  49. package/es/src/business/expandAlert/style.css +42 -0
  50. package/es/src/business/index.d.ts +161 -1
  51. package/es/src/business/index.mjs +7 -4
  52. package/es/src/index.d.ts +1 -0
  53. package/es/src/index.mjs +194 -191
  54. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  55. package/es/src/theme/ap-form/ap-form-item.css +11 -0
  56. package/es/src/theme/ap-table/ap-table.css +1 -0
  57. package/es/src/type.d.ts +3 -1
  58. package/lib/index.js +1 -1
  59. package/lib/src/ap-field/date/index.vue.d.ts +3 -1
  60. package/lib/src/ap-field/date-range/index.vue.d.ts +3 -3
  61. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  62. package/lib/src/ap-field/interface.d.ts +1 -1
  63. package/lib/src/ap-form/ap-form-item.vue.d.ts +2 -8
  64. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  65. package/lib/src/ap-form/constant.d.ts +4 -0
  66. package/lib/src/ap-form/constant.js +1 -1
  67. package/lib/src/ap-form/interface.d.ts +10 -0
  68. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
  69. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  70. package/lib/src/ap-form/items/date/index.vue.d.ts +26 -14
  71. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  72. package/lib/src/ap-form/items/date-range/index.vue.d.ts +24 -13
  73. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  74. package/lib/src/ap-form/items/number/index.vue.d.ts +16 -9
  75. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  76. package/lib/src/ap-form/items/radio/index.vue.d.ts +9 -2
  77. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  78. package/lib/src/ap-form/items/select/index.vue.d.ts +28 -15
  79. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  80. package/lib/src/ap-form/items/switch/index.vue.d.ts +10 -6
  81. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  82. package/lib/src/ap-form/items/text/index.vue.d.ts +14 -8
  83. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  84. package/lib/src/ap-form/items/text/password.vue.d.ts +16 -9
  85. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  86. package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -2
  87. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  88. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/style/ap-form-item.css +11 -0
  90. package/lib/src/ap-modal/index.d.ts +9 -0
  91. package/lib/src/ap-modal/index.js +1 -0
  92. package/lib/src/ap-modal/type.d.ts +13 -0
  93. package/lib/src/ap-modal/type.js +1 -0
  94. package/lib/src/ap-modal/utils/createModal.d.ts +3 -0
  95. package/lib/src/ap-modal/utils/createModal.js +1 -0
  96. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  97. package/lib/src/ap-modal/utils/index.js +1 -0
  98. package/lib/src/ap-table/ap-table.vue.js +1 -1
  99. package/lib/src/ap-table/constants.d.ts +2716 -1475
  100. package/lib/src/ap-table/interface.d.ts +4 -0
  101. package/lib/src/ap-table/style/ap-table.css +1 -0
  102. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  103. package/lib/src/business/expandAlert/ApExpandAlert.vue.js +1 -0
  104. package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -0
  105. package/lib/src/business/expandAlert/interface.d.ts +26 -0
  106. package/lib/src/business/expandAlert/style.css +42 -0
  107. package/lib/src/business/index.d.ts +161 -1
  108. package/lib/src/business/index.js +1 -1
  109. package/lib/src/index.d.ts +1 -0
  110. package/lib/src/index.js +1 -1
  111. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  112. package/lib/src/theme/ap-form/ap-form-item.css +11 -0
  113. package/lib/src/theme/ap-table/ap-table.css +1 -0
  114. package/lib/src/type.d.ts +3 -1
  115. package/package.json +2 -2
@@ -1,10 +1,11 @@
1
- import { defineComponent as n, computed as s, openBlock as f, createBlock as m, normalizeProps as l, guardReactiveProps as a, unref as u, withCtx as t, createVNode as c, createSlots as b, renderList as h, renderSlot as B } from "vue";
1
+ import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as n, withCtx as p, createVNode as g, renderList as i, renderSlot as f } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/date/index.vue2.mjs";
4
- import { isUndefined as _, omit as y } from "lodash-unified";
5
- import v from "../../ap-form-item.vue.mjs";
6
- import x from "../../../ap-field/date/index.vue.mjs";
7
- const A = /* @__PURE__ */ n({
4
+ import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
5
+ import { apFormItemSlotNames as u } from "../../constant.mjs";
6
+ import k from "../../ap-form-item.vue.mjs";
7
+ import C from "../../../ap-field/date/index.vue.mjs";
8
+ const V = /* @__PURE__ */ h({
8
9
  name: "ApFormItemDate",
9
10
  __name: "index",
10
11
  props: {
@@ -48,31 +49,38 @@ const A = /* @__PURE__ */ n({
48
49
  placeholder: {},
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(d) {
52
- const e = d, p = s(() => {
52
+ setup(c) {
53
+ const e = c, s = B(), b = y(() => {
53
54
  var o;
54
55
  return {
55
56
  placeholder: e.placeholder,
56
57
  disabled: e.disabled,
57
58
  ...e.field,
58
- bordered: e.bordered ? !1 : _((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
59
+ bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
59
60
  };
60
61
  });
61
- return (o, g) => (f(), m(v, l(a(u(y)(e, ["field", "placeholder", "disabled"]))), {
62
- default: t(() => [
63
- c(x, l(a(p.value)), b({ _: 2 }, [
64
- h(o.$slots, (C, r) => ({
65
- name: r,
66
- fn: t((i) => [
67
- B(o.$slots, r, l(a(i || {})))
62
+ return (o, P) => (v(), x(k, a(t(r(m)(e, ["field", "placeholder", "disabled"]))), n({
63
+ default: p(() => [
64
+ g(C, a(t(b.value)), n({ _: 2 }, [
65
+ i(r(m)(s, r(u)), (_, l) => ({
66
+ name: l,
67
+ fn: p((d) => [
68
+ f(o.$slots, l, a(t(d || {})))
68
69
  ])
69
70
  }))
70
71
  ]), 1040)
71
72
  ]),
72
- _: 3
73
- }, 16));
73
+ _: 2
74
+ }, [
75
+ i(r(S)(s, r(u)), (_, l) => ({
76
+ name: l,
77
+ fn: p((d) => [
78
+ f(o.$slots, l, a(t(d || {})))
79
+ ])
80
+ }))
81
+ ]), 1040));
74
82
  }
75
83
  });
76
84
  export {
77
- A as default
85
+ V as default
78
86
  };
@@ -1,19 +1,8 @@
1
1
  import { ApFormItemDateRangeProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldDateRangeProps } from '../../../ap-field';
4
5
 
5
- type ApFormItemDateRangeSlots = {
6
- suffixIcon?: any;
7
- prevIcon?: any;
8
- nextIcon?: any;
9
- superPrevIcon?: any;
10
- superNextIcon?: any;
11
- dateRender?: any;
12
- renderExtraFooter?: any;
13
- default?: any;
14
- separator?: any;
15
- clearIcon?: any;
16
- };
17
6
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateRangeProps>, {
18
7
  hasFeedback: boolean;
19
8
  colon: undefined;
@@ -38,7 +27,29 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
38
27
  hasFeedback: boolean;
39
28
  autoLink: boolean;
40
29
  validateFirst: boolean;
41
- }, {}>, Readonly<ApFormItemDateRangeSlots> & ApFormItemDateRangeSlots>;
30
+ }, {}>, Readonly<{
31
+ suffixIcon?: any;
32
+ prevIcon?: any;
33
+ nextIcon?: any;
34
+ superPrevIcon?: any;
35
+ superNextIcon?: any;
36
+ dateRender?: any;
37
+ renderExtraFooter?: any;
38
+ default?: any;
39
+ separator?: any;
40
+ clearIcon?: any;
41
+ } & Omit<ApFormItemSlots, "default">> & {
42
+ suffixIcon?: any;
43
+ prevIcon?: any;
44
+ nextIcon?: any;
45
+ superPrevIcon?: any;
46
+ superNextIcon?: any;
47
+ dateRender?: any;
48
+ renderExtraFooter?: any;
49
+ default?: any;
50
+ separator?: any;
51
+ clearIcon?: any;
52
+ } & Omit<ApFormItemSlots, "default">>;
42
53
  export default _default;
43
54
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
55
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,11 @@
1
- import { defineComponent as f, computed as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as r, unref as d, withCtx as n, createVNode as b, createSlots as h, renderList as B, renderSlot as _ } from "vue";
1
+ import { defineComponent as B, useSlots as y, computed as g, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as i, withCtx as p, createVNode as F, renderList as f, renderSlot as m } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { isUndefined as y, omit as g } from "lodash-unified";
5
- import v from "../../ap-form-item.vue.mjs";
6
- import x from "../../../ap-field/date-range/index.vue.mjs";
7
- const w = /* @__PURE__ */ f({
4
+ import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
5
+ import { apFormItemSlotNames as c } from "../../constant.mjs";
6
+ import C from "../../ap-form-item.vue.mjs";
7
+ import P from "../../../ap-field/date-range/index.vue.mjs";
8
+ const L = /* @__PURE__ */ B({
8
9
  name: "ApFormItemDateRange",
9
10
  __name: "index",
10
11
  props: {
@@ -48,31 +49,38 @@ const w = /* @__PURE__ */ f({
48
49
  placeholder: {},
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(p) {
52
- const e = p, i = m(() => {
53
- var o, l;
52
+ setup(b) {
53
+ const e = b, s = y(), _ = g(() => {
54
+ var l, d;
54
55
  return {
55
56
  placeholder: e.placeholder,
56
57
  disabled: e.disabled,
57
58
  ...e.field,
58
- bordered: e.bordered ? !1 : y((o = e.field) == null ? void 0 : o.bordered) ? !0 : (l = e.field) == null ? void 0 : l.bordered
59
+ bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
59
60
  };
60
61
  });
61
- return (o, l) => (u(), c(v, a(r(d(g)(e, ["field", "placeholder", "disabled"]))), {
62
- default: n(() => [
63
- b(d(x), a(r(i.value)), h({ _: 2 }, [
64
- B(o.$slots, (C, t) => ({
65
- name: t,
66
- fn: n((s) => [
67
- _(o.$slots, t, a(r(s || {})))
62
+ return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), i({
63
+ default: p(() => [
64
+ F(o(P), r(t(_.value)), i({ _: 2 }, [
65
+ f(o(u)(s, o(c)), (h, a) => ({
66
+ name: a,
67
+ fn: p((n) => [
68
+ m(l.$slots, a, r(t(n || {})))
68
69
  ])
69
70
  }))
70
71
  ]), 1040)
71
72
  ]),
72
- _: 3
73
- }, 16));
73
+ _: 2
74
+ }, [
75
+ f(o(k)(s, o(c)), (h, a) => ({
76
+ name: a,
77
+ fn: p((n) => [
78
+ m(l.$slots, a, r(t(n || {})))
79
+ ])
80
+ }))
81
+ ]), 1040));
74
82
  }
75
83
  });
76
84
  export {
77
- w as default
85
+ L as default
78
86
  };
@@ -1,15 +1,8 @@
1
1
  import { ApFormItemNumberProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldNumberProps } from '../../../ap-field';
4
5
 
5
- type ApFormItemNumberSlots = {
6
- addonBefore?: any;
7
- addonAfter?: any;
8
- prefix?: any;
9
- default?: any;
10
- upIcon?: any;
11
- downIcon?: any;
12
- };
13
6
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemNumberProps>, {
14
7
  hasFeedback: boolean;
15
8
  colon: undefined;
@@ -37,7 +30,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
37
30
  hasFeedback: boolean;
38
31
  autoLink: boolean;
39
32
  validateFirst: boolean;
40
- }, {}>, Readonly<ApFormItemNumberSlots> & ApFormItemNumberSlots>;
33
+ }, {}>, Readonly<{
34
+ addonBefore?: any;
35
+ addonAfter?: any;
36
+ prefix?: any;
37
+ default?: any;
38
+ upIcon?: any;
39
+ downIcon?: any;
40
+ } & Omit<ApFormItemSlots, "default">> & {
41
+ addonBefore?: any;
42
+ addonAfter?: any;
43
+ prefix?: any;
44
+ default?: any;
45
+ upIcon?: any;
46
+ downIcon?: any;
47
+ } & Omit<ApFormItemSlots, "default">>;
41
48
  export default _default;
42
49
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
50
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,11 @@
1
- import { defineComponent as i, ref as f, openBlock as u, createBlock as m, normalizeProps as a, guardReactiveProps as r, unref as c, withCtx as t, createVNode as b, mergeProps as h, createSlots as y, renderList as B, renderSlot as v } from "vue";
1
+ import { defineComponent as B, useSlots as v, ref as _, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as n, withCtx as p, createVNode as k, mergeProps as N, renderList as i, renderSlot as f } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/number/index.vue2.mjs";
4
- import { omit as _ } from "lodash-unified";
5
- import g from "../../ap-form-item.vue.mjs";
6
- import x from "../../../ap-field/number/index.vue.mjs";
7
- const L = /* @__PURE__ */ i({
4
+ import { omit as u, pick as S } from "lodash-unified";
5
+ import { apFormItemSlotNames as m } from "../../constant.mjs";
6
+ import C from "../../ap-form-item.vue.mjs";
7
+ import F from "../../../ap-field/number/index.vue.mjs";
8
+ const T = /* @__PURE__ */ B({
8
9
  name: "ApFormItemNumber",
9
10
  __name: "index",
10
11
  props: {
@@ -48,37 +49,44 @@ const L = /* @__PURE__ */ i({
48
49
  placeholder: {},
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(d, { expose: p }) {
52
- const s = d, o = f();
53
- return p({
52
+ setup(c, { expose: b }) {
53
+ const h = c, d = v(), r = _();
54
+ return b({
54
55
  focus: () => {
55
56
  var e;
56
- (e = o.value) == null || e.focus();
57
+ (e = r.value) == null || e.focus();
57
58
  },
58
59
  blur: () => {
59
60
  var e;
60
- (e = o.value) == null || e.blur();
61
+ (e = r.value) == null || e.blur();
61
62
  }
62
- }), (e, N) => (u(), m(g, a(r(c(_)(s, ["field", "placeholder", "disabled"]))), {
63
- default: t(() => [
64
- b(x, h({
63
+ }), (e, R) => (g(), x(C, t(s(l(u)(h, ["field", "placeholder", "disabled"]))), n({
64
+ default: p(() => [
65
+ k(F, N({
65
66
  ref_key: "inputNumberRef",
66
- ref: o,
67
+ ref: r,
67
68
  placeholder: e.placeholder,
68
69
  disabled: e.disabled
69
- }, e.field), y({ _: 2 }, [
70
- B(e.$slots, (F, l) => ({
71
- name: l,
72
- fn: t((n) => [
73
- v(e.$slots, l, a(r(n || {})))
70
+ }, e.field), n({ _: 2 }, [
71
+ i(l(u)(d, l(m)), (y, o) => ({
72
+ name: o,
73
+ fn: p((a) => [
74
+ f(e.$slots, o, t(s(a || {})))
74
75
  ])
75
76
  }))
76
77
  ]), 1040, ["placeholder", "disabled"])
77
78
  ]),
78
- _: 3
79
- }, 16));
79
+ _: 2
80
+ }, [
81
+ i(l(S)(d, l(m)), (y, o) => ({
82
+ name: o,
83
+ fn: p((a) => [
84
+ f(e.$slots, o, t(s(a || {})))
85
+ ])
86
+ }))
87
+ ]), 1040));
80
88
  }
81
89
  });
82
90
  export {
83
- L as default
91
+ T as default
84
92
  };
@@ -1,8 +1,10 @@
1
1
  import { ApFormItemRadioProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldRadioProps } from '../../../ap-field';
4
5
 
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemRadioProps>, {
6
+ type ApFormItemRadioSlots = Omit<ApFormItemSlots, 'default'>;
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemRadioProps>, {
6
8
  hasFeedback: boolean;
7
9
  colon: undefined;
8
10
  autoLink: boolean;
@@ -29,7 +31,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
29
31
  hasFeedback: boolean;
30
32
  autoLink: boolean;
31
33
  validateFirst: boolean;
32
- }, {}>;
34
+ }, {}>, Readonly<ApFormItemRadioSlots> & ApFormItemRadioSlots>;
33
35
  export default _default;
34
36
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
37
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -48,3 +50,8 @@ type __VLS_WithDefaults<P, D> = {
48
50
  type __VLS_Prettify<T> = {
49
51
  [K in keyof T]: T[K];
50
52
  } & {};
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -1,10 +1,10 @@
1
- import { defineComponent as d, ref as i, openBlock as s, createBlock as p, normalizeProps as f, guardReactiveProps as n, unref as l, withCtx as u, createVNode as m, mergeProps as c } 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 y, withCtx as s, createVNode as B, mergeProps as _, renderList as x, renderSlot as g } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { omit as b } from "lodash-unified";
5
- import v from "../../ap-form-item.vue.mjs";
6
- import x from "../../../ap-field/radio/index.vue.mjs";
7
- const R = /* @__PURE__ */ d({
4
+ import { omit as h } from "lodash-unified";
5
+ import k from "../../ap-form-item.vue.mjs";
6
+ import C from "../../../ap-field/radio/index.vue.mjs";
7
+ const q = /* @__PURE__ */ u({
8
8
  name: "ApFormItemRadio",
9
9
  __name: "index",
10
10
  props: {
@@ -46,9 +46,9 @@ const R = /* @__PURE__ */ d({
46
46
  field: { default: () => ({}) },
47
47
  disabled: { type: Boolean, default: !1 }
48
48
  },
49
- setup(a, { expose: t }) {
50
- const r = a, o = i();
51
- return t({
49
+ setup(d, { expose: i }) {
50
+ const n = d, p = m(), o = c();
51
+ return i({
52
52
  focus: () => {
53
53
  var e;
54
54
  (e = o.value) == null || e.focus();
@@ -57,18 +57,25 @@ const R = /* @__PURE__ */ d({
57
57
  var e;
58
58
  (e = o.value) == null || e.blur();
59
59
  }
60
- }), (e, _) => (s(), p(v, f(n(l(b)(r, ["field", "disabled"]))), {
61
- default: u(() => [
62
- m(l(x), c({
60
+ }), (e, P) => (b(), v(k, a(t(r(h)(n, ["field", "disabled"]))), y({
61
+ default: s(() => [
62
+ B(r(C), _({
63
63
  ref_key: "radioRef",
64
64
  ref: o,
65
65
  disabled: e.disabled
66
66
  }, e.field), null, 16, ["disabled"])
67
67
  ]),
68
- _: 1
69
- }, 16));
68
+ _: 2
69
+ }, [
70
+ x(p, (R, l) => ({
71
+ name: l,
72
+ fn: s((f) => [
73
+ g(e.$slots, l, a(t(f || {})))
74
+ ])
75
+ }))
76
+ ]), 1040));
70
77
  }
71
78
  });
72
79
  export {
73
- R as default
80
+ q as default
74
81
  };
@@ -1,21 +1,8 @@
1
1
  import { ApFormItemSelectProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldSelectProps } from '../../../ap-field';
4
5
 
5
- type ApFormItemSelectSlots = {
6
- notFoundContent: any;
7
- suffixIcon: any;
8
- itemIcon: any;
9
- removeIcon: any;
10
- clearIcon: any;
11
- dropdownRender: any;
12
- option: any;
13
- placeholder: any;
14
- tagRender: any;
15
- maxTagPlaceholder: any;
16
- optionLabel: any;
17
- default: any;
18
- };
19
6
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemSelectProps>, {
20
7
  hasFeedback: boolean;
21
8
  colon: undefined;
@@ -43,7 +30,33 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
43
30
  hasFeedback: boolean;
44
31
  autoLink: boolean;
45
32
  validateFirst: boolean;
46
- }, {}>, Readonly<ApFormItemSelectSlots> & ApFormItemSelectSlots>;
33
+ }, {}>, Readonly<{
34
+ notFoundContent: any;
35
+ suffixIcon: any;
36
+ itemIcon: any;
37
+ removeIcon: any;
38
+ clearIcon: any;
39
+ dropdownRender: any;
40
+ option: any;
41
+ placeholder: any;
42
+ tagRender: any;
43
+ maxTagPlaceholder: any;
44
+ optionLabel: any;
45
+ default: any;
46
+ } & Omit<ApFormItemSlots, "default">> & {
47
+ notFoundContent: any;
48
+ suffixIcon: any;
49
+ itemIcon: any;
50
+ removeIcon: any;
51
+ clearIcon: any;
52
+ dropdownRender: any;
53
+ option: any;
54
+ placeholder: any;
55
+ tagRender: any;
56
+ maxTagPlaceholder: any;
57
+ optionLabel: any;
58
+ default: any;
59
+ } & Omit<ApFormItemSlots, "default">>;
47
60
  export default _default;
48
61
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
62
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,11 @@
1
- import { defineComponent as c, ref as m, computed as b, openBlock as h, createBlock as v, normalizeProps as r, guardReactiveProps as a, unref as s, withCtx as n, createVNode as B, createSlots as _, renderList as x, renderSlot as y } from "vue";
1
+ import { defineComponent as x, ref as y, useSlots as S, computed as g, openBlock as F, createBlock as k, normalizeProps as t, guardReactiveProps as a, unref as l, createSlots as f, withCtx as n, createVNode as C, renderList as u, renderSlot as m } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { isUndefined as g, omit as S } from "lodash-unified";
5
- import C from "../../ap-form-item.vue.mjs";
6
- import F from "../../../ap-field/select/index.vue.mjs";
7
- const q = /* @__PURE__ */ c({
4
+ import { isUndefined as P, omit as c, pick as $ } from "lodash-unified";
5
+ import { apFormItemSlotNames as b } from "../../constant.mjs";
6
+ import N from "../../ap-form-item.vue.mjs";
7
+ import w from "../../../ap-field/select/index.vue.mjs";
8
+ const j = /* @__PURE__ */ x({
8
9
  name: "ApFormItemSelect",
9
10
  __name: "index",
10
11
  props: {
@@ -48,42 +49,49 @@ const q = /* @__PURE__ */ c({
48
49
  placeholder: {},
49
50
  disabled: { type: Boolean, default: !1 }
50
51
  },
51
- setup(p, { expose: i }) {
52
- const o = p, t = m();
53
- i({
52
+ setup(_, { expose: h }) {
53
+ const o = _, p = y();
54
+ h({
54
55
  focus: () => {
55
56
  var e;
56
- (e = t.value) == null || e.focus();
57
+ (e = p.value) == null || e.focus();
57
58
  },
58
59
  blur: () => {
59
60
  var e;
60
- (e = t.value) == null || e.blur();
61
+ (e = p.value) == null || e.blur();
61
62
  }
62
63
  });
63
- const f = b(() => {
64
- var e, l;
64
+ const i = S(), v = g(() => {
65
+ var e, d;
65
66
  return {
66
67
  placeholder: o.placeholder,
67
68
  disabled: o.disabled,
68
69
  ...o.field || {},
69
- bordered: o.bordered ? !1 : g((e = o.field) == null ? void 0 : e.bordered) ? !0 : (l = o.field) == null ? void 0 : l.bordered
70
+ bordered: o.bordered ? !1 : P((e = o.field) == null ? void 0 : e.bordered) ? !0 : (d = o.field) == null ? void 0 : d.bordered
70
71
  };
71
72
  });
72
- return (e, l) => (h(), v(C, r(a(s(S)(o, ["field", "placeholder", "disabled"]))), {
73
+ return (e, d) => (F(), k(N, t(a(l(c)(o, ["field", "placeholder", "disabled"]))), f({
73
74
  default: n(() => [
74
- B(s(F), r(a(f.value)), _({ _: 2 }, [
75
- x(e.$slots, ($, d) => ({
76
- name: d,
77
- fn: n((u) => [
78
- y(e.$slots, d, r(a(u || {})))
75
+ C(l(w), t(a(v.value)), f({ _: 2 }, [
76
+ u(l(c)(i, l(b)), (B, r) => ({
77
+ name: r,
78
+ fn: n((s) => [
79
+ m(e.$slots, r, t(a(s || {})))
79
80
  ])
80
81
  }))
81
82
  ]), 1040)
82
83
  ]),
83
- _: 3
84
- }, 16));
84
+ _: 2
85
+ }, [
86
+ u(l($)(i, l(b)), (B, r) => ({
87
+ name: r,
88
+ fn: n((s) => [
89
+ m(e.$slots, r, t(a(s || {})))
90
+ ])
91
+ }))
92
+ ]), 1040));
85
93
  }
86
94
  });
87
95
  export {
88
- q as default
96
+ j as default
89
97
  };
@@ -1,12 +1,8 @@
1
1
  import { ApFormItemSwitchProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldSwitchProps } from '../../..';
4
5
 
5
- type ApFormItemSwitchSlots = {
6
- checkedChildren: any;
7
- unCheckedChildren: any;
8
- default: any;
9
- };
10
6
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemSwitchProps>, {
11
7
  hasFeedback: boolean;
12
8
  colon: undefined;
@@ -34,7 +30,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
34
30
  autoLink: boolean;
35
31
  validateFirst: boolean;
36
32
  valuePropName: string;
37
- }, {}>, Readonly<ApFormItemSwitchSlots> & ApFormItemSwitchSlots>;
33
+ }, {}>, Readonly<{
34
+ checkedChildren: any;
35
+ unCheckedChildren: any;
36
+ default: any;
37
+ } & Omit<ApFormItemSlots, "default">> & {
38
+ checkedChildren: any;
39
+ unCheckedChildren: any;
40
+ default: any;
41
+ } & Omit<ApFormItemSlots, "default">>;
38
42
  export default _default;
39
43
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
44
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,11 @@
1
- import { defineComponent as n, useSlots as p, openBlock as f, createBlock as m, normalizeProps as l, guardReactiveProps as a, unref as u, withCtx as t, createVNode as c, mergeProps as b, createSlots as B, renderList as _, renderSlot as h } from "vue";
1
+ import { defineComponent as B, useSlots as _, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as i, withCtx as s, createVNode as v, mergeProps as g, renderList as n, renderSlot as p } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/switch/index.vue2.mjs";
4
- import { omit as y } from "lodash-unified";
5
- import v from "../../ap-form-item.vue.mjs";
6
- import x from "../../../ap-field/switch/index.vue.mjs";
7
- const A = /* @__PURE__ */ n({
4
+ import { omit as m, pick as x } from "lodash-unified";
5
+ import { apFormItemSlotNames as f } from "../../constant.mjs";
6
+ import S from "../../ap-form-item.vue.mjs";
7
+ import k from "../../../ap-field/switch/index.vue.mjs";
8
+ const L = /* @__PURE__ */ B({
8
9
  name: "ApFormItemSwitch",
9
10
  __name: "index",
10
11
  props: {
@@ -46,23 +47,30 @@ const A = /* @__PURE__ */ n({
46
47
  field: { default: () => ({}) },
47
48
  disabled: { type: Boolean, default: !1 }
48
49
  },
49
- setup(r) {
50
- const d = r, s = p();
51
- return (e, g) => (f(), m(v, l(a(u(y)(d, ["field", "disabled"]))), {
52
- default: t(() => [
53
- c(x, b({ disabled: e.disabled }, e.field), B({ _: 2 }, [
54
- _(s, (S, o) => ({
55
- name: o,
56
- fn: t((i) => [
57
- h(e.$slots, o, l(a(i || {})))
50
+ setup(u) {
51
+ const c = u, d = _();
52
+ return (l, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), i({
53
+ default: s(() => [
54
+ v(k, g({ disabled: l.disabled }, l.field), i({ _: 2 }, [
55
+ n(o(m)(d, o(f)), (b, e) => ({
56
+ name: e,
57
+ fn: s((a) => [
58
+ p(l.$slots, e, t(r(a || {})))
58
59
  ])
59
60
  }))
60
61
  ]), 1040, ["disabled"])
61
62
  ]),
62
- _: 3
63
- }, 16));
63
+ _: 2
64
+ }, [
65
+ n(o(x)(d, o(f)), (b, e) => ({
66
+ name: e,
67
+ fn: s((a) => [
68
+ p(l.$slots, e, t(r(a || {})))
69
+ ])
70
+ }))
71
+ ]), 1040));
64
72
  }
65
73
  });
66
74
  export {
67
- A as default
75
+ L as default
68
76
  };