@aplus-frontend/ui 7.14.5 → 7.15.0
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/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1086 -6
- package/es/src/ap-field/date/index.vue.mjs +63 -57
- package/es/src/ap-field/date-range/index.vue.d.ts +1155 -4
- package/es/src/ap-field/date-range/index.vue.mjs +70 -63
- package/es/src/ap-field/interface.d.ts +25 -29
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.d.ts +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/second/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +3 -2
- package/es/src/ap-field/select/index.vue.mjs +116 -104
- package/es/src/ap-field/select/read.vue2.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +232 -4
- package/es/src/ap-field/switch/index.vue.mjs +48 -42
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -4
- package/es/src/ap-form/item-group/index.vue.mjs +37 -42
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
- package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -14
- package/es/src/ap-form/items/date/index.vue.d.ts +1497 -5
- package/es/src/ap-form/items/date/index.vue.mjs +25 -19
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
- package/es/src/ap-form/items/date-range/index.vue.mjs +25 -19
- package/es/src/ap-form/items/number/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/radio/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +18 -12
- package/es/src/ap-form/items/switch/index.vue.d.ts +436 -5
- package/es/src/ap-form/items/switch/index.vue.mjs +24 -17
- package/es/src/ap-form/items/text/password.vue.d.ts +5 -5
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-table/constants.d.ts +1923 -107
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1086 -6
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1155 -4
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +25 -29
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/second/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +3 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +232 -4
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -4
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +1497 -5
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/radio/index.vue.d.ts +5 -5
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +18 -12
- package/lib/src/ap-form/items/switch/index.vue.d.ts +436 -5
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +5 -5
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-table/constants.d.ts +1923 -107
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ApFormItemSlots } from '../../interface';
|
|
2
2
|
import { ApFormItemSwitchProps } from '../interface';
|
|
3
|
-
import {
|
|
4
|
-
import { ApFieldSwitchProps } from '
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
4
|
+
import { FieldMode, ApFieldSwitchConfirmConfig, ApFieldSwitchProps } from '../../../ap-field';
|
|
5
|
+
import { FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
7
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
5
9
|
declare function __VLS_template(): {
|
|
6
10
|
attrs: Partial<{}>;
|
|
7
11
|
slots: Readonly<{
|
|
@@ -13,11 +17,226 @@ declare function __VLS_template(): {
|
|
|
13
17
|
unCheckedChildren: any;
|
|
14
18
|
default: any;
|
|
15
19
|
} & Omit<ApFormItemSlots, "default">;
|
|
16
|
-
refs: {
|
|
20
|
+
refs: {
|
|
21
|
+
switchRef: ({
|
|
22
|
+
$: ComponentInternalInstance;
|
|
23
|
+
$data: {};
|
|
24
|
+
$props: {
|
|
25
|
+
readonly mode?: FieldMode | undefined;
|
|
26
|
+
readonly class?: unknown;
|
|
27
|
+
readonly style?: unknown;
|
|
28
|
+
readonly size?: "small" | "default" | undefined;
|
|
29
|
+
readonly onBlur?: FocusEventHandler | undefined;
|
|
30
|
+
readonly onChange?: ((checked: string | number | boolean, e: Event) => void) | undefined;
|
|
31
|
+
readonly onFocus?: FocusEventHandler | undefined;
|
|
32
|
+
readonly onKeydown?: ((e: Event) => void) | undefined;
|
|
33
|
+
readonly onMouseup?: ((e: Event) => void) | undefined;
|
|
34
|
+
readonly disabled?: boolean | undefined;
|
|
35
|
+
readonly id?: string | undefined;
|
|
36
|
+
readonly prefixCls?: string | undefined;
|
|
37
|
+
readonly autofocus?: boolean | undefined;
|
|
38
|
+
readonly loading?: boolean | undefined;
|
|
39
|
+
readonly tabindex?: string | number | undefined;
|
|
40
|
+
readonly checkedChildren?: any;
|
|
41
|
+
readonly unCheckedChildren?: any;
|
|
42
|
+
readonly checked?: string | number | boolean | undefined;
|
|
43
|
+
readonly checkedValue?: string | number | boolean | undefined;
|
|
44
|
+
readonly unCheckedValue?: string | number | boolean | undefined;
|
|
45
|
+
readonly 'onUpdate:checked'?: (((checked: string | number | boolean) => void) & ((...args: any[]) => any)) | undefined;
|
|
46
|
+
readonly emptyText?: string | undefined;
|
|
47
|
+
readonly onAction?: ((checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>) | undefined;
|
|
48
|
+
readonly confirm?: ( ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig)) | undefined;
|
|
49
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
50
|
+
$attrs: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
$refs: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
} & {
|
|
56
|
+
switchRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
57
|
+
id: StringConstructor;
|
|
58
|
+
prefixCls: StringConstructor;
|
|
59
|
+
size: VueTypeDef<"default" | "small">;
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
checkedChildren: VueTypeValidableDef<any>;
|
|
65
|
+
unCheckedChildren: VueTypeValidableDef<any>;
|
|
66
|
+
tabindex: VueTypeDef<string | number>;
|
|
67
|
+
autofocus: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
loading: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: any;
|
|
74
|
+
};
|
|
75
|
+
checked: VueTypeDef<string | number | boolean>;
|
|
76
|
+
checkedValue: VueTypeDef<string | number | boolean> & {
|
|
77
|
+
default: string | number | boolean;
|
|
78
|
+
};
|
|
79
|
+
unCheckedValue: VueTypeDef<string | number | boolean> & {
|
|
80
|
+
default: string | number | boolean;
|
|
81
|
+
};
|
|
82
|
+
onChange: {
|
|
83
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
84
|
+
};
|
|
85
|
+
onClick: {
|
|
86
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
87
|
+
};
|
|
88
|
+
onKeydown: {
|
|
89
|
+
type: PropType<(e: Event) => void>;
|
|
90
|
+
};
|
|
91
|
+
onMouseup: {
|
|
92
|
+
type: PropType<(e: Event) => void>;
|
|
93
|
+
};
|
|
94
|
+
'onUpdate:checked': {
|
|
95
|
+
type: PropType<(checked: string | number | boolean) => void>;
|
|
96
|
+
};
|
|
97
|
+
onBlur: PropType<FocusEventHandler>;
|
|
98
|
+
onFocus: PropType<FocusEventHandler>;
|
|
99
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
autofocus: boolean;
|
|
102
|
+
loading: boolean;
|
|
103
|
+
checkedValue: string | number | boolean;
|
|
104
|
+
unCheckedValue: string | number | boolean;
|
|
105
|
+
}, true, {}, CustomSlotsType<{
|
|
106
|
+
checkedChildren: any;
|
|
107
|
+
unCheckedChildren: any;
|
|
108
|
+
default: any;
|
|
109
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
110
|
+
P: {};
|
|
111
|
+
B: {};
|
|
112
|
+
D: {};
|
|
113
|
+
C: {};
|
|
114
|
+
M: {};
|
|
115
|
+
Defaults: {};
|
|
116
|
+
}, Readonly< ExtractPropTypes<{
|
|
117
|
+
id: StringConstructor;
|
|
118
|
+
prefixCls: StringConstructor;
|
|
119
|
+
size: VueTypeDef<"default" | "small">;
|
|
120
|
+
disabled: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: any;
|
|
123
|
+
};
|
|
124
|
+
checkedChildren: VueTypeValidableDef<any>;
|
|
125
|
+
unCheckedChildren: VueTypeValidableDef<any>;
|
|
126
|
+
tabindex: VueTypeDef<string | number>;
|
|
127
|
+
autofocus: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: any;
|
|
130
|
+
};
|
|
131
|
+
loading: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: any;
|
|
134
|
+
};
|
|
135
|
+
checked: VueTypeDef<string | number | boolean>;
|
|
136
|
+
checkedValue: VueTypeDef<string | number | boolean> & {
|
|
137
|
+
default: string | number | boolean;
|
|
138
|
+
};
|
|
139
|
+
unCheckedValue: VueTypeDef<string | number | boolean> & {
|
|
140
|
+
default: string | number | boolean;
|
|
141
|
+
};
|
|
142
|
+
onChange: {
|
|
143
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
144
|
+
};
|
|
145
|
+
onClick: {
|
|
146
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
147
|
+
};
|
|
148
|
+
onKeydown: {
|
|
149
|
+
type: PropType<(e: Event) => void>;
|
|
150
|
+
};
|
|
151
|
+
onMouseup: {
|
|
152
|
+
type: PropType<(e: Event) => void>;
|
|
153
|
+
};
|
|
154
|
+
'onUpdate:checked': {
|
|
155
|
+
type: PropType<(checked: string | number | boolean) => void>;
|
|
156
|
+
};
|
|
157
|
+
onBlur: PropType<FocusEventHandler>;
|
|
158
|
+
onFocus: PropType<FocusEventHandler>;
|
|
159
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
autofocus: boolean;
|
|
162
|
+
loading: boolean;
|
|
163
|
+
checkedValue: string | number | boolean;
|
|
164
|
+
unCheckedValue: string | number | boolean;
|
|
165
|
+
}> | null;
|
|
166
|
+
};
|
|
167
|
+
$slots: Readonly<{
|
|
168
|
+
[name: string]: Slot<any> | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
$root: ComponentPublicInstance | null;
|
|
171
|
+
$parent: ComponentPublicInstance | null;
|
|
172
|
+
$host: Element | null;
|
|
173
|
+
$emit: (event: "update:checked", ...args: any[]) => void;
|
|
174
|
+
$el: any;
|
|
175
|
+
$options: ComponentOptionsBase<Readonly< ApFieldSwitchProps> & Readonly<{
|
|
176
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}>, {
|
|
178
|
+
blur: () => void;
|
|
179
|
+
focus: () => void;
|
|
180
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
|
+
"update:checked": (...args: any[]) => void;
|
|
182
|
+
}, string, {
|
|
183
|
+
size: "small" | "default";
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
loading: boolean;
|
|
186
|
+
emptyText: string;
|
|
187
|
+
checkedValue: string | number | boolean;
|
|
188
|
+
unCheckedValue: string | number | boolean;
|
|
189
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
190
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
191
|
+
created?: (() => void) | (() => void)[];
|
|
192
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
193
|
+
mounted?: (() => void) | (() => void)[];
|
|
194
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
195
|
+
updated?: (() => void) | (() => void)[];
|
|
196
|
+
activated?: (() => void) | (() => void)[];
|
|
197
|
+
deactivated?: (() => void) | (() => void)[];
|
|
198
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
199
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
200
|
+
destroyed?: (() => void) | (() => void)[];
|
|
201
|
+
unmounted?: (() => void) | (() => void)[];
|
|
202
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
203
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
204
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
205
|
+
};
|
|
206
|
+
$forceUpdate: () => void;
|
|
207
|
+
$nextTick: nextTick;
|
|
208
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
209
|
+
} & Readonly<{
|
|
210
|
+
size: "small" | "default";
|
|
211
|
+
disabled: boolean;
|
|
212
|
+
loading: boolean;
|
|
213
|
+
emptyText: string;
|
|
214
|
+
checkedValue: string | number | boolean;
|
|
215
|
+
unCheckedValue: string | number | boolean;
|
|
216
|
+
}> & Omit<Readonly< ApFieldSwitchProps> & Readonly<{
|
|
217
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
218
|
+
}>, "blur" | "focus" | ("size" | "disabled" | "loading" | "emptyText" | "checkedValue" | "unCheckedValue")> & ShallowUnwrapRef<{
|
|
219
|
+
blur: () => void;
|
|
220
|
+
focus: () => void;
|
|
221
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
222
|
+
$slots: Readonly<{
|
|
223
|
+
checkedChildren: any;
|
|
224
|
+
unCheckedChildren: any;
|
|
225
|
+
default: any;
|
|
226
|
+
}> & {
|
|
227
|
+
checkedChildren: any;
|
|
228
|
+
unCheckedChildren: any;
|
|
229
|
+
default: any;
|
|
230
|
+
};
|
|
231
|
+
}) | null;
|
|
232
|
+
};
|
|
17
233
|
rootEl: any;
|
|
18
234
|
};
|
|
19
235
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {
|
|
236
|
+
declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {
|
|
237
|
+
focus: () => void | undefined;
|
|
238
|
+
blur: () => void | undefined;
|
|
239
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSwitchProps> & Readonly<{}>, {
|
|
21
240
|
disabled: boolean;
|
|
22
241
|
required: boolean;
|
|
23
242
|
colon: boolean;
|
|
@@ -26,7 +245,219 @@ declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {}, {}, {}
|
|
|
26
245
|
validateFirst: boolean;
|
|
27
246
|
field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
|
|
28
247
|
valuePropName: string;
|
|
29
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
248
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
249
|
+
switchRef: ({
|
|
250
|
+
$: ComponentInternalInstance;
|
|
251
|
+
$data: {};
|
|
252
|
+
$props: {
|
|
253
|
+
readonly mode?: FieldMode | undefined;
|
|
254
|
+
readonly class?: unknown;
|
|
255
|
+
readonly style?: unknown;
|
|
256
|
+
readonly size?: "small" | "default" | undefined;
|
|
257
|
+
readonly onBlur?: FocusEventHandler | undefined;
|
|
258
|
+
readonly onChange?: ((checked: string | number | boolean, e: Event) => void) | undefined;
|
|
259
|
+
readonly onFocus?: FocusEventHandler | undefined;
|
|
260
|
+
readonly onKeydown?: ((e: Event) => void) | undefined;
|
|
261
|
+
readonly onMouseup?: ((e: Event) => void) | undefined;
|
|
262
|
+
readonly disabled?: boolean | undefined;
|
|
263
|
+
readonly id?: string | undefined;
|
|
264
|
+
readonly prefixCls?: string | undefined;
|
|
265
|
+
readonly autofocus?: boolean | undefined;
|
|
266
|
+
readonly loading?: boolean | undefined;
|
|
267
|
+
readonly tabindex?: string | number | undefined;
|
|
268
|
+
readonly checkedChildren?: any;
|
|
269
|
+
readonly unCheckedChildren?: any;
|
|
270
|
+
readonly checked?: string | number | boolean | undefined;
|
|
271
|
+
readonly checkedValue?: string | number | boolean | undefined;
|
|
272
|
+
readonly unCheckedValue?: string | number | boolean | undefined;
|
|
273
|
+
readonly 'onUpdate:checked'?: (((checked: string | number | boolean) => void) & ((...args: any[]) => any)) | undefined;
|
|
274
|
+
readonly emptyText?: string | undefined;
|
|
275
|
+
readonly onAction?: ((checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>) | undefined;
|
|
276
|
+
readonly confirm?: ( ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig)) | undefined;
|
|
277
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
278
|
+
$attrs: {
|
|
279
|
+
[x: string]: unknown;
|
|
280
|
+
};
|
|
281
|
+
$refs: {
|
|
282
|
+
[x: string]: unknown;
|
|
283
|
+
} & {
|
|
284
|
+
switchRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
285
|
+
id: StringConstructor;
|
|
286
|
+
prefixCls: StringConstructor;
|
|
287
|
+
size: VueTypeDef<"default" | "small">;
|
|
288
|
+
disabled: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: any;
|
|
291
|
+
};
|
|
292
|
+
checkedChildren: VueTypeValidableDef<any>;
|
|
293
|
+
unCheckedChildren: VueTypeValidableDef<any>;
|
|
294
|
+
tabindex: VueTypeDef<string | number>;
|
|
295
|
+
autofocus: {
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
default: any;
|
|
298
|
+
};
|
|
299
|
+
loading: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: any;
|
|
302
|
+
};
|
|
303
|
+
checked: VueTypeDef<string | number | boolean>;
|
|
304
|
+
checkedValue: VueTypeDef<string | number | boolean> & {
|
|
305
|
+
default: string | number | boolean;
|
|
306
|
+
};
|
|
307
|
+
unCheckedValue: VueTypeDef<string | number | boolean> & {
|
|
308
|
+
default: string | number | boolean;
|
|
309
|
+
};
|
|
310
|
+
onChange: {
|
|
311
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
312
|
+
};
|
|
313
|
+
onClick: {
|
|
314
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
315
|
+
};
|
|
316
|
+
onKeydown: {
|
|
317
|
+
type: PropType<(e: Event) => void>;
|
|
318
|
+
};
|
|
319
|
+
onMouseup: {
|
|
320
|
+
type: PropType<(e: Event) => void>;
|
|
321
|
+
};
|
|
322
|
+
'onUpdate:checked': {
|
|
323
|
+
type: PropType<(checked: string | number | boolean) => void>;
|
|
324
|
+
};
|
|
325
|
+
onBlur: PropType<FocusEventHandler>;
|
|
326
|
+
onFocus: PropType<FocusEventHandler>;
|
|
327
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
328
|
+
disabled: boolean;
|
|
329
|
+
autofocus: boolean;
|
|
330
|
+
loading: boolean;
|
|
331
|
+
checkedValue: string | number | boolean;
|
|
332
|
+
unCheckedValue: string | number | boolean;
|
|
333
|
+
}, true, {}, CustomSlotsType<{
|
|
334
|
+
checkedChildren: any;
|
|
335
|
+
unCheckedChildren: any;
|
|
336
|
+
default: any;
|
|
337
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
338
|
+
P: {};
|
|
339
|
+
B: {};
|
|
340
|
+
D: {};
|
|
341
|
+
C: {};
|
|
342
|
+
M: {};
|
|
343
|
+
Defaults: {};
|
|
344
|
+
}, Readonly< ExtractPropTypes<{
|
|
345
|
+
id: StringConstructor;
|
|
346
|
+
prefixCls: StringConstructor;
|
|
347
|
+
size: VueTypeDef<"default" | "small">;
|
|
348
|
+
disabled: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: any;
|
|
351
|
+
};
|
|
352
|
+
checkedChildren: VueTypeValidableDef<any>;
|
|
353
|
+
unCheckedChildren: VueTypeValidableDef<any>;
|
|
354
|
+
tabindex: VueTypeDef<string | number>;
|
|
355
|
+
autofocus: {
|
|
356
|
+
type: BooleanConstructor;
|
|
357
|
+
default: any;
|
|
358
|
+
};
|
|
359
|
+
loading: {
|
|
360
|
+
type: BooleanConstructor;
|
|
361
|
+
default: any;
|
|
362
|
+
};
|
|
363
|
+
checked: VueTypeDef<string | number | boolean>;
|
|
364
|
+
checkedValue: VueTypeDef<string | number | boolean> & {
|
|
365
|
+
default: string | number | boolean;
|
|
366
|
+
};
|
|
367
|
+
unCheckedValue: VueTypeDef<string | number | boolean> & {
|
|
368
|
+
default: string | number | boolean;
|
|
369
|
+
};
|
|
370
|
+
onChange: {
|
|
371
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
372
|
+
};
|
|
373
|
+
onClick: {
|
|
374
|
+
type: PropType<(checked: string | number | boolean, e: Event) => void>;
|
|
375
|
+
};
|
|
376
|
+
onKeydown: {
|
|
377
|
+
type: PropType<(e: Event) => void>;
|
|
378
|
+
};
|
|
379
|
+
onMouseup: {
|
|
380
|
+
type: PropType<(e: Event) => void>;
|
|
381
|
+
};
|
|
382
|
+
'onUpdate:checked': {
|
|
383
|
+
type: PropType<(checked: string | number | boolean) => void>;
|
|
384
|
+
};
|
|
385
|
+
onBlur: PropType<FocusEventHandler>;
|
|
386
|
+
onFocus: PropType<FocusEventHandler>;
|
|
387
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
388
|
+
disabled: boolean;
|
|
389
|
+
autofocus: boolean;
|
|
390
|
+
loading: boolean;
|
|
391
|
+
checkedValue: string | number | boolean;
|
|
392
|
+
unCheckedValue: string | number | boolean;
|
|
393
|
+
}> | null;
|
|
394
|
+
};
|
|
395
|
+
$slots: Readonly<{
|
|
396
|
+
[name: string]: Slot<any> | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
$root: ComponentPublicInstance | null;
|
|
399
|
+
$parent: ComponentPublicInstance | null;
|
|
400
|
+
$host: Element | null;
|
|
401
|
+
$emit: (event: "update:checked", ...args: any[]) => void;
|
|
402
|
+
$el: any;
|
|
403
|
+
$options: ComponentOptionsBase<Readonly< ApFieldSwitchProps> & Readonly<{
|
|
404
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
405
|
+
}>, {
|
|
406
|
+
blur: () => void;
|
|
407
|
+
focus: () => void;
|
|
408
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
409
|
+
"update:checked": (...args: any[]) => void;
|
|
410
|
+
}, string, {
|
|
411
|
+
size: "small" | "default";
|
|
412
|
+
disabled: boolean;
|
|
413
|
+
loading: boolean;
|
|
414
|
+
emptyText: string;
|
|
415
|
+
checkedValue: string | number | boolean;
|
|
416
|
+
unCheckedValue: string | number | boolean;
|
|
417
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
418
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
419
|
+
created?: (() => void) | (() => void)[];
|
|
420
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
421
|
+
mounted?: (() => void) | (() => void)[];
|
|
422
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
423
|
+
updated?: (() => void) | (() => void)[];
|
|
424
|
+
activated?: (() => void) | (() => void)[];
|
|
425
|
+
deactivated?: (() => void) | (() => void)[];
|
|
426
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
427
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
428
|
+
destroyed?: (() => void) | (() => void)[];
|
|
429
|
+
unmounted?: (() => void) | (() => void)[];
|
|
430
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
431
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
432
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
433
|
+
};
|
|
434
|
+
$forceUpdate: () => void;
|
|
435
|
+
$nextTick: nextTick;
|
|
436
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
437
|
+
} & Readonly<{
|
|
438
|
+
size: "small" | "default";
|
|
439
|
+
disabled: boolean;
|
|
440
|
+
loading: boolean;
|
|
441
|
+
emptyText: string;
|
|
442
|
+
checkedValue: string | number | boolean;
|
|
443
|
+
unCheckedValue: string | number | boolean;
|
|
444
|
+
}> & Omit<Readonly< ApFieldSwitchProps> & Readonly<{
|
|
445
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
446
|
+
}>, "blur" | "focus" | ("size" | "disabled" | "loading" | "emptyText" | "checkedValue" | "unCheckedValue")> & ShallowUnwrapRef<{
|
|
447
|
+
blur: () => void;
|
|
448
|
+
focus: () => void;
|
|
449
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
450
|
+
$slots: Readonly<{
|
|
451
|
+
checkedChildren: any;
|
|
452
|
+
unCheckedChildren: any;
|
|
453
|
+
default: any;
|
|
454
|
+
}> & {
|
|
455
|
+
checkedChildren: any;
|
|
456
|
+
unCheckedChildren: any;
|
|
457
|
+
default: any;
|
|
458
|
+
};
|
|
459
|
+
}) | null;
|
|
460
|
+
}, any>;
|
|
30
461
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
462
|
export default _default;
|
|
32
463
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as v, useSlots as y, ref as B, createBlock as g, openBlock as x, normalizeProps as r, guardReactiveProps as s, unref as o, createSlots as d, withCtx as i, createVNode as k, mergeProps as F, renderList as p, renderSlot as f } from "vue";
|
|
2
|
+
import { omit as u, pick as S } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
6
|
+
import w from "../../item/index.vue.mjs";
|
|
7
|
+
import C from "../../../ap-field/switch/index.vue.mjs";
|
|
8
|
+
const q = /* @__PURE__ */ v({
|
|
9
9
|
name: "ApFormItemSwitch",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -53,30 +53,37 @@ const I = /* @__PURE__ */ _({
|
|
|
53
53
|
autoFocus: { type: Boolean },
|
|
54
54
|
field: { default: () => ({}) }
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const c =
|
|
58
|
-
return (
|
|
56
|
+
setup(c, { expose: b }) {
|
|
57
|
+
const _ = c, n = y(), a = B();
|
|
58
|
+
return b({
|
|
59
|
+
focus: () => a.value?.focus(),
|
|
60
|
+
blur: () => a.value?.blur()
|
|
61
|
+
}), (l, P) => (x(), g(w, r(s(o(u)(_, ["field", "disabled"]))), d({
|
|
59
62
|
default: i(() => [
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
k(C, F({
|
|
64
|
+
ref_key: "switchRef",
|
|
65
|
+
ref: a,
|
|
66
|
+
disabled: l.disabled
|
|
67
|
+
}, l.field), d({ _: 2 }, [
|
|
68
|
+
p(o(u)(n, o(m)), (h, e) => ({
|
|
62
69
|
name: e,
|
|
63
|
-
fn: i((
|
|
64
|
-
|
|
70
|
+
fn: i((t) => [
|
|
71
|
+
f(l.$slots, e, r(s(t || {})))
|
|
65
72
|
])
|
|
66
73
|
}))
|
|
67
74
|
]), 1040, ["disabled"])
|
|
68
75
|
]),
|
|
69
76
|
_: 2
|
|
70
77
|
}, [
|
|
71
|
-
|
|
78
|
+
p(o(S)(n, o(m)), (h, e) => ({
|
|
72
79
|
name: e,
|
|
73
|
-
fn: i((
|
|
74
|
-
|
|
80
|
+
fn: i((t) => [
|
|
81
|
+
f(l.$slots, e, r(s(t || {})))
|
|
75
82
|
])
|
|
76
83
|
}))
|
|
77
84
|
]), 1040));
|
|
78
85
|
}
|
|
79
86
|
});
|
|
80
87
|
export {
|
|
81
|
-
|
|
88
|
+
q as default
|
|
82
89
|
};
|
|
@@ -101,8 +101,8 @@ declare function __VLS_template(): {
|
|
|
101
101
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
102
102
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
}>, {
|
|
104
|
-
focus: () => void;
|
|
105
104
|
blur: () => void;
|
|
105
|
+
focus: () => void;
|
|
106
106
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
107
107
|
"update:value": (...args: any[]) => void;
|
|
108
108
|
"update:visible": (...args: any[]) => void;
|
|
@@ -152,8 +152,8 @@ declare function __VLS_template(): {
|
|
|
152
152
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
153
153
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
154
154
|
}>, "blur" | "focus" | ("type" | "mode" | "visible" | "disabled" | "lazy" | "bordered" | "allowClear" | "emptyText" | "action" | "visibilityToggle")> & ShallowUnwrapRef<{
|
|
155
|
-
focus: () => void;
|
|
156
155
|
blur: () => void;
|
|
156
|
+
focus: () => void;
|
|
157
157
|
}> & {} & ComponentCustomProperties & {} & {
|
|
158
158
|
$slots: Readonly<{
|
|
159
159
|
addonAfter: any;
|
|
@@ -176,8 +176,8 @@ declare function __VLS_template(): {
|
|
|
176
176
|
};
|
|
177
177
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
178
178
|
declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
179
|
-
focus: () => void;
|
|
180
179
|
blur: () => void;
|
|
180
|
+
focus: () => void;
|
|
181
181
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextPasswordProps> & Readonly<{}>, {
|
|
182
182
|
disabled: boolean;
|
|
183
183
|
required: boolean;
|
|
@@ -264,8 +264,8 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
264
264
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
265
265
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
focus: () => void;
|
|
268
267
|
blur: () => void;
|
|
268
|
+
focus: () => void;
|
|
269
269
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
270
270
|
"update:value": (...args: any[]) => void;
|
|
271
271
|
"update:visible": (...args: any[]) => void;
|
|
@@ -315,8 +315,8 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
315
315
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
316
316
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
317
317
|
}>, "blur" | "focus" | ("type" | "mode" | "visible" | "disabled" | "lazy" | "bordered" | "allowClear" | "emptyText" | "action" | "visibilityToggle")> & ShallowUnwrapRef<{
|
|
318
|
-
focus: () => void;
|
|
319
318
|
blur: () => void;
|
|
319
|
+
focus: () => void;
|
|
320
320
|
}> & {} & ComponentCustomProperties & {} & {
|
|
321
321
|
$slots: Readonly<{
|
|
322
322
|
addonAfter: any;
|
|
@@ -17,8 +17,8 @@ declare function __VLS_template(): {
|
|
|
17
17
|
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextAreaProps> & Readonly<{
|
|
18
18
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
focus: (options?: InputFocusOptions) => void;
|
|
21
20
|
blur: () => void;
|
|
21
|
+
focus: (options?: InputFocusOptions) => void;
|
|
22
22
|
resizableTextArea: any;
|
|
23
23
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
24
|
"update:value": (...args: any[]) => void;
|
|
@@ -312,8 +312,8 @@ declare function __VLS_template(): {
|
|
|
312
312
|
}, Readonly< ApFieldTextAreaProps> & Readonly<{
|
|
313
313
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
314
314
|
}>, {
|
|
315
|
-
focus: (options?: InputFocusOptions) => void;
|
|
316
315
|
blur: () => void;
|
|
316
|
+
focus: (options?: InputFocusOptions) => void;
|
|
317
317
|
resizableTextArea: any;
|
|
318
318
|
}, {}, {}, {}, {
|
|
319
319
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "url" | "email" | "datetime-local" | "file" | "password" | "tel";
|
|
@@ -332,8 +332,8 @@ declare function __VLS_template(): {
|
|
|
332
332
|
};
|
|
333
333
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
334
334
|
declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
335
|
-
focus: (options?: InputFocusOptions) => void;
|
|
336
335
|
blur: () => void;
|
|
336
|
+
focus: (options?: InputFocusOptions) => void;
|
|
337
337
|
resizableTextArea: any;
|
|
338
338
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextAreaProps> & Readonly<{}>, {
|
|
339
339
|
disabled: boolean;
|
|
@@ -347,8 +347,8 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
347
347
|
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextAreaProps> & Readonly<{
|
|
348
348
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
349
349
|
}>, {
|
|
350
|
-
focus: (options?: InputFocusOptions) => void;
|
|
351
350
|
blur: () => void;
|
|
351
|
+
focus: (options?: InputFocusOptions) => void;
|
|
352
352
|
resizableTextArea: any;
|
|
353
353
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
354
354
|
"update:value": (...args: any[]) => void;
|
|
@@ -642,8 +642,8 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
642
642
|
}, Readonly< ApFieldTextAreaProps> & Readonly<{
|
|
643
643
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
644
644
|
}>, {
|
|
645
|
-
focus: (options?: InputFocusOptions) => void;
|
|
646
645
|
blur: () => void;
|
|
646
|
+
focus: (options?: InputFocusOptions) => void;
|
|
647
647
|
resizableTextArea: any;
|
|
648
648
|
}, {}, {}, {}, {
|
|
649
649
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "url" | "email" | "datetime-local" | "file" | "password" | "tel";
|