@aplus-frontend/ui 0.0.19 → 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 (53) hide show
  1. package/es/src/ap-form/ap-form-item.vue.d.ts +2 -8
  2. package/es/src/ap-form/constant.d.ts +4 -0
  3. package/es/src/ap-form/constant.mjs +4 -3
  4. package/es/src/ap-form/interface.d.ts +10 -0
  5. package/es/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
  6. package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -13
  7. package/es/src/ap-form/items/date/index.vue.d.ts +26 -14
  8. package/es/src/ap-form/items/date/index.vue.mjs +26 -18
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +24 -13
  10. package/es/src/ap-form/items/date-range/index.vue.mjs +27 -19
  11. package/es/src/ap-form/items/number/index.vue.d.ts +16 -9
  12. package/es/src/ap-form/items/number/index.vue.mjs +30 -22
  13. package/es/src/ap-form/items/radio/index.vue.d.ts +9 -2
  14. package/es/src/ap-form/items/radio/index.vue.mjs +21 -14
  15. package/es/src/ap-form/items/select/index.vue.d.ts +28 -15
  16. package/es/src/ap-form/items/select/index.vue.mjs +30 -22
  17. package/es/src/ap-form/items/switch/index.vue.d.ts +10 -6
  18. package/es/src/ap-form/items/switch/index.vue.mjs +25 -17
  19. package/es/src/ap-form/items/text/index.vue.d.ts +14 -8
  20. package/es/src/ap-form/items/text/index.vue2.mjs +32 -24
  21. package/es/src/ap-form/items/text/password.vue.d.ts +16 -9
  22. package/es/src/ap-form/items/text/password.vue.mjs +29 -21
  23. package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -2
  24. package/es/src/ap-form/items/text-area/index.vue.mjs +24 -17
  25. package/es/src/ap-table/ap-table.vue.mjs +69 -71
  26. package/es/src/ap-table/constants.d.ts +2692 -1453
  27. package/lib/src/ap-form/ap-form-item.vue.d.ts +2 -8
  28. package/lib/src/ap-form/constant.d.ts +4 -0
  29. package/lib/src/ap-form/constant.js +1 -1
  30. package/lib/src/ap-form/interface.d.ts +10 -0
  31. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
  32. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  33. package/lib/src/ap-form/items/date/index.vue.d.ts +26 -14
  34. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  35. package/lib/src/ap-form/items/date-range/index.vue.d.ts +24 -13
  36. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  37. package/lib/src/ap-form/items/number/index.vue.d.ts +16 -9
  38. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  39. package/lib/src/ap-form/items/radio/index.vue.d.ts +9 -2
  40. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  41. package/lib/src/ap-form/items/select/index.vue.d.ts +28 -15
  42. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  43. package/lib/src/ap-form/items/switch/index.vue.d.ts +10 -6
  44. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  45. package/lib/src/ap-form/items/text/index.vue.d.ts +14 -8
  46. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  47. package/lib/src/ap-form/items/text/password.vue.d.ts +16 -9
  48. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  49. package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -2
  50. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  51. package/lib/src/ap-table/ap-table.vue.js +1 -1
  52. package/lib/src/ap-table/constants.d.ts +2692 -1453
  53. package/package.json +3 -3
@@ -1,12 +1,6 @@
1
- import { ApFormItemProps } from './interface';
2
- import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
1
+ import { ApFormItemProps, ApFormItemSlots } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
 
4
- type ApFormItemSlots = {
5
- help: any;
6
- label: any;
7
- extra: any;
8
- default(): VNode[];
9
- };
10
4
  declare function onFieldBlur(): void;
11
5
  declare function onFieldChange(): void;
12
6
  declare function clearValidate(): void;
@@ -1,3 +1,7 @@
1
1
  import { ApFormColProps } from './interface';
2
2
 
3
3
  export declare const apFormItemColPropKeys: Array<keyof ApFormColProps>;
4
+ /**
5
+ * ApFormItem支持的自定义的插槽的名称列表
6
+ */
7
+ export declare const apFormItemSlotNames: readonly ["extra", "help", "label"];
@@ -1,4 +1,4 @@
1
- const l = [
1
+ const e = [
2
2
  "flex",
3
3
  "lg",
4
4
  "md",
@@ -11,7 +11,8 @@ const l = [
11
11
  "xl",
12
12
  "xs",
13
13
  "xxl"
14
- ];
14
+ ], l = ["extra", "help", "label"];
15
15
  export {
16
- l as apFormItemColPropKeys
16
+ e as apFormItemColPropKeys,
17
+ l as apFormItemSlotNames
17
18
  };
@@ -2,6 +2,7 @@ import { ButtonProps, ColProps, FormItemProps, FormProps, ModalProps, RowProps }
2
2
  import { FormItemExpose } from 'ant-design-vue/es/form/FormItem';
3
3
  import { InternalNamePath, NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
4
4
  import { Recordable } from '../type';
5
+ import { VNode } from 'vue';
5
6
 
6
7
  export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
7
8
  export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
@@ -78,3 +79,12 @@ export type ApFormModalFormProps = Omit<ApFormProps, 'onFinish'> & {
78
79
  showCancel?: boolean;
79
80
  };
80
81
  export type ApFormModalFormExpose = ApFormExpose;
82
+ /**
83
+ * ApFormItem支持的插槽
84
+ */
85
+ export type ApFormItemSlots = {
86
+ help: any;
87
+ label: any;
88
+ extra: any;
89
+ default(): VNode[];
90
+ };
@@ -1,8 +1,10 @@
1
1
  import { ApFormItemCheckboxProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldCheckboxProps } from '../../../ap-field';
4
5
 
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
6
+ type ApFormItemCheckboxSlots = Omit<ApFormItemSlots, 'default'>;
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
6
8
  hasFeedback: boolean;
7
9
  colon: undefined;
8
10
  autoLink: boolean;
@@ -26,7 +28,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
26
28
  hasFeedback: boolean;
27
29
  autoLink: boolean;
28
30
  validateFirst: boolean;
29
- }, {}>;
31
+ }, {}>, Readonly<ApFormItemCheckboxSlots> & ApFormItemCheckboxSlots>;
30
32
  export default _default;
