vft 0.0.392 → 0.0.394
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/components/autocomplete/autocomplete.vue.d.ts +3 -3
- package/es/components/autocomplete/index.d.ts +7 -7
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +12 -12
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +27 -27
- package/es/components/color-picker/index.d.ts +6 -6
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker.d.ts +3 -3
- package/es/components/date-picker/date-picker.js +8 -8
- package/es/components/date-picker/index.d.ts +6 -6
- package/es/components/date-picker/panel-utils.d.ts +6 -6
- package/es/components/date-picker/props/date-picker.d.ts +1 -1
- package/es/components/date-picker/props/panel-date-pick.d.ts +1 -1
- package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +9 -9
- package/es/components/form/index.d.ts +18 -18
- package/es/components/index.js +155 -163
- package/es/components/input/index.d.ts +5 -5
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-number/index.d.ts +1 -1
- package/es/components/input-number/input-number.vue.d.ts +1 -1
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue.d.ts +4 -4
- package/es/components/radio/index.d.ts +18 -18
- package/es/components/search/index.d.ts +3 -3
- package/es/components/search/search.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +2 -2
- package/es/components/select/select.vue.d.ts +2 -2
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/super-form/component-map.d.ts +4 -45
- package/es/components/super-form/component-map.js +30 -60
- package/es/components/super-form/index.js +12 -20
- package/es/components/super-form/super-form-item.vue2.js +7 -6
- package/es/components/super-form/types.d.ts +3 -3
- package/es/components/super-form/types.js +5 -1
- package/es/components/super-form/use/helper.d.ts +3 -3
- package/es/components/super-form/use/helper.js +37 -32
- package/es/components/super-form/use/use-auto-focus.js +18 -14
- package/es/components/super-form/use/use-form-events.js +84 -81
- package/es/components/switch/index.d.ts +6 -6
- package/es/components/table/index.d.ts +9 -9
- package/es/components/table/table.vue2.js +22 -22
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/tabs.vue.d.ts +2 -2
- package/es/components/time-picker/common/picker.vue.d.ts +2 -2
- package/es/components/time-picker/time-picker.js +1 -1
- package/es/components/time-select/time-select.vue2.js +1 -1
- package/es/components/tree/tree-node.vue.d.ts +18 -18
- package/es/index.js +2 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +43 -0
- package/es/utils/form-register.js +68 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +80 -71
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -3
- package/lib/components/autocomplete/index.d.ts +7 -7
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +12 -12
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/cascader/cascader.vue.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +27 -27
- package/lib/components/color-picker/index.d.ts +6 -6
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +6 -6
- package/lib/components/date-picker/panel-utils.d.ts +6 -6
- package/lib/components/date-picker/props/date-picker.d.ts +1 -1
- package/lib/components/date-picker/props/panel-date-pick.d.ts +1 -1
- package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +9 -9
- package/lib/components/form/index.d.ts +18 -18
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +5 -5
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +1 -1
- package/lib/components/input-number/input-number.vue.d.ts +1 -1
- package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
- package/lib/components/radio/index.d.ts +18 -18
- package/lib/components/search/index.d.ts +3 -3
- package/lib/components/search/search.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +2 -2
- package/lib/components/select/select.vue.d.ts +2 -2
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/component-map.d.ts +4 -45
- package/lib/components/super-form/index.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/types.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -3
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/helper.d.ts +3 -3
- package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/switch/index.d.ts +6 -6
- package/lib/components/table/index.d.ts +9 -9
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/tabs.vue.d.ts +2 -2
- package/lib/components/time-picker/common/picker.vue.d.ts +2 -2
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +18 -18
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -0
- package/lib/utils/form-register.d.ts +43 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -74,9 +74,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
74
74
|
/** @description remove focus the input component */
|
|
75
75
|
blur: () => void;
|
|
76
76
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
+
input: (val: number | null | undefined) => void;
|
|
77
78
|
"update:modelValue": (val: number | undefined) => void;
|
|
78
79
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
79
|
-
input: (val: number | null | undefined) => void;
|
|
80
80
|
blur: (e: FocusEvent) => void;
|
|
81
81
|
focus: (e: FocusEvent) => void;
|
|
82
82
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
|
|
2
2
|
import { EVENT_CODE as g } from "../../../constants/aria.js";
|
|
3
|
-
import { CHANGE_EVENT as i,
|
|
3
|
+
import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { isUndefined as K } from "@vft/utils";
|
|
6
6
|
import { debugWarn as C } from "../../../utils/error.js";
|
|
@@ -57,10 +57,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
57
57
|
focus: () => void;
|
|
58
58
|
blur: () => void;
|
|
59
59
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
-
"update:modelValue": (value?: string[] | undefined) => void;
|
|
61
|
-
change: (value?: string[] | undefined) => void;
|
|
62
60
|
input: (value: string) => void;
|
|
63
61
|
clear: () => void;
|
|
62
|
+
"update:modelValue": (value?: string[] | undefined) => void;
|
|
63
|
+
change: (value?: string[] | undefined) => void;
|
|
64
64
|
blur: (evt: FocusEvent) => void;
|
|
65
65
|
focus: (evt: FocusEvent) => void;
|
|
66
66
|
"remove-tag": (value: string) => void;
|
|
@@ -114,14 +114,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
114
114
|
readonly ariaLabel: StringConstructor;
|
|
115
115
|
}>> & Readonly<{
|
|
116
116
|
onInput?: ((value: string) => any) | undefined;
|
|
117
|
+
onClear?: (() => any) | undefined;
|
|
117
118
|
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
118
119
|
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
119
|
-
onClear?: (() => any) | undefined;
|
|
120
120
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
121
121
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
122
122
|
"onRemove-tag"?: ((value: string) => any) | undefined;
|
|
123
123
|
"onAdd-tag"?: ((value: string | string[]) => any) | undefined;
|
|
124
124
|
}>, {
|
|
125
|
+
readonly autocomplete: string;
|
|
125
126
|
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
127
|
readonly draggable: boolean;
|
|
127
128
|
readonly id: string;
|
|
@@ -130,7 +131,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
130
131
|
readonly trigger: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown>;
|
|
131
132
|
readonly readonly: boolean;
|
|
132
133
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
133
|
-
readonly autocomplete: string;
|
|
134
134
|
readonly clearable: boolean;
|
|
135
135
|
readonly tagType: string;
|
|
136
136
|
readonly delimiter: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, RegExpConstructor], unknown, unknown>;
|
|
@@ -190,6 +190,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
190
190
|
});
|
|
191
191
|
RadioGroup: {
|
|
192
192
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
+
size: {
|
|
194
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
195
|
+
};
|
|
193
196
|
label: {
|
|
194
197
|
type: import("vue").PropType<string>;
|
|
195
198
|
};
|
|
@@ -205,9 +208,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
205
208
|
id: {
|
|
206
209
|
type: import("vue").PropType<string>;
|
|
207
210
|
};
|
|
208
|
-
size: {
|
|
209
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
210
|
-
};
|
|
211
211
|
modelValue: {
|
|
212
212
|
type: import("vue").PropType<string | number | boolean>;
|
|
213
213
|
};
|
|
@@ -240,6 +240,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
240
240
|
M: {};
|
|
241
241
|
Defaults: {};
|
|
242
242
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
243
|
+
size: {
|
|
244
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
245
|
+
};
|
|
243
246
|
label: {
|
|
244
247
|
type: import("vue").PropType<string>;
|
|
245
248
|
};
|
|
@@ -255,9 +258,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
255
258
|
id: {
|
|
256
259
|
type: import("vue").PropType<string>;
|
|
257
260
|
};
|
|
258
|
-
size: {
|
|
259
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
260
|
-
};
|
|
261
261
|
modelValue: {
|
|
262
262
|
type: import("vue").PropType<string | number | boolean>;
|
|
263
263
|
};
|
|
@@ -284,6 +284,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
284
284
|
__isTeleport?: never;
|
|
285
285
|
__isSuspense?: never;
|
|
286
286
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
287
|
+
size: {
|
|
288
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
289
|
+
};
|
|
287
290
|
label: {
|
|
288
291
|
type: import("vue").PropType<string>;
|
|
289
292
|
};
|
|
@@ -299,9 +302,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
299
302
|
id: {
|
|
300
303
|
type: import("vue").PropType<string>;
|
|
301
304
|
};
|
|
302
|
-
size: {
|
|
303
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
304
|
-
};
|
|
305
305
|
modelValue: {
|
|
306
306
|
type: import("vue").PropType<string | number | boolean>;
|
|
307
307
|
};
|
|
@@ -334,6 +334,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
334
334
|
};
|
|
335
335
|
export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
336
336
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
337
|
+
size: {
|
|
338
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
339
|
+
};
|
|
337
340
|
label: {
|
|
338
341
|
type: import("vue").PropType<string>;
|
|
339
342
|
};
|
|
@@ -349,9 +352,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
349
352
|
id: {
|
|
350
353
|
type: import("vue").PropType<string>;
|
|
351
354
|
};
|
|
352
|
-
size: {
|
|
353
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
354
|
-
};
|
|
355
355
|
modelValue: {
|
|
356
356
|
type: import("vue").PropType<string | number | boolean>;
|
|
357
357
|
};
|
|
@@ -384,6 +384,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
384
384
|
M: {};
|
|
385
385
|
Defaults: {};
|
|
386
386
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
387
|
+
size: {
|
|
388
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
389
|
+
};
|
|
387
390
|
label: {
|
|
388
391
|
type: import("vue").PropType<string>;
|
|
389
392
|
};
|
|
@@ -399,9 +402,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
399
402
|
id: {
|
|
400
403
|
type: import("vue").PropType<string>;
|
|
401
404
|
};
|
|
402
|
-
size: {
|
|
403
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
404
|
-
};
|
|
405
405
|
modelValue: {
|
|
406
406
|
type: import("vue").PropType<string | number | boolean>;
|
|
407
407
|
};
|
|
@@ -428,6 +428,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
428
428
|
__isTeleport?: never;
|
|
429
429
|
__isSuspense?: never;
|
|
430
430
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
431
|
+
size: {
|
|
432
|
+
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
433
|
+
};
|
|
431
434
|
label: {
|
|
432
435
|
type: import("vue").PropType<string>;
|
|
433
436
|
};
|
|
@@ -443,9 +446,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
443
446
|
id: {
|
|
444
447
|
type: import("vue").PropType<string>;
|
|
445
448
|
};
|
|
446
|
-
size: {
|
|
447
|
-
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
448
|
-
};
|
|
449
449
|
modelValue: {
|
|
450
450
|
type: import("vue").PropType<string | number | boolean>;
|
|
451
451
|
};
|
|
@@ -33,9 +33,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
33
33
|
};
|
|
34
34
|
}>> & Readonly<{
|
|
35
35
|
onInput?: ((val: string | number) => any) | undefined;
|
|
36
|
+
onClear?: (() => any) | undefined;
|
|
36
37
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
37
38
|
onChange?: ((val: string | number) => any) | undefined;
|
|
38
|
-
onClear?: (() => any) | undefined;
|
|
39
39
|
onBlur?: (() => any) | undefined;
|
|
40
40
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
41
41
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -109,9 +109,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
109
109
|
};
|
|
110
110
|
}>> & Readonly<{
|
|
111
111
|
onInput?: ((val: string | number) => any) | undefined;
|
|
112
|
+
onClear?: (() => any) | undefined;
|
|
112
113
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
113
114
|
onChange?: ((val: string | number) => any) | undefined;
|
|
114
|
-
onClear?: (() => any) | undefined;
|
|
115
115
|
onBlur?: (() => any) | undefined;
|
|
116
116
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
117
117
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -166,9 +166,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
166
166
|
};
|
|
167
167
|
}>> & Readonly<{
|
|
168
168
|
onInput?: ((val: string | number) => any) | undefined;
|
|
169
|
+
onClear?: (() => any) | undefined;
|
|
169
170
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
170
171
|
onChange?: ((val: string | number) => any) | undefined;
|
|
171
|
-
onClear?: (() => any) | undefined;
|
|
172
172
|
onBlur?: (() => any) | undefined;
|
|
173
173
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
174
174
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -44,9 +44,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
44
44
|
compositionend: (evt: CompositionEvent) => void;
|
|
45
45
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps & _InputProps>>> & Readonly<{
|
|
46
46
|
onInput?: ((val: string | number) => any) | undefined;
|
|
47
|
+
onClear?: (() => any) | undefined;
|
|
47
48
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
48
49
|
onChange?: ((val: string | number) => any) | undefined;
|
|
49
|
-
onClear?: (() => any) | undefined;
|
|
50
50
|
onBlur?: (() => any) | undefined;
|
|
51
51
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
52
52
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -2107,14 +2107,15 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
2107
2107
|
validator(val: any): val is number | boolean;
|
|
2108
2108
|
};
|
|
2109
2109
|
}>> & Readonly<{
|
|
2110
|
+
onClear?: (() => any) | undefined;
|
|
2110
2111
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
2111
2112
|
onChange?: ((val: any) => any) | undefined;
|
|
2112
|
-
onClear?: (() => any) | undefined;
|
|
2113
2113
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
2114
2114
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
2115
2115
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
2116
2116
|
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
2117
2117
|
}>, {
|
|
2118
|
+
autocomplete: "both" | "none" | "inline" | "list";
|
|
2118
2119
|
disabled: boolean;
|
|
2119
2120
|
height: number;
|
|
2120
2121
|
offset: number;
|
|
@@ -2126,7 +2127,6 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
2126
2127
|
loading: boolean;
|
|
2127
2128
|
multiple: boolean;
|
|
2128
2129
|
validateEvent: boolean;
|
|
2129
|
-
autocomplete: "both" | "none" | "inline" | "list";
|
|
2130
2130
|
clearable: boolean;
|
|
2131
2131
|
clearIcon: string;
|
|
2132
2132
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -2103,14 +2103,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2103
2103
|
validator(val: any): val is number | boolean;
|
|
2104
2104
|
};
|
|
2105
2105
|
}>> & Readonly<{
|
|
2106
|
+
onClear?: (() => any) | undefined;
|
|
2106
2107
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
2107
2108
|
onChange?: ((val: any) => any) | undefined;
|
|
2108
|
-
onClear?: (() => any) | undefined;
|
|
2109
2109
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
2110
2110
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
2111
2111
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
2112
2112
|
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
2113
2113
|
}>, {
|
|
2114
|
+
autocomplete: "both" | "none" | "inline" | "list";
|
|
2114
2115
|
disabled: boolean;
|
|
2115
2116
|
height: number;
|
|
2116
2117
|
offset: number;
|
|
@@ -2122,7 +2123,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2122
2123
|
loading: boolean;
|
|
2123
2124
|
multiple: boolean;
|
|
2124
2125
|
validateEvent: boolean;
|
|
2125
|
-
autocomplete: "both" | "none" | "inline" | "list";
|
|
2126
2126
|
clearable: boolean;
|
|
2127
2127
|
clearIcon: string;
|
|
2128
2128
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -80,9 +80,9 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
80
80
|
}>, {
|
|
81
81
|
onSliderClick: (event: MouseEvent | TouchEvent) => void;
|
|
82
82
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
|
+
input: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
83
84
|
"update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
84
85
|
change: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
85
|
-
input: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
87
|
modelValue: {
|
|
88
88
|
type: import("vue").PropType<number | number[]>;
|
|
@@ -31,9 +31,9 @@ export interface SliderProps {
|
|
|
31
31
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>, {
|
|
32
32
|
onSliderClick: (event: MouseEvent | TouchEvent) => void;
|
|
33
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
input: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
34
35
|
"update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
35
36
|
change: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
36
|
-
input: (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>> & Readonly<{
|
|
38
38
|
onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
39
39
|
"onUpdate:modelValue"?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
@@ -1,46 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ColorPicker = "colorPicker",
|
|
6
|
-
INPUT = "input",
|
|
7
|
-
INPUT_NUMBER = "input-number",
|
|
8
|
-
INPUT_NUMBER_STEP = "input-number-step",
|
|
9
|
-
INPUT_TAG = "input-tag",
|
|
10
|
-
PASSWORD = "password",
|
|
11
|
-
TEXTAREA = "textarea",
|
|
12
|
-
Slider = "slider",
|
|
13
|
-
DIVIDER = "divider",
|
|
14
|
-
SELECT = "select",
|
|
15
|
-
SEARCH = "search",
|
|
16
|
-
RADIO = "radio",
|
|
17
|
-
RADIO_SINGLE = "radio_single",
|
|
18
|
-
RADIO_BUTTON = "radio-button",
|
|
19
|
-
CHECKBOX = "checkbox",
|
|
20
|
-
CHECKBOX_SINGLE = "checkbox_single",
|
|
21
|
-
CHECKBOX_BUTTON = "checkbox-button",
|
|
22
|
-
SWITCH = "switch",
|
|
23
|
-
Upload = "upload",
|
|
24
|
-
TIME_PICKER = "time-picker",
|
|
25
|
-
TIMERANGE_PICKER = "time-picker",
|
|
26
|
-
YEAR_PICKER = "year",
|
|
27
|
-
MONTH_PICKER = "month",
|
|
28
|
-
DATE_PICKER = "date",
|
|
29
|
-
DATES_PICKER = "dates",
|
|
30
|
-
DATETIME_PICKER = "datetime",
|
|
31
|
-
WEEK_PICKER = "week",
|
|
32
|
-
DATETIMERANGE_PICKER = "datetimerange",
|
|
33
|
-
DATERANGE_PICKER = "daterange",
|
|
34
|
-
MONTHRANGE_PICKER = "monthrange"
|
|
35
|
-
}
|
|
36
|
-
export declare function registerComponent(compName: FormCompEnum | string, component: Component): void;
|
|
37
|
-
export declare function registerComponents(components: Record<string, Component>): void;
|
|
38
|
-
export declare function getComponent(compName: FormCompEnum): Component | undefined;
|
|
39
|
-
export declare function removeComponent(compName: FormCompEnum): void;
|
|
40
|
-
export declare function hasComponent(compName: FormCompEnum): boolean;
|
|
41
|
-
export declare function getRegisteredComponents(): FormCompEnum[];
|
|
42
|
-
export declare function clearComponents(): void;
|
|
43
|
-
declare const isRangePicker: (type: FormCompEnum) => boolean;
|
|
44
|
-
declare const isInput: (type: FormCompEnum) => boolean;
|
|
45
|
-
declare const isDatePicker: (type: FormCompEnum) => boolean;
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
|
+
declare const isRangePicker: (type: FormCompEnumType) => boolean;
|
|
3
|
+
declare const isInput: (type: FormCompEnumType) => boolean;
|
|
4
|
+
declare const isDatePicker: (type: FormCompEnumType) => boolean;
|
|
46
5
|
export { isDatePicker, isInput, isRangePicker };
|
|
@@ -1,62 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"daterange",
|
|
29
|
-
"monthrange"
|
|
30
|
-
/* MONTHRANGE_PICKER */
|
|
31
|
-
].includes(e), _ = (e) => [
|
|
32
|
-
"input",
|
|
33
|
-
"input-number",
|
|
34
|
-
"password",
|
|
35
|
-
"textarea",
|
|
36
|
-
"search"
|
|
37
|
-
/* SEARCH */
|
|
38
|
-
].includes(e), A = (e) => [
|
|
39
|
-
"year",
|
|
40
|
-
"month",
|
|
41
|
-
"date",
|
|
42
|
-
"dates",
|
|
43
|
-
"datetime",
|
|
44
|
-
"week",
|
|
45
|
-
"datetimerange",
|
|
46
|
-
"daterange",
|
|
47
|
-
"monthrange"
|
|
48
|
-
/* MONTHRANGE_PICKER */
|
|
49
|
-
].includes(e);
|
|
1
|
+
import { FormCompEnum as E } from "../../utils/form-register.js";
|
|
2
|
+
import "@vueuse/core";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "../config-provider/hooks/use-global-config.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
const i = (R) => [
|
|
8
|
+
E.DATETIMERANGE_PICKER,
|
|
9
|
+
E.DATERANGE_PICKER,
|
|
10
|
+
E.MONTHRANGE_PICKER
|
|
11
|
+
].includes(R), C = (R) => [
|
|
12
|
+
E.INPUT,
|
|
13
|
+
E.INPUT_NUMBER,
|
|
14
|
+
E.PASSWORD,
|
|
15
|
+
E.TEXTAREA,
|
|
16
|
+
E.SEARCH
|
|
17
|
+
].includes(R), o = (R) => [
|
|
18
|
+
E.YEAR_PICKER,
|
|
19
|
+
E.MONTH_PICKER,
|
|
20
|
+
E.DATE_PICKER,
|
|
21
|
+
E.DATES_PICKER,
|
|
22
|
+
E.DATETIME_PICKER,
|
|
23
|
+
E.WEEK_PICKER,
|
|
24
|
+
E.DATETIMERANGE_PICKER,
|
|
25
|
+
E.DATERANGE_PICKER,
|
|
26
|
+
E.MONTHRANGE_PICKER
|
|
27
|
+
].includes(R);
|
|
50
28
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
R as getRegisteredComponents,
|
|
55
|
-
I as hasComponent,
|
|
56
|
-
A as isDatePicker,
|
|
57
|
-
_ as isInput,
|
|
58
|
-
P as isRangePicker,
|
|
59
|
-
c as registerComponent,
|
|
60
|
-
s as registerComponents,
|
|
61
|
-
d as removeComponent
|
|
29
|
+
o as isDatePicker,
|
|
30
|
+
C as isInput,
|
|
31
|
+
i as isRangePicker
|
|
62
32
|
};
|
|
@@ -2,26 +2,18 @@ import "@vueuse/core";
|
|
|
2
2
|
import "@vft/utils";
|
|
3
3
|
import "../config-provider/hooks/use-global-config.js";
|
|
4
4
|
import "vue";
|
|
5
|
-
import { withInstall as
|
|
5
|
+
import { withInstall as r } from "../../utils/vue/install.js";
|
|
6
6
|
import "lodash-es";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { getDynamicProps as
|
|
10
|
-
const
|
|
7
|
+
import o from "./super-form.vue2.js";
|
|
8
|
+
import { isDatePicker as u, isInput as l, isRangePicker as x } from "./component-map.js";
|
|
9
|
+
import { getDynamicProps as g, useForm as k } from "./use/use-form.js";
|
|
10
|
+
const f = r(o);
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
x as hasComponent,
|
|
20
|
-
F as isDatePicker,
|
|
21
|
-
P as isInput,
|
|
22
|
-
d as isRangePicker,
|
|
23
|
-
h as registerComponent,
|
|
24
|
-
k as registerComponents,
|
|
25
|
-
D as removeComponent,
|
|
26
|
-
_ as useForm
|
|
12
|
+
f as VftSuperForm,
|
|
13
|
+
f as default,
|
|
14
|
+
g as getDynamicProps,
|
|
15
|
+
u as isDatePicker,
|
|
16
|
+
l as isInput,
|
|
17
|
+
x as isRangePicker,
|
|
18
|
+
k as useForm
|
|
27
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne,
|
|
1
|
+
import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne, createTextVNode as G, isVNode as le, resolveComponent as V } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../avatar-stack/index.js";
|
|
@@ -98,6 +98,7 @@ import "../md-container/index.js";
|
|
|
98
98
|
import "../md-tabs/index.js";
|
|
99
99
|
import "../md-vue-playground/index.js";
|
|
100
100
|
import "../infinite-scroll/index.js";
|
|
101
|
+
import { FormCompEnum as e, getComponent as $ } from "../../utils/form-register.js";
|
|
101
102
|
import "@vueuse/core";
|
|
102
103
|
import "../config-provider/hooks/use-global-config.js";
|
|
103
104
|
import "lodash-es";
|
|
@@ -108,14 +109,14 @@ import "../../hooks/use-z-index/index.js";
|
|
|
108
109
|
import "../message/index.js";
|
|
109
110
|
import "../progress-i/index.js";
|
|
110
111
|
import "./index.js";
|
|
111
|
-
import {
|
|
112
|
+
import { isRangePicker as he, isInput as Ee, isDatePicker as Pe } from "./component-map.js";
|
|
112
113
|
import { createPlaceholderMessage as Y } from "./use/helper.js";
|
|
113
114
|
function q(o) {
|
|
114
115
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
|
|
115
116
|
}
|
|
116
117
|
const Ce = Q({
|
|
117
118
|
inheritAttrs: !1
|
|
118
|
-
}),
|
|
119
|
+
}), yr = /* @__PURE__ */ Q({
|
|
119
120
|
...Ce,
|
|
120
121
|
__name: "super-form-item",
|
|
121
122
|
props: {
|
|
@@ -281,7 +282,7 @@ const Ce = Q({
|
|
|
281
282
|
placeholderJoinLabel: f = !0
|
|
282
283
|
} = o.schema;
|
|
283
284
|
let p = a;
|
|
284
|
-
|
|
285
|
+
Ee(t) ? p = "input" : Pe(t) || t === e.TIME_PICKER || [e.INPUT_TAG, e.AUTOCOMPLETE, e.Cascader, e.ColorPicker, e.Slider].includes(t) ? p = "update:modelValue" : t === e.Upload && (p = "update:fileList");
|
|
285
286
|
const i = `on${me(p)}`, g = {
|
|
286
287
|
[i]: (...R) => {
|
|
287
288
|
const [N] = R;
|
|
@@ -296,7 +297,7 @@ const Ce = Q({
|
|
|
296
297
|
clearable: !0,
|
|
297
298
|
...c(K)
|
|
298
299
|
};
|
|
299
|
-
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !
|
|
300
|
+
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !he(t) && t) {
|
|
300
301
|
const R = u || h;
|
|
301
302
|
d.placeholder = c(K)?.placeholder || Y(t, f && ce(R) ? R : "");
|
|
302
303
|
}
|
|
@@ -492,5 +493,5 @@ const Ce = Q({
|
|
|
492
493
|
}
|
|
493
494
|
});
|
|
494
495
|
export {
|
|
495
|
-
|
|
496
|
+
yr as default
|
|
496
497
|
};
|
|
@@ -5,11 +5,11 @@ import type { IconProps } from 'vft/es/components/icon';
|
|
|
5
5
|
import type { RowProps } from 'vft/es/components/row';
|
|
6
6
|
import type { ToolTipProps } from 'vft/es/components/tooltip';
|
|
7
7
|
import type { ComponentSize } from 'vft/es/constants';
|
|
8
|
+
import type { Arrayable } from 'vft/es/utils';
|
|
9
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
8
10
|
import type { InternalRuleItem, RuleItem } from 'async-validator';
|
|
9
11
|
import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
|
|
10
|
-
import type { Arrayable } from 'vft/es/utils';
|
|
11
12
|
import type { Recordable } from '../types';
|
|
12
|
-
import { FormCompEnum } from './component-map';
|
|
13
13
|
/** 按钮配置选项 */
|
|
14
14
|
export type ButtonOptions = Partial<ButtonProps> & {
|
|
15
15
|
btnText?: string;
|
|
@@ -199,7 +199,7 @@ export interface FormSchema {
|
|
|
199
199
|
/** 用于自定义组件时给 label 加上必选 * */
|
|
200
200
|
labelRequired?: boolean;
|
|
201
201
|
/** 渲染组件 */
|
|
202
|
-
type?:
|
|
202
|
+
type?: FormCompEnumType;
|
|
203
203
|
/** 组件内置参数 */
|
|
204
204
|
componentProps?: ((opt: {
|
|
205
205
|
schema: FormSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
2
|
/**
|
|
3
3
|
* @description 自动创建 placeholder
|
|
4
4
|
* @example
|
|
@@ -6,7 +6,7 @@ import { FormCompEnum } from '../component-map';
|
|
|
6
6
|
* @param type 组件类型
|
|
7
7
|
* @param label
|
|
8
8
|
*/
|
|
9
|
-
export declare function createPlaceholderMessage(type:
|
|
9
|
+
export declare function createPlaceholderMessage(type: FormCompEnumType, label?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* @description 处理 input 输入为数值的 val
|
|
12
12
|
* @example
|
|
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnum, label?: str
|
|
|
14
14
|
* @param type
|
|
15
15
|
* @param val
|
|
16
16
|
*/
|
|
17
|
-
export declare function handleInputNumberValue(type?:
|
|
17
|
+
export declare function handleInputNumberValue(type?: FormCompEnumType, val?: any): any;
|