@aplus-frontend/ui 0.0.1-beta.39 → 0.0.1-beta.40

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 (101) hide show
  1. package/es/index.mjs +104 -98
  2. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  3. package/es/src/ap-custom-column/column-select.vue.mjs +19 -19
  4. package/es/src/ap-field/select/index.vue.d.ts +235 -0
  5. package/es/src/ap-form/interface.d.ts +1 -0
  6. package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  7. package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
  8. package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -0
  9. package/es/src/ap-form/items/index.d.ts +2 -1
  10. package/es/src/ap-form/items/index.mjs +1 -0
  11. package/es/src/ap-form/items/interface.d.ts +5 -1
  12. package/es/src/ap-form/modal-form/index.vue.d.ts +378 -0
  13. package/es/src/ap-form/search-form/index.vue.mjs +48 -44
  14. package/es/src/ap-table/ap-table.vue.d.ts +184 -0
  15. package/es/src/ap-table/ap-table.vue.mjs +258 -0
  16. package/es/src/ap-table/ap-table.vue2.mjs +4 -0
  17. package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
  18. package/es/src/ap-table/components/index/index.vue.mjs +4 -0
  19. package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
  20. package/es/src/ap-table/components/interface.d.ts +10 -0
  21. package/es/src/ap-table/components/style/index.css +12 -0
  22. package/es/src/ap-table/constants.d.ts +11075 -0
  23. package/es/src/ap-table/constants.mjs +55 -0
  24. package/es/src/ap-table/hooks/use-table-paging.d.ts +5 -1
  25. package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
  26. package/es/src/ap-table/index.d.ts +5 -0
  27. package/es/src/ap-table/index.mjs +6 -0
  28. package/es/src/ap-table/interface.d.ts +41 -14
  29. package/es/src/ap-table/interface.mjs +1 -0
  30. package/es/src/ap-table/style/ap-table.css +26 -0
  31. package/es/src/ap-table/utils.mjs +35 -0
  32. package/es/src/config-provider/config-provider-props.d.ts +152 -0
  33. package/es/src/config-provider/config-provider.d.ts +323 -0
  34. package/es/src/config-provider/config-provider.mjs +26 -34
  35. package/es/src/config-provider/hooks/use-global-config.d.ts +154 -0
  36. package/es/src/config-provider/index.d.ts +691 -0
  37. package/es/src/index.d.ts +1 -0
  38. package/es/src/index.mjs +206 -199
  39. package/es/src/modal/basic.vue.d.ts +464 -0
  40. package/es/src/modal/components/modal-footer.vue.d.ts +457 -0
  41. package/es/src/modal/components/modal.d.ts +443 -0
  42. package/es/src/modal/index.d.ts +963 -0
  43. package/es/src/modal/props.d.ts +283 -0
  44. package/es/src/pro-form/hooks/use-label-width.d.ts +312 -0
  45. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
  46. package/es/src/theme/ap-table/ap-table-index.css +12 -0
  47. package/es/src/theme/ap-table/ap-table.css +26 -0
  48. package/es/src/theme/work-order-modal/index.css +2 -2
  49. package/es/src/work-order-modal/style/index.css +2 -2
  50. package/es/src/work-order-modal/work-order-modal.vue.mjs +35 -25
  51. package/lib/index.js +1 -1
  52. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  53. package/lib/src/ap-custom-column/column-select.vue.js +1 -1
  54. package/lib/src/ap-field/select/index.vue.d.ts +235 -0
  55. package/lib/src/ap-form/interface.d.ts +1 -0
  56. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  57. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
  58. package/lib/src/ap-form/items/checkbox/index.vue2.js +1 -0
  59. package/lib/src/ap-form/items/index.d.ts +2 -1
  60. package/lib/src/ap-form/items/index.js +1 -1
  61. package/lib/src/ap-form/items/interface.d.ts +5 -1
  62. package/lib/src/ap-form/modal-form/index.vue.d.ts +378 -0
  63. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  64. package/lib/src/ap-table/ap-table.vue.d.ts +184 -0
  65. package/lib/src/ap-table/ap-table.vue.js +1 -0
  66. package/lib/src/ap-table/ap-table.vue2.js +1 -0
  67. package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
  68. package/lib/src/ap-table/components/index/index.vue.js +1 -0
  69. package/lib/src/ap-table/components/index/index.vue2.js +1 -0
  70. package/lib/src/ap-table/components/interface.d.ts +10 -0
  71. package/lib/src/ap-table/components/style/index.css +12 -0
  72. package/lib/src/ap-table/constants.d.ts +11075 -0
  73. package/lib/src/ap-table/constants.js +1 -0
  74. package/lib/src/ap-table/hooks/use-table-paging.d.ts +5 -1
  75. package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
  76. package/lib/src/ap-table/index.d.ts +5 -0
  77. package/lib/src/ap-table/index.js +1 -0
  78. package/lib/src/ap-table/interface.d.ts +41 -14
  79. package/lib/src/ap-table/interface.js +1 -0
  80. package/lib/src/ap-table/style/ap-table.css +26 -0
  81. package/lib/src/ap-table/utils.js +1 -0
  82. package/lib/src/config-provider/config-provider-props.d.ts +152 -0
  83. package/lib/src/config-provider/config-provider.d.ts +323 -0
  84. package/lib/src/config-provider/config-provider.js +1 -1
  85. package/lib/src/config-provider/hooks/use-global-config.d.ts +154 -0
  86. package/lib/src/config-provider/index.d.ts +691 -0
  87. package/lib/src/index.d.ts +1 -0
  88. package/lib/src/index.js +1 -1
  89. package/lib/src/modal/basic.vue.d.ts +464 -0
  90. package/lib/src/modal/components/modal-footer.vue.d.ts +457 -0
  91. package/lib/src/modal/components/modal.d.ts +443 -0
  92. package/lib/src/modal/index.d.ts +963 -0
  93. package/lib/src/modal/props.d.ts +283 -0
  94. package/lib/src/pro-form/hooks/use-label-width.d.ts +312 -0
  95. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
  96. package/lib/src/theme/ap-table/ap-table-index.css +12 -0
  97. package/lib/src/theme/ap-table/ap-table.css +26 -0
  98. package/lib/src/theme/work-order-modal/index.css +2 -2
  99. package/lib/src/work-order-modal/style/index.css +2 -2
  100. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  101. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, ref as i, watch as m, computed as M, openBlock as V, createBlock as A, unref as a, normalizeClass as o, withCtx as r, createElementVNode as p, createVNode as d, createTextVNode as B, toDisplayString as f } from "vue";