31
33
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
34
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -45,3 +47,8 @@ type __VLS_WithDefaults<P, D> = {
45
47
  type __VLS_Prettify<T> = {
46
48
  [K in keyof T]: T[K];
47
49
  } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -1,10 +1,10 @@
1
- import { defineComponent as t, openBlock as r, createBlock as d, normalizeProps as i, guardReactiveProps as p, unref as o, withCtx as n, createVNode as s, mergeProps as f } 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 x, renderList as y, renderSlot as _ } from "vue";
2
2
  import "../../ap-form-item.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
- import { omit as m } from "lodash-unified";
5
- import u from "../../ap-form-item.vue.mjs";
6
- import c from "../../../ap-field/checkbox/index.vue.mjs";
7
- const g = /* @__PURE__ */ t({
4
+ import { omit as d } from "lodash-unified";
5
+ import h from "../../ap-form-item.vue.mjs";
6
+ import v from "../../../ap-field/checkbox/index.vue.mjs";
7
+ const A = /* @__PURE__ */ f({
8
8
  name: "ApFormItemCheckbox",
9
9
  __name: "index",
10
10
  props: {
@@ -46,16 +46,23 @@ const g = /* @__PURE__ */ t({
46
46
  field: { default: () => ({}) },
47
47
  disabled: { type: Boolean, default: !1 }
48
48
  },
49
- setup(l) {
50
- const a = l;
51
- return (e, b) => (r(), d(u, i(p(o(m)(a, ["field", "disabled"]))), {
52
- default: n(() => [
53
- s(o(c), f({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
49
+ setup(s) {
50
+ const i = s, n = m();
51
+ return (e, g) => (u(), c(h, a(t(o(d)(i, ["field", "disabled"]))), b({
52
+ default: r(() => [
53
+ B(o(v), x({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
54
54
  ]),
55
- _: 1
56
- }, 16));
55
+ _: 2
56
+ }, [
57
+ y(o(d)(n, "default"), (C, l) => ({
58
+ name: l,
59
+ fn: r((p) => [
60
+ _(e.$slots, l, a(t(p || {})))
61
+ ])
62
+ }))
63
+ ]), 1040));
57
64
  }
58
65
  });
59
66
  export {
60
- g as default
67
+ A as default
61
68
  };
@@ -1,20 +1,8 @@
1
1
  import { ApFormItemDateProps } from '../interface';
2
+ import { ApFormItemSlots } from '../../interface';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
4
  import { ApFieldDateProps } from '../../..';
4
5
 
5
- type ApFormItemDateSlots = {
6
- dateRender: any;
7
- suffixIcon?: any;
8
- prevIcon?: any;
9
- nextIcon?: any;
10
- superPrevIcon?: any;
11
- superNextIcon?: any;
12
- renderExtraFooter?: any;
13
- monthCellRender?: any;
14
- monthCellContentRender?: any;
15
- clearIcon?: any;
16
- default?: any;
17
- };
18
6
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateProps>, {
19
7
  hasFeedback: boolean;
20
8
  colon: undefined;
@@ -39,7 +27,31 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
39
27
  hasFeedback: boolean;
40
28
  autoLink: boolean;
41
29
  validateFirst: boolean;
42
- }, {}>, Readonly<ApFormItemDateSlots> & ApFormItemDateSlots>;
30
+ }, {}>, Readonly<{
31
+ dateRender: any;
32
+ suffixIcon?: any;
33
+ prevIcon?: any;
34
+ nextIcon?: any;
35
+ superPrevIcon?: any;
36
+ superNextIcon?: any;
37
+ renderExtraFooter?: any;
38
+ monthCellRender?: any;
39
+ monthCellContentRender?: any;
40
+ clearIcon?: any;
41
+ default?: any;
42
+ } & Omit<ApFormItemSlots, "default">> & {
43
+ dateRender: any;
44
+ suffixIcon?: any;
45
+ prevIcon?: any;
46
+ nextIcon?: any;
47
+ superPrevIcon?: any;
48
+ superNextIcon?: any;
49
+ renderExtraFooter?: any;
50
+ monthCellRender?: any;
51
+ monthCellContentRender?: any;
52
+ clearIcon?: any;
53
+ default?: any;
54
+ } & Omit<ApFormItemSlots, "default">>;
43
55
  export default _default;
44
56
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
57
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -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> = {