vft 0.0.151 → 0.0.153
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/app-components/button/button-custom.d.ts +1 -1
- package/es/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/es/app-components/hooks/use-id.d.ts +2 -1
- package/es/components/affix/affix.d.ts +2 -2
- package/es/components/affix/affix.vue.d.ts +2 -2
- package/es/components/affix/index.d.ts +5 -5
- package/es/components/autocomplete/autocomplete.vue.d.ts +23 -23
- package/es/components/autocomplete/index.d.ts +68 -68
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/use-button.d.ts +3 -3
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox.vue.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +58 -58
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +4 -20
- package/es/components/date-picker/index.d.ts +8 -40
- package/es/components/date-picker/props/date-picker.d.ts +1 -9
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- package/es/components/dialog/dialog.vue.d.ts +3 -3
- package/es/components/dialog/index.d.ts +8 -8
- package/es/components/drawer/drawer.vue.d.ts +3 -3
- package/es/components/drawer/index.d.ts +8 -8
- package/es/components/dropdown/dropdown.vue.d.ts +3 -3
- package/es/components/dropdown/index.d.ts +49 -49
- package/es/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/es/components/index.js +113 -113
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/input-number.vue.d.ts +3 -3
- package/es/components/loading/index.d.ts +17 -9
- package/es/components/loading/loading.d.ts +17 -9
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popper/composables/use-content-dom.d.ts +3 -1
- package/es/components/popper/composables/use-content.d.ts +70 -6
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +2 -1
- package/es/components/popper/utils.d.ts +45 -2
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +30 -30
- package/es/components/radio/radio-group.vue.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +1 -1
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/search/index.d.ts +8 -8
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/select/defaults.d.ts +4 -3
- package/es/components/select/index.d.ts +66 -66
- package/es/components/select/select.vue.d.ts +33 -33
- package/es/components/select/useSelect.d.ts +19 -19
- package/es/components/side-menu/index.d.ts +8 -4
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/slider/composables/use-slide.d.ts +6 -6
- package/es/components/slider/index.d.ts +3 -3
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/space/index.d.ts +5 -2
- package/es/components/space/space.d.ts +5 -2
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/types.d.ts +176 -0
- package/es/components/switch/index.d.ts +3 -3
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/table/index.d.ts +41 -41
- package/es/components/table/table.vue.d.ts +2 -2
- package/es/components/table/use/use-columns.d.ts +801 -3
- package/es/components/time-picker/common/picker.vue.d.ts +9 -24
- package/es/components/time-picker/common/props.d.ts +2 -9
- package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +8 -40
- package/es/components/time-picker/time-picker.d.ts +4 -20
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +4 -4
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/utils.d.ts +1 -1
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +12 -12
- package/es/components/upload/use-handlers.d.ts +21 -1
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +2 -1
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +70 -7
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/index.js +113 -113
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +1 -1
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/lib/app-components/hooks/use-id.d.ts +2 -1
- package/lib/components/affix/affix.d.ts +2 -2
- package/lib/components/affix/affix.vue.d.ts +2 -2
- package/lib/components/affix/index.d.ts +5 -5
- package/lib/components/autocomplete/autocomplete.vue.d.ts +23 -23
- package/lib/components/autocomplete/index.d.ts +68 -68
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +58 -58
- package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +4 -20
- package/lib/components/date-picker/index.d.ts +8 -40
- package/lib/components/date-picker/props/date-picker.d.ts +1 -9
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +3 -3
- package/lib/components/dialog/index.d.ts +8 -8
- package/lib/components/drawer/drawer.vue.d.ts +3 -3
- package/lib/components/drawer/index.d.ts +8 -8
- package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
- package/lib/components/dropdown/index.d.ts +49 -49
- package/lib/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +3 -3
- package/lib/components/loading/index.d.ts +17 -9
- package/lib/components/loading/loading.d.ts +17 -9
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popper/composables/use-content-dom.d.ts +3 -1
- package/lib/components/popper/composables/use-content.d.ts +70 -6
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +2 -1
- package/lib/components/popper/utils.d.ts +45 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +30 -30
- package/lib/components/radio/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +1 -1
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/search/index.d.ts +8 -8
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/select/defaults.d.ts +4 -3
- package/lib/components/select/index.d.ts +66 -66
- package/lib/components/select/select.vue.d.ts +33 -33
- package/lib/components/select/useSelect.d.ts +19 -19
- package/lib/components/side-menu/index.d.ts +8 -4
- package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
- package/lib/components/slider/composables/use-slide.d.ts +6 -6
- package/lib/components/slider/index.d.ts +3 -3
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/space/index.d.ts +5 -2
- package/lib/components/space/space.d.ts +5 -2
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/types.d.ts +176 -0
- package/lib/components/switch/index.d.ts +3 -3
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/table/index.d.ts +41 -41
- package/lib/components/table/table.vue.d.ts +2 -2
- package/lib/components/table/use/use-columns.d.ts +801 -3
- package/lib/components/time-picker/common/picker.vue.d.ts +9 -24
- package/lib/components/time-picker/common/props.d.ts +2 -9
- package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +8 -40
- package/lib/components/time-picker/time-picker.d.ts +4 -20
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +4 -4
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/utils.d.ts +1 -1
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/components/upload/use-handlers.d.ts +21 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +2 -1
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +70 -7
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/web-types.json +1 -1
|
@@ -115,8 +115,9 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
115
115
|
readonly showAfter?: number | undefined;
|
|
116
116
|
readonly hideAfter?: number | undefined;
|
|
117
117
|
readonly open?: boolean | undefined;
|
|
118
|
-
readonly placement?:
|
|
119
|
-
readonly strategy?: "
|
|
118
|
+
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
119
|
+
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
120
|
+
readonly effect?: "light" | "dark" | undefined;
|
|
120
121
|
readonly id?: string | undefined;
|
|
121
122
|
readonly className?: import("../types").ClassType | undefined;
|
|
122
123
|
readonly ariaLabel?: string | undefined;
|
|
@@ -125,12 +126,10 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
125
126
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
126
127
|
readonly appendTo?: any;
|
|
127
128
|
readonly visible?: boolean | undefined;
|
|
128
|
-
readonly effect?: "light" | "dark" | undefined;
|
|
129
|
-
readonly teleported?: boolean | undefined;
|
|
130
129
|
readonly arrowOffset?: number | undefined;
|
|
131
130
|
readonly gpuAcceleration?: boolean | undefined;
|
|
132
|
-
readonly fallbackPlacements?: Placement[] | undefined;
|
|
133
|
-
readonly popperOptions?:
|
|
131
|
+
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
132
|
+
readonly popperOptions?: Partial<import("@popperjs/core").Options> | undefined;
|
|
134
133
|
readonly pure?: boolean | undefined;
|
|
135
134
|
readonly boundariesPadding?: number | undefined;
|
|
136
135
|
readonly enterable?: boolean | undefined;
|
|
@@ -145,6 +144,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
145
144
|
readonly virtualRef?: import("..").Measurable | undefined;
|
|
146
145
|
readonly rawContent?: boolean | undefined;
|
|
147
146
|
readonly persistent?: boolean | undefined;
|
|
147
|
+
readonly teleported?: boolean | undefined;
|
|
148
148
|
readonly triggerKeys?: string[] | undefined;
|
|
149
149
|
readonly showArrow?: boolean | undefined;
|
|
150
150
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -200,7 +200,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
200
200
|
type: globalThis.PropType<number>;
|
|
201
201
|
};
|
|
202
202
|
fallbackPlacements: {
|
|
203
|
-
type: globalThis.PropType<Placement[]>;
|
|
203
|
+
type: globalThis.PropType<import("@popperjs/core").Placement[]>;
|
|
204
204
|
};
|
|
205
205
|
gpuAcceleration: {
|
|
206
206
|
type: globalThis.PropType<boolean>;
|
|
@@ -209,13 +209,13 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
209
209
|
type: globalThis.PropType<number>;
|
|
210
210
|
};
|
|
211
211
|
placement: {
|
|
212
|
-
type: globalThis.PropType<
|
|
212
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
213
213
|
};
|
|
214
214
|
popperOptions: {
|
|
215
|
-
type: globalThis.PropType<
|
|
215
|
+
type: globalThis.PropType<Partial<import("@popperjs/core").Options>>;
|
|
216
216
|
};
|
|
217
217
|
strategy: {
|
|
218
|
-
type: globalThis.PropType<"
|
|
218
|
+
type: globalThis.PropType<"fixed" | "absolute">;
|
|
219
219
|
};
|
|
220
220
|
style: {
|
|
221
221
|
type: globalThis.PropType<string | false | CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -363,7 +363,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
363
363
|
type: globalThis.PropType<number>;
|
|
364
364
|
};
|
|
365
365
|
fallbackPlacements: {
|
|
366
|
-
type: globalThis.PropType<Placement[]>;
|
|
366
|
+
type: globalThis.PropType<import("@popperjs/core").Placement[]>;
|
|
367
367
|
};
|
|
368
368
|
gpuAcceleration: {
|
|
369
369
|
type: globalThis.PropType<boolean>;
|
|
@@ -372,13 +372,13 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
372
372
|
type: globalThis.PropType<number>;
|
|
373
373
|
};
|
|
374
374
|
placement: {
|
|
375
|
-
type: globalThis.PropType<
|
|
375
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
376
376
|
};
|
|
377
377
|
popperOptions: {
|
|
378
|
-
type: globalThis.PropType<
|
|
378
|
+
type: globalThis.PropType<Partial<import("@popperjs/core").Options>>;
|
|
379
379
|
};
|
|
380
380
|
strategy: {
|
|
381
|
-
type: globalThis.PropType<"
|
|
381
|
+
type: globalThis.PropType<"fixed" | "absolute">;
|
|
382
382
|
};
|
|
383
383
|
style: {
|
|
384
384
|
type: globalThis.PropType<string | false | CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -547,7 +547,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
547
547
|
type: globalThis.PropType<number>;
|
|
548
548
|
};
|
|
549
549
|
fallbackPlacements: {
|
|
550
|
-
type: globalThis.PropType<Placement[]>;
|
|
550
|
+
type: globalThis.PropType<import("@popperjs/core").Placement[]>;
|
|
551
551
|
};
|
|
552
552
|
gpuAcceleration: {
|
|
553
553
|
type: globalThis.PropType<boolean>;
|
|
@@ -556,13 +556,13 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
556
556
|
type: globalThis.PropType<number>;
|
|
557
557
|
};
|
|
558
558
|
placement: {
|
|
559
|
-
type: globalThis.PropType<
|
|
559
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
560
560
|
};
|
|
561
561
|
popperOptions: {
|
|
562
|
-
type: globalThis.PropType<
|
|
562
|
+
type: globalThis.PropType<Partial<import("@popperjs/core").Options>>;
|
|
563
563
|
};
|
|
564
564
|
strategy: {
|
|
565
|
-
type: globalThis.PropType<"
|
|
565
|
+
type: globalThis.PropType<"fixed" | "absolute">;
|
|
566
566
|
};
|
|
567
567
|
style: {
|
|
568
568
|
type: globalThis.PropType<string | false | CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -680,7 +680,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
680
680
|
created?: boolean | undefined;
|
|
681
681
|
value: any;
|
|
682
682
|
}[]>;
|
|
683
|
-
debouncedOnInputChange:
|
|
683
|
+
debouncedOnInputChange: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
684
684
|
deleteTag: (event: MouseEvent, tag: Option) => Promise<void> | undefined;
|
|
685
685
|
getLabel: (item: unknown) => any;
|
|
686
686
|
getValueKey: (item: unknown) => any;
|
|
@@ -45,7 +45,9 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
45
45
|
default: boolean;
|
|
46
46
|
};
|
|
47
47
|
dragOption: {
|
|
48
|
-
type: globalThis.PropType<
|
|
48
|
+
type: globalThis.PropType<import("sortablejs").Options & {
|
|
49
|
+
dragClassName: string;
|
|
50
|
+
}>;
|
|
49
51
|
};
|
|
50
52
|
dragWidthCfg: {
|
|
51
53
|
type: globalThis.PropType<boolean | {
|
|
@@ -78,7 +80,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
78
80
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
81
|
"update:collapse": (val: boolean) => void;
|
|
80
82
|
"update:width": (val: string | number) => void;
|
|
81
|
-
dragEnd: (oldIndex: SortableEvent, newIndex: SortableEvent) => void;
|
|
83
|
+
dragEnd: (oldIndex: import("sortablejs").SortableEvent, newIndex: import("sortablejs").SortableEvent) => void;
|
|
82
84
|
dragWidthEnd: () => void;
|
|
83
85
|
select: (val: {
|
|
84
86
|
route: string;
|
|
@@ -134,7 +136,9 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
134
136
|
default: boolean;
|
|
135
137
|
};
|
|
136
138
|
dragOption: {
|
|
137
|
-
type: globalThis.PropType<
|
|
139
|
+
type: globalThis.PropType<import("sortablejs").Options & {
|
|
140
|
+
dragClassName: string;
|
|
141
|
+
}>;
|
|
138
142
|
};
|
|
139
143
|
dragWidthCfg: {
|
|
140
144
|
type: globalThis.PropType<boolean | {
|
|
@@ -169,7 +173,7 @@ export declare const VftSideMenu: import("vft/es/utils").SFCWithInstall<import("
|
|
|
169
173
|
}) => any) | undefined;
|
|
170
174
|
"onUpdate:collapse"?: ((val: boolean) => any) | undefined;
|
|
171
175
|
"onUpdate:width"?: ((val: string | number) => any) | undefined;
|
|
172
|
-
onDragEnd?: ((oldIndex: SortableEvent, newIndex: SortableEvent) => any) | undefined;
|
|
176
|
+
onDragEnd?: ((oldIndex: import("sortablejs").SortableEvent, newIndex: import("sortablejs").SortableEvent) => any) | undefined;
|
|
173
177
|
onDragWidthEnd?: (() => any) | undefined;
|
|
174
178
|
onSubMenuClick?: ((val: any) => any) | undefined;
|
|
175
179
|
onMenuItemMouseenter?: ((val: any) => any) | undefined;
|
|
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
45
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
46
|
"update:collapse": (val: boolean) => void;
|
|
47
47
|
"update:width": (val: string | number) => void;
|
|
48
|
-
dragEnd: (oldIndex: SortableEvent, newIndex: SortableEvent) => void;
|
|
48
|
+
dragEnd: (oldIndex: Sortable.SortableEvent, newIndex: Sortable.SortableEvent) => void;
|
|
49
49
|
dragWidthEnd: () => void;
|
|
50
50
|
select: (val: {
|
|
51
51
|
route: string;
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
75
75
|
}) => any) | undefined;
|
|
76
76
|
"onUpdate:collapse"?: ((val: boolean) => any) | undefined;
|
|
77
77
|
"onUpdate:width"?: ((val: string | number) => any) | undefined;
|
|
78
|
-
onDragEnd?: ((oldIndex: SortableEvent, newIndex: SortableEvent) => any) | undefined;
|
|
78
|
+
onDragEnd?: ((oldIndex: Sortable.SortableEvent, newIndex: Sortable.SortableEvent) => any) | undefined;
|
|
79
79
|
onDragWidthEnd?: (() => any) | undefined;
|
|
80
80
|
onSubMenuClick?: ((val: any) => any) | undefined;
|
|
81
81
|
onMenuItemMouseenter?: ((val: any) => any) | undefined;
|
|
@@ -16,7 +16,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
16
16
|
type: globalThis.PropType<string>;
|
|
17
17
|
};
|
|
18
18
|
placement: {
|
|
19
|
-
type: globalThis.PropType<
|
|
19
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
20
20
|
};
|
|
21
21
|
}>> & {
|
|
22
22
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
39
39
|
type: globalThis.PropType<string>;
|
|
40
40
|
};
|
|
41
41
|
placement: {
|
|
42
|
-
type: globalThis.PropType<
|
|
42
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
43
43
|
};
|
|
44
44
|
}>> & {
|
|
45
45
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
61
61
|
type: globalThis.PropType<string>;
|
|
62
62
|
};
|
|
63
63
|
placement: {
|
|
64
|
-
type: globalThis.PropType<
|
|
64
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
65
65
|
};
|
|
66
66
|
}>> & {
|
|
67
67
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
83
83
|
type: globalThis.PropType<string>;
|
|
84
84
|
};
|
|
85
85
|
placement: {
|
|
86
|
-
type: globalThis.PropType<
|
|
86
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
87
87
|
};
|
|
88
88
|
}>> & {
|
|
89
89
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -106,7 +106,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
106
106
|
type: globalThis.PropType<string>;
|
|
107
107
|
};
|
|
108
108
|
placement: {
|
|
109
|
-
type: globalThis.PropType<
|
|
109
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
110
110
|
};
|
|
111
111
|
}>> & {
|
|
112
112
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -128,7 +128,7 @@ export declare const useSlide: (props: SliderProps, initData: SliderInitData, em
|
|
|
128
128
|
type: globalThis.PropType<string>;
|
|
129
129
|
};
|
|
130
130
|
placement: {
|
|
131
|
-
type: globalThis.PropType<
|
|
131
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
132
132
|
};
|
|
133
133
|
}>> & {
|
|
134
134
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -66,7 +66,7 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
66
66
|
type: globalThis.PropType<string>;
|
|
67
67
|
};
|
|
68
68
|
placement: {
|
|
69
|
-
type: globalThis.PropType<
|
|
69
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
70
70
|
};
|
|
71
71
|
marks: {
|
|
72
72
|
type: globalThis.PropType<Record<number, string | {
|
|
@@ -151,7 +151,7 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
151
151
|
type: globalThis.PropType<string>;
|
|
152
152
|
};
|
|
153
153
|
placement: {
|
|
154
|
-
type: globalThis.PropType<
|
|
154
|
+
type: globalThis.PropType<import("@popperjs/core").Placement>;
|
|
155
155
|
};
|
|
156
156
|
marks: {
|
|
157
157
|
type: globalThis.PropType<Record<number, string | {
|
|
@@ -163,8 +163,8 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
163
163
|
type: globalThis.PropType<boolean>;
|
|
164
164
|
};
|
|
165
165
|
}>> & {
|
|
166
|
-
onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
167
166
|
onChange?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
167
|
+
onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
168
168
|
"onUpdate:modelValue"?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
169
169
|
}, {}, {}>> & Record<string, any>;
|
|
170
170
|
export default VftSlider;
|
|
@@ -8,9 +8,9 @@ export interface SliderInitData {
|
|
|
8
8
|
sliderSize: number;
|
|
9
9
|
}
|
|
10
10
|
export declare const sliderEmits: {
|
|
11
|
-
"update:modelValue": (value: Arrayable<number>) =>
|
|
12
|
-
input: (value: Arrayable<number>) =>
|
|
13
|
-
change: (value: Arrayable<number>) =>
|
|
11
|
+
"update:modelValue": (value: Arrayable<number>) => boolean;
|
|
12
|
+
input: (value: Arrayable<number>) => boolean;
|
|
13
|
+
change: (value: Arrayable<number>) => boolean;
|
|
14
14
|
};
|
|
15
15
|
export type SliderEmits = typeof sliderEmits;
|
|
16
16
|
export type SliderInstance = InstanceType<typeof Slider>;
|
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
35
35
|
change: (value: import("../../utils").Arrayable<number>) => void;
|
|
36
36
|
input: (value: import("../../utils").Arrayable<number>) => void;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>> & {
|
|
38
|
-
onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
39
38
|
onChange?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
39
|
+
onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
40
40
|
"onUpdate:modelValue"?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
41
41
|
}, {}, {}>;
|
|
42
42
|
export default _default;
|
|
@@ -19,9 +19,12 @@ export declare const VftSpace: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
19
19
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
|
-
}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
}, () => string | globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
23
|
[key: string]: any;
|
|
24
|
-
}> |
|
|
24
|
+
}> | {
|
|
25
|
+
[name: string]: unknown;
|
|
26
|
+
$stable?: boolean | undefined;
|
|
27
|
+
} | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
25
28
|
readonly direction: import("vft/es/utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
|
|
26
29
|
readonly class: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => import("vft/es/utils").Arrayable<string | Record<string, boolean>>) | ((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => import("vft/es/utils").Arrayable<string | Record<string, boolean>>))[], unknown, unknown, "", boolean>;
|
|
27
30
|
readonly style: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, "", boolean>;
|
|
@@ -44,9 +44,12 @@ declare const Space: import("vue").DefineComponent<{
|
|
|
44
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
45
|
__epPropKey: true;
|
|
46
46
|
};
|
|
47
|
-
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}, () => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
|
-
}> |
|
|
49
|
+
}> | {
|
|
50
|
+
[name: string]: unknown;
|
|
51
|
+
$stable?: boolean | undefined;
|
|
52
|
+
} | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
50
53
|
readonly direction: import("vft/es/utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
|
|
51
54
|
readonly class: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | ((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>))[], unknown, unknown, "", boolean>;
|
|
52
55
|
readonly style: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, "", boolean>;
|
|
@@ -164,7 +164,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
164
164
|
validateField: (nameList?: any[] | undefined) => Promise<any>;
|
|
165
165
|
validate: (nameList?: any[] | undefined) => Promise<any>;
|
|
166
166
|
submit: (e?: Event | undefined) => Promise<void>;
|
|
167
|
-
getSchema: globalThis.ComputedRef<
|
|
167
|
+
getSchema: globalThis.ComputedRef<import("./types").FormSchema[]>;
|
|
168
168
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
169
169
|
reset: () => void;
|
|
170
170
|
submit: () => void;
|
|
@@ -513,7 +513,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
513
513
|
validateField: (nameList?: any[] | undefined) => Promise<any>;
|
|
514
514
|
validate: (nameList?: any[] | undefined) => Promise<any>;
|
|
515
515
|
submit: (e?: Event | undefined) => Promise<void>;
|
|
516
|
-
getSchema: globalThis.ComputedRef<
|
|
516
|
+
getSchema: globalThis.ComputedRef<import("./types").FormSchema[]>;
|
|
517
517
|
}, {}, {}, {}, {
|
|
518
518
|
size: "" | "default" | "small" | "large";
|
|
519
519
|
labelWidth: string | number;
|
|
@@ -703,7 +703,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
703
703
|
validateField: (nameList?: any[] | undefined) => Promise<any>;
|
|
704
704
|
validate: (nameList?: any[] | undefined) => Promise<any>;
|
|
705
705
|
submit: (e?: Event | undefined) => Promise<void>;
|
|
706
|
-
getSchema: globalThis.ComputedRef<
|
|
706
|
+
getSchema: globalThis.ComputedRef<import("./types").FormSchema[]>;
|
|
707
707
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
708
708
|
reset: () => void;
|
|
709
709
|
submit: () => void;
|
|
@@ -36,7 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
36
|
validateField: (nameList?: any[] | undefined) => Promise<any>;
|
|
37
37
|
validate: (nameList?: any[] | undefined) => Promise<any>;
|
|
38
38
|
submit: (e?: Event | undefined) => Promise<void>;
|
|
39
|
-
getSchema: globalThis.ComputedRef<
|
|
39
|
+
getSchema: globalThis.ComputedRef<FormSchema[]>;
|
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
41
|
reset: () => void;
|
|
42
42
|
submit: () => void;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type { ButtonProps, ColProps, RowProps } from 'vft/es/components';
|
|
2
|
+
import type { FormItemProp, FormItemProps, FormProps } from 'vft/es/components/form';
|
|
3
|
+
import type { InternalRuleItem, RuleItem } from 'async-validator';
|
|
4
|
+
import type { StyleValue, VNode } from 'vue';
|
|
5
|
+
import { FormCompEnum } from './component-map';
|
|
6
|
+
import type { Arrayable, Recordable } from '../types';
|
|
7
|
+
export type ButtonOptions = Partial<ButtonProps> & {
|
|
8
|
+
btnText?: string;
|
|
9
|
+
};
|
|
10
|
+
export type InternalNamePath = (string | number)[];
|
|
11
|
+
export type NamePath = string | number | InternalNamePath;
|
|
12
|
+
export type FieldMapToTime = [
|
|
13
|
+
string,
|
|
14
|
+
[
|
|
15
|
+
string,
|
|
16
|
+
string
|
|
17
|
+
],
|
|
18
|
+
(string | [string, string])?
|
|
19
|
+
][];
|
|
20
|
+
export type Rule = {
|
|
21
|
+
trigger?: 'blur' | 'change' | ['change', 'blur'];
|
|
22
|
+
};
|
|
23
|
+
type FormItemRule = Omit<RuleItem, 'validator'> & Rule & {
|
|
24
|
+
validator?: (rule: InternalRuleItem, value: any, callback?: (error?: string | Error) => void) => Promise<any>;
|
|
25
|
+
} & {
|
|
26
|
+
isNumber?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export interface RenderCallbackParams {
|
|
29
|
+
schema: FormSchema;
|
|
30
|
+
values: Recordable;
|
|
31
|
+
model: Recordable;
|
|
32
|
+
field: string;
|
|
33
|
+
}
|
|
34
|
+
export interface FormActionType {
|
|
35
|
+
submit: () => Promise<void>;
|
|
36
|
+
setFieldsValue: (values: Recordable) => Promise<void>;
|
|
37
|
+
resetFields: (props?: FormItemProp | FormItemProp[]) => Promise<void>;
|
|
38
|
+
getFieldsValue: () => Recordable;
|
|
39
|
+
getFieldValue: (field: string) => string | number | Recordable;
|
|
40
|
+
clearValidate: (name?: string | string[]) => Promise<void>;
|
|
41
|
+
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
42
|
+
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
43
|
+
setProps: (formProps: Partial<SuperFormProps>) => Promise<void>;
|
|
44
|
+
removeSchemaByField: (field: string | string[]) => Promise<void>;
|
|
45
|
+
setSubmitLoading: (loading?: boolean) => Promise<void>;
|
|
46
|
+
appendSchemaByField: (schema: FormSchema | FormSchema[], prefixField: string | undefined, first?: boolean | undefined) => Promise<void>;
|
|
47
|
+
validateField: (nameList?: NamePath[]) => Promise<any>;
|
|
48
|
+
validate: (nameList?: NamePath[]) => Promise<any>;
|
|
49
|
+
scrollToField: (name: NamePath, options?: ScrollOptions) => Promise<void>;
|
|
50
|
+
setFormItemError: (field: string, errMess: string) => Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
export interface SuperFormActionProps {
|
|
53
|
+
showResetButton?: boolean;
|
|
54
|
+
showSubmitButton?: boolean;
|
|
55
|
+
showCommonButton?: boolean;
|
|
56
|
+
resetButtonOptions?: ButtonOptions;
|
|
57
|
+
submitButtonOptions?: ButtonOptions;
|
|
58
|
+
commonButtonOptions?: ButtonOptions;
|
|
59
|
+
actionRowOptions?: Partial<RowProps>;
|
|
60
|
+
}
|
|
61
|
+
type FormInnerProps = FormProps & SuperFormActionProps;
|
|
62
|
+
export interface SuperFormProps extends FormInnerProps {
|
|
63
|
+
/** 配置表单的 RowProps */
|
|
64
|
+
rowProps?: RowProps;
|
|
65
|
+
/** 配置所有选子项的 ColProps */
|
|
66
|
+
baseColProps?: Partial<ColProps>;
|
|
67
|
+
/** 根据 1/2/3...快速分列 */
|
|
68
|
+
quickColSpan?: number;
|
|
69
|
+
/** 自动设置占位符 */
|
|
70
|
+
autoSetPlaceHolder?: boolean;
|
|
71
|
+
/** 表单配置 */
|
|
72
|
+
schemas?: FormSchema[];
|
|
73
|
+
/** 是否聚焦第一个输入框,只在第一个表单项为 input 的时候作用 */
|
|
74
|
+
autoFocusFirstItem?: boolean;
|
|
75
|
+
/** 重置时是否提交表单 */
|
|
76
|
+
submitOnReset?: boolean;
|
|
77
|
+
/** 额外传递到子组件的参数 values */
|
|
78
|
+
mergeDynamicData?: Recordable;
|
|
79
|
+
/** 将表单内时间区域的值映射成 2 个字段 */
|
|
80
|
+
fieldMapToTime?: FieldMapToTime;
|
|
81
|
+
/** 在input中输入时按回车自动提交 */
|
|
82
|
+
autoSubmitOnEnter?: boolean;
|
|
83
|
+
/** 如果表单项有校验,会自动生成校验信息,该参数控制是否将字段中文名字拼接到自动生成的信息后方 */
|
|
84
|
+
rulesMessageJoinLabel?: boolean;
|
|
85
|
+
/** 表单改变时触发提交 */
|
|
86
|
+
submitOnChange?: boolean;
|
|
87
|
+
/** 是否显示操作按钮(重置/提交) */
|
|
88
|
+
showActionButtonGroup?: boolean;
|
|
89
|
+
/** 自动清除报错信息 */
|
|
90
|
+
autoCleanErrorMessage?: boolean;
|
|
91
|
+
/** 提交前置事件 */
|
|
92
|
+
beforeSubmitFunc?: () => Promise<void>;
|
|
93
|
+
/** 提交 */
|
|
94
|
+
submitFunc?: () => Promise<void>;
|
|
95
|
+
/** 监听数据是否发生改变 */
|
|
96
|
+
watchDataIsChange?: boolean;
|
|
97
|
+
/** Form 下组件宽度是否撑满 */
|
|
98
|
+
compFullWidth?: boolean;
|
|
99
|
+
/** 操作栏是否为行内 */
|
|
100
|
+
actionInline?: boolean;
|
|
101
|
+
/** 自定义 reset 事件 */
|
|
102
|
+
resetFunc?: () => Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
export interface FormSchema {
|
|
105
|
+
/** 字段 key */
|
|
106
|
+
field: string;
|
|
107
|
+
/** 名称 label title 都可以 */
|
|
108
|
+
label?: string | VNode;
|
|
109
|
+
title?: string | VNode;
|
|
110
|
+
/** 值改变的触发事件 */
|
|
111
|
+
changeEvent?: string;
|
|
112
|
+
/** v-model 绑定的 value 值 */
|
|
113
|
+
valueField?: string;
|
|
114
|
+
/** 子 label */
|
|
115
|
+
subLabel?: string;
|
|
116
|
+
/** 是否显示 label */
|
|
117
|
+
showLabel?: boolean;
|
|
118
|
+
/** 标签宽度,如果通过,则 itemProps 配置的 labelCol 和 WrapperCol 将无效 */
|
|
119
|
+
labelWidth?: string | number;
|
|
120
|
+
/** 渲染组件 */
|
|
121
|
+
type?: FormCompEnum;
|
|
122
|
+
/** 组件内置参数 */
|
|
123
|
+
componentProps?: ((opt: {
|
|
124
|
+
schema: FormSchema;
|
|
125
|
+
formActionType: FormActionType;
|
|
126
|
+
formModel: Recordable;
|
|
127
|
+
}) => Recordable) | object;
|
|
128
|
+
/** 是否为必填项 */
|
|
129
|
+
required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
130
|
+
/** 组件后自定义内容 */
|
|
131
|
+
suffix?: string | number | ((values: RenderCallbackParams) => string | number) | VNode;
|
|
132
|
+
/** 组件前自定义内容 */
|
|
133
|
+
prefix?: string | number | ((values: RenderCallbackParams) => string | number) | VNode;
|
|
134
|
+
/** 前置内容父级样式 */
|
|
135
|
+
prefixParentStyle?: StyleValue;
|
|
136
|
+
/** 自定义规则 */
|
|
137
|
+
rules?: FormItemRule[] | FormItemRule;
|
|
138
|
+
/** 自定义报错规则是否添加自动添加 label */
|
|
139
|
+
rulesMessageJoinLabel?: boolean;
|
|
140
|
+
/** 自动生成 placeholder */
|
|
141
|
+
placeholderJoinLabel?: boolean;
|
|
142
|
+
/** form-item 参数 */
|
|
143
|
+
itemProps?: Partial<FormItemProps & {
|
|
144
|
+
title: string;
|
|
145
|
+
}>;
|
|
146
|
+
/** col 参数 */
|
|
147
|
+
colProps?: Partial<ColProps>;
|
|
148
|
+
/** 根据 1/2/3...快速分列 */
|
|
149
|
+
quickColSpan?: number;
|
|
150
|
+
/** 默认值 */
|
|
151
|
+
defaultValue?: any;
|
|
152
|
+
/** 是否自动处理与时间相关组件的默认值 */
|
|
153
|
+
isHandleDateDefaultValue?: boolean;
|
|
154
|
+
/** 栅格占据的列数 */
|
|
155
|
+
span?: number;
|
|
156
|
+
/** 动态判断当前组件是否显示,js 控制,会删除 dom */
|
|
157
|
+
ifShow?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
158
|
+
/** 动态判断当前组件是否显示,css 控制,不会删除 dom */
|
|
159
|
+
show?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
160
|
+
/** 自定义渲染组件*/
|
|
161
|
+
render?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string;
|
|
162
|
+
/** 自定义渲染组件(需要自行包含 formItem)*/
|
|
163
|
+
renderColContent?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string;
|
|
164
|
+
/** 自定义渲染组内部的 slot */
|
|
165
|
+
renderComponentContent?: ((renderCallbackParams: RenderCallbackParams) => any) | VNode | VNode[] | string;
|
|
166
|
+
/** 自定义 slot,渲染组件 */
|
|
167
|
+
slot?: string;
|
|
168
|
+
/** 自定义 slot,渲染组件 (需要自行包含 formItem)*/
|
|
169
|
+
colSlot?: string;
|
|
170
|
+
/** 动态判断当前组件是否禁用 */
|
|
171
|
+
dynamicDisabled?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean);
|
|
172
|
+
/** 动态判返当前组件你校验规则 */
|
|
173
|
+
dynamicRule?: (renderCallbackParams: RenderCallbackParams) => Arrayable<FormItemRule>;
|
|
174
|
+
dynamicRuleAdd?: boolean;
|
|
175
|
+
}
|
|
176
|
+
export {};
|
|
@@ -74,9 +74,9 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
74
74
|
focus: () => void;
|
|
75
75
|
checked: globalThis.ComputedRef<boolean>;
|
|
76
76
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
-
input: (...args: any[]) => void;
|
|
78
|
-
change: (...args: any[]) => void;
|
|
79
77
|
"update:modelValue": (...args: any[]) => void;
|
|
78
|
+
change: (...args: any[]) => void;
|
|
79
|
+
input: (...args: any[]) => void;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
81
81
|
value: {
|
|
82
82
|
type: globalThis.PropType<string | number | boolean>;
|
|
@@ -150,8 +150,8 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
150
150
|
type: globalThis.PropType<Function>;
|
|
151
151
|
};
|
|
152
152
|
}>> & {
|
|
153
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
154
153
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
155
155
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
value: string | number | boolean;
|
|
@@ -42,9 +42,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
42
42
|
*/
|
|
43
43
|
checked: globalThis.ComputedRef<boolean>;
|
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
input: (...args: any[]) => void;
|
|
46
|
-
change: (...args: any[]) => void;
|
|
47
45
|
"update:modelValue": (...args: any[]) => void;
|
|
46
|
+
change: (...args: any[]) => void;
|
|
47
|
+
input: (...args: any[]) => void;
|
|
48
48
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwitchProps>, {
|
|
49
49
|
modelValue: boolean;
|
|
50
50
|
value: boolean;
|
|
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
55
55
|
validateEvent: boolean;
|
|
56
56
|
loading: boolean;
|
|
57
57
|
}>>> & {
|
|
58
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
59
58
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
value: string | number | boolean;
|