2
- import { Flex as g, Checkbox as D, Divider as G, CheckboxGroup as S } from "ant-design-vue";
1
+ import { defineComponent as w, ref as i, watch as m, computed as V, openBlock as A, createBlock as B, unref as a, normalizeClass as c, withCtx as r, createElementVNode as p, createVNode as d, createTextVNode as D, toDisplayString as h } from "vue";
2
+ import { Flex as f, Checkbox as G, Divider as M, CheckboxGroup as S } from "ant-design-vue";
3
3
  import "../config-provider/index.mjs";
4
4
  import "./styles/column-select.css";
5
5
  import { useGlobalConfig as U } from "../config-provider/hooks/use-global-config.mjs";
@@ -10,10 +10,10 @@ const H = /* @__PURE__ */ w({
10
10
  columns: {}
11
11
  },
12
12
  emits: ["updateColumns"],
13
- setup(x, { emit: C }) {
14
- const u = i(!1), v = i(!1), t = i([]), h = U("uiMode"), { b: k, e: c } = j(
15
- h.value === "aplus" ? "column-select" : "column-select-admin"
16
- ), { columns: n } = x, b = C, _ = (e) => {
13
+ setup(g, { emit: x }) {
14
+ const u = i(!1), v = i(!1), t = i([]), C = U("uiMode"), { b: k, e: o } = j(
15
+ C.value === "aplus" ? "column-select" : "column-select-admin"
16
+ ), { columns: n } = g, b = x, _ = (e) => {
17
17
  const s = e.target.checked;
18
18
  t.value = s ? n.map((l) => l.dataIndex) : n.filter((l) => l.disabled && l.selected).map((l) => l.dataIndex);
19
19
  }, I = (e) => {
@@ -28,7 +28,7 @@ const H = /* @__PURE__ */ w({
28
28
  ), m(
29
29
  t,
30
30
  () => {
31
- v.value = t.value.length > 0 && t.value.length !== n.length, console.log("uiMode", h.value), u.value = t.value.length === n.length;
31
+ v.value = t.value.length > 0 && t.value.length !== n.length, u.value = t.value.length === n.length;
32
32
  },
33
33
  { deep: !0, immediate: !0 }
34
34
  ), m(
@@ -42,28 +42,28 @@ const H = /* @__PURE__ */ w({
42
42
  },
43
43
  { deep: !0 }
44
44
  );
45
- const y = M(() => n.map((e) => ({
45
+ const y = V(() => n.map((e) => ({
46
46
  label: e.title,
47
47
  value: e.dataIndex,
48
48
  disabled: e.disabled
49
49
  })));
50
- return (e, s) => (V(), A(a(g), {
50
+ return (e, s) => (A(), B(a(f), {
51
51
  vertical: "",
52
- class: o(a(k)())
52
+ class: c(a(k)())
53
53
  }, {
54
54
  default: r(() => [
55
55
  p("p", {
56
- class: o(a(c)("des"))
56
+ class: c(a(o)("des"))
57
57
  }, "请选择需要展示在表格的字段", 2),
58
- d(a(g), {
59
- class: o(a(c)("all")),
58
+ d(a(f), {
59
+ class: c(a(o)("all")),
60
60
  justify: "space-between",
61
61
  align: "center"
62
62
  }, {
63
63
  default: r(() => {
64
64
  var l;
65
65
  return [
66
- d(a(D), {
66
+ d(a(G), {
67
67
  style: { padding: "0 6px;" },
68
68
  checked: u.value,
69
69
  "onUpdate:checked": s[0] || (s[0] = (N) => u.value = N),
@@ -71,20 +71,20 @@ const H = /* @__PURE__ */ w({
71
71
  onChange: _
72
72
  }, {
73
73
  default: r(() => [
74
- B("全选")
74
+ D("全选")
75
75
  ]),
76
76
  _: 1
77
77
  }, 8, ["checked", "indeterminate"]),
78
78
  p("span", {
79
- class: o(a(c)("statistics"))
80
- }, f((l = t.value) == null ? void 0 : l.length) + "/" + f(e.columns.length), 3)
79
+ class: c(a(o)("statistics"))
80
+ }, h((l = t.value) == null ? void 0 : l.length) + "/" + h(e.columns.length), 3)
81
81
  ];
82
82
  }),
83
83
  _: 1
84
84
  }, 8, ["class"]),
85
- d(a(G), { style: { margin: "12px 0 4px 0" } }),
85
+ d(a(M), { style: { margin: "12px 0 4px 0" } }),
86
86
  p("div", {
87
- class: o(a(c)("content"))
87
+ class: c(a(o)("content"))
88
88
  }, [
89
89
  d(a(S), {
90
90
  value: t.value,
@@ -0,0 +1,235 @@
1
+ import { DefaultOptionType, SelectValue, LabeledValue } from 'ant-design-vue/es/select';
2
+ import { ApFieldSelectProps, FieldMode } from '../interface';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
4
+ import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
+ import { ButtonSize } from 'ant-design-vue/es/button';
6
+ import { VueNode } from 'ant-design-vue/es/_util/type';
7
+ import { SelectHandler, FieldNames, FilterFunc } from 'ant-design-vue/es/vc-select/Select';
8
+ import { RenderDOMFunc, DropdownRender, CustomTagProps } from 'ant-design-vue/es/vc-select/BaseSelect';
9
+ import { AlignType } from 'ant-design-vue/es/vc-trigger/interface';
10
+
11
+ type ApFieldSelectSlots = {
12
+ notFoundContent: any;
13
+ suffixIcon: any;
14
+ itemIcon: any;
15
+ removeIcon: any;
16
+ clearIcon: any;
17
+ dropdownRender: any;
18
+ option: any;
19
+ placeholder: any;
20
+ tagRender: any;
21
+ maxTagPlaceholder: any;
22
+ optionLabel: any;
23
+ default: any;
24
+ };
25
+ declare function focus(): void;
26
+ declare function blur(): void;
27
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSelectProps>, {
28
+ fieldProps: () => {};
29
+ emptyText: string;
30
+ mode: string;
31
+ }>, {
32
+ focus: typeof focus;
33
+ blur: typeof blur;
34
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
35
+ "update:value": (...args: any[]) => void;
36
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSelectProps>, {
37
+ fieldProps: () => {};
38
+ emptyText: string;
39
+ mode: string;
40
+ }>>> & {
41
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
42
+ }, {
43
+ mode: FieldMode;
44
+ emptyText: string;
45
+ fieldProps: Omit<Partial< ExtractPropTypes<{
46
+ value: {
47
+ type: PropType<SelectValue>;
48
+ default: SelectValue;
49
+ };
50
+ defaultValue: {
51
+ type: PropType<SelectValue>;
52
+ default: SelectValue;
53
+ };
54
+ notFoundContent: VueTypeValidableDef<any>;
55
+ suffixIcon: VueTypeValidableDef<any>;
56
+ itemIcon: VueTypeValidableDef<any>;
57
+ size: {
58
+ type: PropType<ButtonSize>;
59
+ default: ButtonSize;
60
+ };
61
+ mode: {
62
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
63
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
64
+ };
65
+ bordered: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ transitionName: StringConstructor;
70
+ choiceTransitionName: {
71
+ type: PropType<"">;
72
+ default: "";
73
+ };
74
+ popupClassName: StringConstructor;
75
+ dropdownClassName: StringConstructor;
76
+ placement: {
77
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
78
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
79
+ };
80
+ status: {
81
+ type: PropType<"" | "error" | "warning">;
82
+ default: "" | "error" | "warning";
83
+ };
84
+ 'onUpdate:value': {
85
+ type: PropType<(val: SelectValue) => void>;
86
+ default: (val: SelectValue) => void;
87
+ };
88
+ children: PropType< VueNode[]>;
89
+ listHeight: NumberConstructor;
90
+ onMouseenter: PropType<(e: MouseEvent) => void>;
91
+ onMouseleave: PropType<(e: MouseEvent) => void>;
92
+ tabindex: NumberConstructor;
93
+ onClick: PropType<(e: MouseEvent) => void>;
94
+ onFocus: {
95
+ type: PropType<(e: FocusEvent) => void>;
96
+ };
97
+ onBlur: {
98
+ type: PropType<(e: FocusEvent) => void>;
99
+ };
100
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
101
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
102
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
103
+ onMousedown: PropType<(e: MouseEvent) => void>;
104
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
105
+ open: {
106
+ type: BooleanConstructor;
107
+ default: any;
108
+ };
109
+ animation: StringConstructor;
110
+ direction: {
111
+ type: PropType<"ltr" | "rtl">;
112
+ };
113
+ disabled: {
114
+ type: BooleanConstructor;
115
+ default: any;
116
+ };
117
+ prefixCls: StringConstructor;
118
+ id: StringConstructor;
119
+ autofocus: BooleanConstructor;
120
+ getPopupContainer: {
121
+ type: PropType<RenderDOMFunc>;
122
+ };
123
+ virtual: {
124
+ type: BooleanConstructor;
125
+ default: any;
126
+ };
127
+ dropdownMatchSelectWidth: {
128
+ type: PropType<number | boolean>;
129
+ default: any;
130
+ };
131
+ options: PropType<DefaultOptionType[]>;
132
+ showAction: {
133
+ type: PropType<("click" | "focus")[]>;
134
+ };
135
+ placeholder: VueTypeValidableDef<any>;
136
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
137
+ loading: {
138
+ type: BooleanConstructor;
139
+ default: any;
140
+ };
141
+ clearIcon: VueTypeValidableDef<any>;
142
+ allowClear: {
143
+ type: BooleanConstructor;
144
+ default: any;
145
+ };
146
+ onSearch: PropType<(value: string) => void>;
147
+ fieldNames: PropType<FieldNames>;
148
+ dropdownStyle: {
149
+ type: PropType<CSSProperties>;
150
+ };
151
+ dropdownRender: {
152
+ type: PropType<DropdownRender>;
153
+ };
154
+ dropdownAlign: PropType<AlignType>;
155
+ showSearch: {
156
+ type: BooleanConstructor;
157
+ default: any;
158
+ };
159
+ searchValue: StringConstructor;
160
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
161
+ removeIcon: VueTypeValidableDef<any>;
162
+ maxTagCount: {
163
+ type: PropType<number | "responsive">;
164
+ };
165
+ maxTagTextLength: NumberConstructor;
166
+ maxTagPlaceholder: VueTypeValidableDef<any>;
167
+ tokenSeparators: {
168
+ type: PropType<string[]>;
169
+ };
170
+ tagRender: {
171
+ type: PropType<(props: CustomTagProps) => any>;
172
+ };
173
+ optionLabelRender: {
174
+ type: PropType<(option: Record<string, any>) => any>;
175
+ };
176
+ onClear: PropType<() => void>;
177
+ defaultOpen: {
178
+ type: BooleanConstructor;
179
+ default: any;
180
+ };
181
+ onDropdownVisibleChange: {
182
+ type: PropType<(open: boolean) => void>;
183
+ };
184
+ showArrow: {
185
+ type: BooleanConstructor;
186
+ default: any;
187
+ };
188
+ onPopupScroll: PropType<(e: UIEvent) => void>;
189
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
190
+ listItemHeight: NumberConstructor;
191
+ inputValue: StringConstructor;
192
+ autoClearSearchValue: {
193
+ type: BooleanConstructor;
194
+ default: any;
195
+ };
196
+ filterOption: {
197
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
198
+ default: any;
199
+ };
200
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
201
+ optionFilterProp: StringConstructor;
202
+ optionLabelProp: StringConstructor;
203
+ defaultActiveFirstOption: {
204
+ type: BooleanConstructor;
205
+ default: any;
206
+ };
207
+ labelInValue: {
208
+ type: BooleanConstructor;
209
+ default: any;
210
+ };
211
+ }>>, "mode" | "value" | "onUpdate:value" | "onSearch">;
212
+ }, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
213
+ export default _default;
214
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
215
+ type __VLS_TypePropsToRuntimeProps<T> = {
216
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
217
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
218
+ } : {
219
+ type: PropType<T[K]>;
220
+ required: true;
221
+ };
222
+ };
223
+ type __VLS_WithDefaults<P, D> = {
224
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
225
+ default: D[K];
226
+ }> : P[K];
227
+ };
228
+ type __VLS_Prettify<T> = {
229
+ [K in keyof T]: T[K];
230
+ } & {};
231
+ type __VLS_WithTemplateSlots<T, S> = T & {
232
+ new (): {
233
+ $slots: S;
234
+ };
235
+ };
@@ -44,6 +44,7 @@ export type ApFormSearchFormProps = ApFormProps & {
44
44
  extraInAction?: boolean;
45
45
  forceExpand?: boolean;
46
46
  countPerRow?: number;
47
+ submitLoading?: boolean;
47
48
  };
48
49
  export type ApFormSearchFormExpose = {
49
50
  apForm: ApFormExpose;
@@ -0,0 +1,47 @@
1
+ import { ApFormItemCheckboxProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { ApFieldCheckboxProps } from '../../../ap-field';
4
+
5
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
6
+ hasFeedback: boolean;
7
+ colon: undefined;
8
+ autoLink: boolean;
9
+ required: undefined;
10
+ validateFirst: undefined;
11
+ disabled: boolean;
12
+ field: () => {};
13
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
14
+ hasFeedback: boolean;
15
+ colon: undefined;
16
+ autoLink: boolean;
17
+ required: undefined;
18
+ validateFirst: undefined;
19
+ disabled: boolean;
20
+ field: () => {};
21
+ }>>>, {
22
+ disabled: boolean;
23
+ required: boolean;
24
+ field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
25
+ colon: boolean;
26
+ hasFeedback: boolean;
27
+ autoLink: boolean;
28
+ validateFirst: boolean;
29
+ }, {}>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
@@ -0,0 +1,61 @@
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";
2
+ import "../../ap-form-item.vue2.mjs";
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({
8
+ name: "ApFormItemCheckbox",
9
+ __name: "index",
10
+ props: {
11
+ htmlFor: {},
12
+ prefixCls: {},
13
+ label: {},
14
+ help: {},
15
+ extra: {},
16
+ labelCol: {},
17
+ wrapperCol: {},
18
+ hasFeedback: { type: Boolean, default: !1 },
19
+ colon: { type: Boolean, default: void 0 },
20
+ labelAlign: {},
21
+ prop: {},
22
+ name: {},
23
+ rules: {},
24
+ autoLink: { type: Boolean, default: !0 },
25
+ required: { type: Boolean, default: void 0 },
26
+ validateFirst: { type: Boolean, default: void 0 },
27
+ validateStatus: {},
28
+ validateTrigger: {},
29
+ messageVariables: {},
30
+ hidden: { type: Boolean },
31
+ noStyle: { type: Boolean },
32
+ tooltip: {},
33
+ span: {},
34
+ order: {},
35
+ offset: {},
36
+ push: {},
37
+ pull: {},
38
+ xs: {},
39
+ sm: {},
40
+ md: {},
41
+ lg: {},
42
+ xl: {},
43
+ xxl: {},
44
+ flex: {},
45
+ valuePropName: {},
46
+ field: { default: () => ({}) },
47
+ disabled: { type: Boolean, default: !1 }
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"])
54
+ ]),
55
+ _: 1
56
+ }, 16));
57
+ }
58
+ });
59
+ export {
60
+ g as default
61
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -6,5 +6,6 @@ import { default as ApFormItemDateRange } from './date-range/index.vue';
6
6
  import { default as ApFormItemRadio } from './radio/index.vue';
7
7
  import { default as ApFormItemSelect } from './select/index.vue';
8
8
  import { default as ApFormItemSwitch } from './switch/index.vue';
9
+ import { default as ApFormItemCheckbox } from './checkbox/index.vue';
9
10
 
10
- export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch };
11
+ export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch, ApFormItemCheckbox };
@@ -6,3 +6,4 @@ import "./date-range/index.vue2.mjs";
6
6
  import "./radio/index.vue2.mjs";
7
7
  import "./select/index.vue2.mjs";
8
8
  import "./switch/index.vue2.mjs";
9
+ import "./checkbox/index.vue2.mjs";
@@ -1,4 +1,4 @@
1
- import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from 'src/ap-field';
1
+ import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
2
2
  import { ApFormItemProps } from '../interface';
3
3
 
4
4
  export type ApFormItemTextProps = ApFormItemProps & {
@@ -39,3 +39,7 @@ export type ApFormItemSwitchProps = Omit<ApFormItemProps, 'bordered'> & {
39
39
  field?: Omit<ApFieldSwitchProps, 'checked' | 'onUpdate:checked'>;
40
40
  disabled?: boolean;
41
41
  };
42
+ export type ApFormItemCheckboxProps = Omit<ApFormItemProps, 'bordered'> & {
43
+ field?: Omit<ApFieldCheckboxProps, 'value' | 'onUpdate:value'>;
44
+ disabled?: boolean;
45
+ };