vft 0.0.391 → 0.0.392
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/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 +163 -155
- 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 +45 -4
- package/es/components/super-form/component-map.js +60 -30
- package/es/components/super-form/index.js +20 -12
- package/es/components/super-form/super-form-item.vue2.js +6 -7
- package/es/components/super-form/types.d.ts +3 -3
- package/es/components/super-form/types.js +1 -5
- package/es/components/super-form/use/helper.d.ts +3 -3
- package/es/components/super-form/use/helper.js +32 -37
- package/es/components/super-form/use/use-auto-focus.js +15 -19
- package/es/components/super-form/use/use-form-events.js +67 -70
- 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/tree/tree-node.vue.d.ts +18 -18
- package/es/index.js +1 -2
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/index.d.ts +0 -1
- package/es/utils/index.js +71 -80
- 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.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 +45 -4
- 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/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/index.cjs +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
- package/es/utils/form-register.d.ts +0 -43
- package/es/utils/form-register.js +0 -68
- package/lib/utils/form-register.cjs +0 -1
- package/lib/utils/form-register.d.ts +0 -43
|
@@ -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;
|
|
78
77
|
"update:modelValue": (val: number | undefined) => void;
|
|
79
78
|
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, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } 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
|
-
input: (value: string) => void;
|
|
61
|
-
clear: () => void;
|
|
62
60
|
"update:modelValue": (value?: string[] | undefined) => void;
|
|
63
61
|
change: (value?: string[] | undefined) => void;
|
|
62
|
+
input: (value: string) => void;
|
|
63
|
+
clear: () => void;
|
|
64
64
|
blur: (evt: FocusEvent) => void;
|
|
65
65
|
focus: (evt: FocusEvent) => void;
|
|
66
66
|
"remove-tag": (value: string) => void;
|
|
@@ -114,15 +114,14 @@ 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;
|
|
118
117
|
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
119
118
|
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;
|
|
126
125
|
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
127
126
|
readonly draggable: boolean;
|
|
128
127
|
readonly id: string;
|
|
@@ -131,6 +130,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
131
130
|
readonly trigger: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown>;
|
|
132
131
|
readonly readonly: boolean;
|
|
133
132
|
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,9 +190,6 @@ 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
|
-
};
|
|
196
193
|
label: {
|
|
197
194
|
type: import("vue").PropType<string>;
|
|
198
195
|
};
|
|
@@ -208,6 +205,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
208
205
|
id: {
|
|
209
206
|
type: import("vue").PropType<string>;
|
|
210
207
|
};
|
|
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,9 +240,6 @@ 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
|
-
};
|
|
246
243
|
label: {
|
|
247
244
|
type: import("vue").PropType<string>;
|
|
248
245
|
};
|
|
@@ -258,6 +255,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
258
255
|
id: {
|
|
259
256
|
type: import("vue").PropType<string>;
|
|
260
257
|
};
|
|
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,9 +284,6 @@ 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
|
-
};
|
|
290
287
|
label: {
|
|
291
288
|
type: import("vue").PropType<string>;
|
|
292
289
|
};
|
|
@@ -302,6 +299,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
|
|
|
302
299
|
id: {
|
|
303
300
|
type: import("vue").PropType<string>;
|
|
304
301
|
};
|
|
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,9 +334,6 @@ 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
|
-
};
|
|
340
337
|
label: {
|
|
341
338
|
type: import("vue").PropType<string>;
|
|
342
339
|
};
|
|
@@ -352,6 +349,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
352
349
|
id: {
|
|
353
350
|
type: import("vue").PropType<string>;
|
|
354
351
|
};
|
|
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,9 +384,6 @@ 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
|
-
};
|
|
390
387
|
label: {
|
|
391
388
|
type: import("vue").PropType<string>;
|
|
392
389
|
};
|
|
@@ -402,6 +399,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
402
399
|
id: {
|
|
403
400
|
type: import("vue").PropType<string>;
|
|
404
401
|
};
|
|
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,9 +428,6 @@ 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
|
-
};
|
|
434
431
|
label: {
|
|
435
432
|
type: import("vue").PropType<string>;
|
|
436
433
|
};
|
|
@@ -446,6 +443,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
446
443
|
id: {
|
|
447
444
|
type: import("vue").PropType<string>;
|
|
448
445
|
};
|
|
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;
|
|
37
36
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
38
37
|
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;
|
|
113
112
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
114
113
|
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;
|
|
170
169
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
171
170
|
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;
|
|
48
47
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
49
48
|
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,15 +2107,14 @@ 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;
|
|
2111
2110
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
2112
2111
|
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";
|
|
2119
2118
|
disabled: boolean;
|
|
2120
2119
|
height: number;
|
|
2121
2120
|
offset: number;
|
|
@@ -2127,6 +2126,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
2127
2126
|
loading: boolean;
|
|
2128
2127
|
multiple: boolean;
|
|
2129
2128
|
validateEvent: boolean;
|
|
2129
|
+
autocomplete: "both" | "none" | "inline" | "list";
|
|
2130
2130
|
clearable: boolean;
|
|
2131
2131
|
clearIcon: string;
|
|
2132
2132
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -2103,15 +2103,14 @@ 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;
|
|
2107
2106
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
2108
2107
|
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";
|
|
2115
2114
|
disabled: boolean;
|
|
2116
2115
|
height: number;
|
|
2117
2116
|
offset: number;
|
|
@@ -2123,6 +2122,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2123
2122
|
loading: boolean;
|
|
2124
2123
|
multiple: boolean;
|
|
2125
2124
|
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;
|
|
84
83
|
"update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
85
84
|
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;
|
|
35
34
|
"update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
|
|
36
35
|
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,5 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
export declare enum FormCompEnum {
|
|
3
|
+
AUTOCOMPLETE = "autocomplete",
|
|
4
|
+
Cascader = "cascader",
|
|
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;
|
|
5
46
|
export { isDatePicker, isInput, isRangePicker };
|
|
@@ -1,32 +1,62 @@
|
|
|
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
|
-
|
|
1
|
+
var n = /* @__PURE__ */ ((e) => (e.AUTOCOMPLETE = "autocomplete", e.Cascader = "cascader", e.ColorPicker = "colorPicker", e.INPUT = "input", e.INPUT_NUMBER = "input-number", e.INPUT_NUMBER_STEP = "input-number-step", e.INPUT_TAG = "input-tag", e.PASSWORD = "password", e.TEXTAREA = "textarea", e.Slider = "slider", e.DIVIDER = "divider", e.SELECT = "select", e.SEARCH = "search", e.RADIO = "radio", e.RADIO_SINGLE = "radio_single", e.RADIO_BUTTON = "radio-button", e.CHECKBOX = "checkbox", e.CHECKBOX_SINGLE = "checkbox_single", e.CHECKBOX_BUTTON = "checkbox-button", e.SWITCH = "switch", e.Upload = "upload", e.TIME_PICKER = "time-picker", e.TIMERANGE_PICKER = "time-picker", e.YEAR_PICKER = "year", e.MONTH_PICKER = "month", e.DATE_PICKER = "date", e.DATES_PICKER = "dates", e.DATETIME_PICKER = "datetime", e.WEEK_PICKER = "week", e.DATETIMERANGE_PICKER = "datetimerange", e.DATERANGE_PICKER = "daterange", e.MONTHRANGE_PICKER = "monthrange", e))(n || {});
|
|
2
|
+
const t = /* @__PURE__ */ new Map();
|
|
3
|
+
function c(e, a) {
|
|
4
|
+
t.set(e, a);
|
|
5
|
+
}
|
|
6
|
+
function s(e) {
|
|
7
|
+
Object.entries(e).forEach(([a, i]) => {
|
|
8
|
+
t.set(a, i);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
return t.get(e);
|
|
13
|
+
}
|
|
14
|
+
function d(e) {
|
|
15
|
+
t.delete(e);
|
|
16
|
+
}
|
|
17
|
+
function I(e) {
|
|
18
|
+
return t.has(e);
|
|
19
|
+
}
|
|
20
|
+
function R() {
|
|
21
|
+
return Array.from(t.keys());
|
|
22
|
+
}
|
|
23
|
+
function T() {
|
|
24
|
+
t.clear();
|
|
25
|
+
}
|
|
26
|
+
const P = (e) => [
|
|
27
|
+
"datetimerange",
|
|
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);
|
|
28
50
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
n as FormCompEnum,
|
|
52
|
+
T as clearComponents,
|
|
53
|
+
r as getComponent,
|
|
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
|
|
32
62
|
};
|
|
@@ -2,18 +2,26 @@ 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 o } from "../../utils/vue/install.js";
|
|
6
6
|
import "lodash-es";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { getDynamicProps as
|
|
10
|
-
const
|
|
7
|
+
import e from "./super-form.vue2.js";
|
|
8
|
+
import { FormCompEnum as g, clearComponents as c, getComponent as u, getRegisteredComponents as l, hasComponent as x, isDatePicker as F, isInput as P, isRangePicker as d, registerComponent as h, registerComponents as k, removeComponent as D } from "./component-map.js";
|
|
9
|
+
import { getDynamicProps as R, useForm as _ } from "./use/use-form.js";
|
|
10
|
+
const a = o(e);
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
g as FormCompEnum,
|
|
13
|
+
a as VftSuperForm,
|
|
14
|
+
c as clearComponents,
|
|
15
|
+
a as default,
|
|
16
|
+
u as getComponent,
|
|
17
|
+
R as getDynamicProps,
|
|
18
|
+
l as getRegisteredComponents,
|
|
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
|
|
19
27
|
};
|
|
@@ -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, isVNode as le, createTextVNode as G, 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,7 +98,6 @@ 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";
|
|
102
101
|
import "@vueuse/core";
|
|
103
102
|
import "../config-provider/hooks/use-global-config.js";
|
|
104
103
|
import "lodash-es";
|
|
@@ -109,14 +108,14 @@ import "../../hooks/use-z-index/index.js";
|
|
|
109
108
|
import "../message/index.js";
|
|
110
109
|
import "../progress-i/index.js";
|
|
111
110
|
import "./index.js";
|
|
112
|
-
import {
|
|
111
|
+
import { FormCompEnum as e, getComponent as $, isInput as he, isDatePicker as Ee, isRangePicker as Pe } from "./component-map.js";
|
|
113
112
|
import { createPlaceholderMessage as Y } from "./use/helper.js";
|
|
114
113
|
function q(o) {
|
|
115
114
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
|
|
116
115
|
}
|
|
117
116
|
const Ce = Q({
|
|
118
117
|
inheritAttrs: !1
|
|
119
|
-
}),
|
|
118
|
+
}), Tr = /* @__PURE__ */ Q({
|
|
120
119
|
...Ce,
|
|
121
120
|
__name: "super-form-item",
|
|
122
121
|
props: {
|
|
@@ -282,7 +281,7 @@ const Ce = Q({
|
|
|
282
281
|
placeholderJoinLabel: f = !0
|
|
283
282
|
} = o.schema;
|
|
284
283
|
let p = a;
|
|
285
|
-
|
|
284
|
+
he(t) ? p = "input" : Ee(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");
|
|
286
285
|
const i = `on${me(p)}`, g = {
|
|
287
286
|
[i]: (...R) => {
|
|
288
287
|
const [N] = R;
|
|
@@ -297,7 +296,7 @@ const Ce = Q({
|
|
|
297
296
|
clearable: !0,
|
|
298
297
|
...c(K)
|
|
299
298
|
};
|
|
300
|
-
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !
|
|
299
|
+
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !Pe(t) && t) {
|
|
301
300
|
const R = u || h;
|
|
302
301
|
d.placeholder = c(K)?.placeholder || Y(t, f && ce(R) ? R : "");
|
|
303
302
|
}
|
|
@@ -493,5 +492,5 @@ const Ce = Q({
|
|
|
493
492
|
}
|
|
494
493
|
});
|
|
495
494
|
export {
|
|
496
|
-
|
|
495
|
+
Tr as default
|
|
497
496
|
};
|
|
@@ -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';
|
|
10
8
|
import type { InternalRuleItem, RuleItem } from 'async-validator';
|
|
11
9
|
import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
|
|
10
|
+
import type { Arrayable } from 'vft/es/utils';
|
|
12
11
|
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?: FormCompEnum;
|
|
203
203
|
/** 组件内置参数 */
|
|
204
204
|
componentProps?: ((opt: {
|
|
205
205
|
schema: FormSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormCompEnum } from '../component-map';
|
|
2
2
|
/**
|
|
3
3
|
* @description 自动创建 placeholder
|
|
4
4
|
* @example
|
|
@@ -6,7 +6,7 @@ import { type FormCompEnumType } from 'vft/es/utils';
|
|
|
6
6
|
* @param type 组件类型
|
|
7
7
|
* @param label
|
|
8
8
|
*/
|
|
9
|
-
export declare function createPlaceholderMessage(type:
|
|
9
|
+
export declare function createPlaceholderMessage(type: FormCompEnum, label?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* @description 处理 input 输入为数值的 val
|
|
12
12
|
* @example
|
|
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnumType, label?:
|
|
|
14
14
|
* @param type
|
|
15
15
|
* @param val
|
|
16
16
|
*/
|
|
17
|
-
export declare function handleInputNumberValue(type?:
|
|
17
|
+
export declare function handleInputNumberValue(type?: FormCompEnum, val?: any): any;
|