@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.
- package/es/index.mjs +104 -98
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-custom-column/column-select.vue.mjs +19 -19
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-form/interface.d.ts +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
- package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +1 -0
- package/es/src/ap-form/items/interface.d.ts +5 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +378 -0
- package/es/src/ap-form/search-form/index.vue.mjs +48 -44
- package/es/src/ap-table/ap-table.vue.d.ts +184 -0
- package/es/src/ap-table/ap-table.vue.mjs +258 -0
- package/es/src/ap-table/ap-table.vue2.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/es/src/ap-table/components/index/index.vue.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
- package/es/src/ap-table/components/interface.d.ts +10 -0
- package/es/src/ap-table/components/style/index.css +12 -0
- package/es/src/ap-table/constants.d.ts +11075 -0
- package/es/src/ap-table/constants.mjs +55 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +5 -1
- package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
- package/es/src/ap-table/index.d.ts +5 -0
- package/es/src/ap-table/index.mjs +6 -0
- package/es/src/ap-table/interface.d.ts +41 -14
- package/es/src/ap-table/interface.mjs +1 -0
- package/es/src/ap-table/style/ap-table.css +26 -0
- package/es/src/ap-table/utils.mjs +35 -0
- package/es/src/config-provider/config-provider-props.d.ts +152 -0
- package/es/src/config-provider/config-provider.d.ts +323 -0
- package/es/src/config-provider/config-provider.mjs +26 -34
- package/es/src/config-provider/hooks/use-global-config.d.ts +154 -0
- package/es/src/config-provider/index.d.ts +691 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +206 -199
- package/es/src/modal/basic.vue.d.ts +464 -0
- package/es/src/modal/components/modal-footer.vue.d.ts +457 -0
- package/es/src/modal/components/modal.d.ts +443 -0
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/modal/props.d.ts +283 -0
- package/es/src/pro-form/hooks/use-label-width.d.ts +312 -0
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
- package/es/src/theme/ap-table/ap-table-index.css +12 -0
- package/es/src/theme/ap-table/ap-table.css +26 -0
- package/es/src/theme/work-order-modal/index.css +2 -2
- package/es/src/work-order-modal/style/index.css +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +35 -25
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-form/interface.d.ts +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +5 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +378 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +184 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -0
- package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/lib/src/ap-table/components/index/index.vue.js +1 -0
- package/lib/src/ap-table/components/index/index.vue2.js +1 -0
- package/lib/src/ap-table/components/interface.d.ts +10 -0
- package/lib/src/ap-table/components/style/index.css +12 -0
- package/lib/src/ap-table/constants.d.ts +11075 -0
- package/lib/src/ap-table/constants.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +5 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
- package/lib/src/ap-table/index.d.ts +5 -0
- package/lib/src/ap-table/index.js +1 -0
- package/lib/src/ap-table/interface.d.ts +41 -14
- package/lib/src/ap-table/interface.js +1 -0
- package/lib/src/ap-table/style/ap-table.css +26 -0
- package/lib/src/ap-table/utils.js +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +152 -0
- package/lib/src/config-provider/config-provider.d.ts +323 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +154 -0
- package/lib/src/config-provider/index.d.ts +691 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +464 -0
- package/lib/src/modal/components/modal-footer.vue.d.ts +457 -0
- package/lib/src/modal/components/modal.d.ts +443 -0
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/modal/props.d.ts +283 -0
- package/lib/src/pro-form/hooks/use-label-width.d.ts +312 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
- package/lib/src/theme/ap-table/ap-table-index.css +12 -0
- package/lib/src/theme/ap-table/ap-table.css +26 -0
- package/lib/src/theme/work-order-modal/index.css +2 -2
- package/lib/src/work-order-modal/style/index.css +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
};
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const o=require("lodash-unified"),r=require("../../ap-form-item.vue.js"),u=require("../../../ap-field/checkbox/index.vue.js"),d=e.defineComponent({name:"ApFormItemCheckbox",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},valuePropName:{},field:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(t){const a=t;return(l,i)=>(e.openBlock(),e.createBlock(r.default,e.normalizeProps(e.guardReactiveProps(e.unref(o.omit)(a,["field","disabled"]))),{default:e.withCtx(()=>[e.createVNode(e.unref(u.default),e.mergeProps({disabled:l.disabled},l.field),null,16,["disabled"])]),_:1},16))}});exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./text/index.vue2.js");require("./text-area/index.vue2.js");require("./number/index.vue2.js");require("./date/index.vue2.js");require("./date-range/index.vue2.js");require("./radio/index.vue2.js");require("./select/index.vue2.js");require("./switch/index.vue2.js");
|
|
1
|
+
"use strict";require("./text/index.vue2.js");require("./text-area/index.vue2.js");require("./number/index.vue2.js");require("./date/index.vue2.js");require("./date-range/index.vue2.js");require("./radio/index.vue2.js");require("./select/index.vue2.js");require("./switch/index.vue2.js");require("./checkbox/index.vue2.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from '
|
|
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
|
+
};
|