vft 0.0.417 → 0.0.421
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 +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/breadcrumb/breadcrumb-item.vue.d.ts +1 -1
- package/es/components/breadcrumb/breadcrumb.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +9 -9
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/drawer/drawer.vue.d.ts +3 -2
- package/es/components/drawer/index.d.ts +1 -2
- package/es/components/drawer/types.d.ts +1 -2
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/radio/radio-button.vue.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +15 -15
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/search/index.d.ts +172 -2
- package/es/components/search/search.vue.d.ts +3 -15
- package/es/components/search/search.vue2.js +78 -60
- package/es/components/search/types.d.ts +12 -0
- package/es/components/search/types.js +1 -0
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/table/use/use-data-source.d.ts +1 -1
- package/es/components/teleport/teleport.vue.d.ts +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/breadcrumb/breadcrumb-item.vue.d.ts +1 -1
- package/lib/components/breadcrumb/breadcrumb.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/drawer/drawer.vue.d.ts +3 -2
- package/lib/components/drawer/index.d.ts +1 -2
- package/lib/components/drawer/types.d.ts +1 -2
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/radio/radio-button.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +15 -15
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/search/index.d.ts +172 -2
- package/lib/components/search/search.vue.d.ts +3 -15
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/search/types.cjs +1 -0
- package/lib/components/search/types.d.ts +12 -0
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/table/use/use-data-source.d.ts +1 -1
- package/lib/components/teleport/teleport.vue.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DialogProps } from 'vft/es/components/dialog';
|
|
1
2
|
import type { DrawerProps } from './types';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
header?(_: {
|
|
@@ -9,7 +10,7 @@ declare function __VLS_template(): {
|
|
|
9
10
|
default?(_: {}): any;
|
|
10
11
|
footer?(_: {}): any;
|
|
11
12
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>, {
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>, {
|
|
13
14
|
close: () => void;
|
|
14
15
|
afterEnter: () => void;
|
|
15
16
|
afterLeave: () => void;
|
|
@@ -21,7 +22,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
21
22
|
closed: () => void;
|
|
22
23
|
openAutoFocus: () => void;
|
|
23
24
|
closeAutoFocus: () => void;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>> & Readonly<{
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>> & Readonly<{
|
|
25
26
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
27
|
onClose?: (() => any) | undefined;
|
|
27
28
|
onOpen?: (() => any) | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type DrawerProps } from './drawer.vue';
|
|
2
1
|
export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
3
|
direction: {
|
|
@@ -394,4 +393,4 @@ export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
|
|
|
394
393
|
};
|
|
395
394
|
})> & Record<string, any>;
|
|
396
395
|
export default VftDrawer;
|
|
397
|
-
export
|
|
396
|
+
export * from './types';
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -2,46 +2,46 @@ declare function __VLS_template(): {
|
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
-
modelValue: import("vft/es/utils
|
|
5
|
+
modelValue: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
6
6
|
size: {
|
|
7
|
-
readonly type: import("vue").PropType<import("vft/es/utils
|
|
7
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
8
8
|
readonly required: false;
|
|
9
9
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10
10
|
__epPropKey: true;
|
|
11
11
|
};
|
|
12
12
|
disabled: BooleanConstructor;
|
|
13
|
-
label: import("vft/es/utils
|
|
14
|
-
value: import("vft/es/utils
|
|
15
|
-
name: import("vft/es/utils
|
|
13
|
+
label: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
14
|
+
value: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
15
|
+
name: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
16
16
|
border: BooleanConstructor;
|
|
17
17
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
click: (data: import("./types
|
|
18
|
+
click: (data: import("./types").RadioProps) => void;
|
|
19
19
|
change: (data: string | number | boolean | undefined) => void;
|
|
20
20
|
"update:modelValue": (data: string | number | boolean | undefined) => void;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
modelValue: import("vft/es/utils
|
|
22
|
+
modelValue: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
23
23
|
size: {
|
|
24
|
-
readonly type: import("vue").PropType<import("vft/es/utils
|
|
24
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
25
25
|
readonly required: false;
|
|
26
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
27
|
__epPropKey: true;
|
|
28
28
|
};
|
|
29
29
|
disabled: BooleanConstructor;
|
|
30
|
-
label: import("vft/es/utils
|
|
31
|
-
value: import("vft/es/utils
|
|
32
|
-
name: import("vft/es/utils
|
|
30
|
+
label: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
31
|
+
value: import("vft/es/utils").EpPropFinalized<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
|
|
32
|
+
name: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
33
33
|
border: BooleanConstructor;
|
|
34
34
|
}>> & Readonly<{
|
|
35
|
-
onClick?: ((data: import("./types
|
|
35
|
+
onClick?: ((data: import("./types").RadioProps) => any) | undefined;
|
|
36
36
|
"onUpdate:modelValue"?: ((data: string | number | boolean | undefined) => any) | undefined;
|
|
37
37
|
onChange?: ((data: string | number | boolean | undefined) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
|
-
label: import("vft/es/utils
|
|
39
|
+
label: import("vft/es/utils").EpPropMergeType<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown>;
|
|
40
40
|
disabled: boolean;
|
|
41
|
-
value: import("vft/es/utils
|
|
41
|
+
value: import("vft/es/utils").EpPropMergeType<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown>;
|
|
42
42
|
border: boolean;
|
|
43
43
|
name: string;
|
|
44
|
-
modelValue: import("vft/es/utils
|
|
44
|
+
modelValue: import("vft/es/utils").EpPropMergeType<(StringConstructor | NumberConstructor | BooleanConstructor)[], unknown, unknown>;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
46
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
47
47
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RadioButtonProps, RadioEmitProps, RadioProps } from './types
|
|
1
|
+
import type { RadioButtonProps, RadioEmitProps, RadioProps } from './types';
|
|
2
2
|
export declare const useRadio: (props: RadioProps | RadioButtonProps, emit?: RadioEmitProps) => {
|
|
3
3
|
radioRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
4
4
|
isGroup: import("vue").ComputedRef<boolean>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SearchProps } from './search.vue';
|
|
2
1
|
export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
3
|
width: {
|
|
@@ -13,15 +12,57 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
13
12
|
popoverCfg: {
|
|
14
13
|
type: import("vue").PropType<import("vft/es/vft").PopoverProps>;
|
|
15
14
|
};
|
|
15
|
+
id: {
|
|
16
|
+
type: import("vue").PropType<string>;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
16
24
|
modelValue: {
|
|
17
25
|
type: import("vue").PropType<string | number>;
|
|
18
26
|
};
|
|
27
|
+
type: {
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
29
|
+
};
|
|
30
|
+
resize: {
|
|
31
|
+
type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
|
|
32
|
+
};
|
|
33
|
+
autosize: {
|
|
34
|
+
type: import("vue").PropType<boolean | {
|
|
35
|
+
minRows?: number;
|
|
36
|
+
maxRows?: number;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
autocomplete: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
};
|
|
42
|
+
formatter: {
|
|
43
|
+
type: import("vue").PropType<Function>;
|
|
44
|
+
};
|
|
45
|
+
parser: {
|
|
46
|
+
type: import("vue").PropType<Function>;
|
|
47
|
+
};
|
|
19
48
|
placeholder: {
|
|
20
49
|
type: import("vue").PropType<string>;
|
|
21
50
|
};
|
|
51
|
+
form: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
};
|
|
54
|
+
readonly: {
|
|
55
|
+
type: import("vue").PropType<boolean>;
|
|
56
|
+
};
|
|
22
57
|
clearable: {
|
|
23
58
|
type: import("vue").PropType<boolean>;
|
|
24
59
|
};
|
|
60
|
+
showPassword: {
|
|
61
|
+
type: import("vue").PropType<boolean>;
|
|
62
|
+
};
|
|
63
|
+
showWordLimit: {
|
|
64
|
+
type: import("vue").PropType<boolean>;
|
|
65
|
+
};
|
|
25
66
|
suffixIcon: {
|
|
26
67
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
27
68
|
};
|
|
@@ -31,6 +72,21 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
31
72
|
clearIcon: {
|
|
32
73
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
33
74
|
};
|
|
75
|
+
containerRole: {
|
|
76
|
+
type: import("vue").PropType<string>;
|
|
77
|
+
};
|
|
78
|
+
label: {
|
|
79
|
+
type: import("vue").PropType<string>;
|
|
80
|
+
};
|
|
81
|
+
tabindex: {
|
|
82
|
+
type: import("vue").PropType<string | number>;
|
|
83
|
+
};
|
|
84
|
+
validateEvent: {
|
|
85
|
+
type: import("vue").PropType<boolean>;
|
|
86
|
+
};
|
|
87
|
+
inputStyle: {
|
|
88
|
+
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
89
|
+
};
|
|
34
90
|
}>> & Readonly<{
|
|
35
91
|
onInput?: ((val: string | number) => any) | undefined;
|
|
36
92
|
onClear?: (() => any) | undefined;
|
|
@@ -90,15 +146,57 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
90
146
|
popoverCfg: {
|
|
91
147
|
type: import("vue").PropType<import("vft/es/vft").PopoverProps>;
|
|
92
148
|
};
|
|
149
|
+
id: {
|
|
150
|
+
type: import("vue").PropType<string>;
|
|
151
|
+
};
|
|
152
|
+
size: {
|
|
153
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
154
|
+
};
|
|
155
|
+
disabled: {
|
|
156
|
+
type: import("vue").PropType<boolean>;
|
|
157
|
+
};
|
|
93
158
|
modelValue: {
|
|
94
159
|
type: import("vue").PropType<string | number>;
|
|
95
160
|
};
|
|
161
|
+
type: {
|
|
162
|
+
type: import("vue").PropType<string>;
|
|
163
|
+
};
|
|
164
|
+
resize: {
|
|
165
|
+
type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
|
|
166
|
+
};
|
|
167
|
+
autosize: {
|
|
168
|
+
type: import("vue").PropType<boolean | {
|
|
169
|
+
minRows?: number;
|
|
170
|
+
maxRows?: number;
|
|
171
|
+
}>;
|
|
172
|
+
};
|
|
173
|
+
autocomplete: {
|
|
174
|
+
type: import("vue").PropType<string>;
|
|
175
|
+
};
|
|
176
|
+
formatter: {
|
|
177
|
+
type: import("vue").PropType<Function>;
|
|
178
|
+
};
|
|
179
|
+
parser: {
|
|
180
|
+
type: import("vue").PropType<Function>;
|
|
181
|
+
};
|
|
96
182
|
placeholder: {
|
|
97
183
|
type: import("vue").PropType<string>;
|
|
98
184
|
};
|
|
185
|
+
form: {
|
|
186
|
+
type: import("vue").PropType<string>;
|
|
187
|
+
};
|
|
188
|
+
readonly: {
|
|
189
|
+
type: import("vue").PropType<boolean>;
|
|
190
|
+
};
|
|
99
191
|
clearable: {
|
|
100
192
|
type: import("vue").PropType<boolean>;
|
|
101
193
|
};
|
|
194
|
+
showPassword: {
|
|
195
|
+
type: import("vue").PropType<boolean>;
|
|
196
|
+
};
|
|
197
|
+
showWordLimit: {
|
|
198
|
+
type: import("vue").PropType<boolean>;
|
|
199
|
+
};
|
|
102
200
|
suffixIcon: {
|
|
103
201
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
104
202
|
};
|
|
@@ -108,6 +206,21 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
108
206
|
clearIcon: {
|
|
109
207
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
110
208
|
};
|
|
209
|
+
containerRole: {
|
|
210
|
+
type: import("vue").PropType<string>;
|
|
211
|
+
};
|
|
212
|
+
label: {
|
|
213
|
+
type: import("vue").PropType<string>;
|
|
214
|
+
};
|
|
215
|
+
tabindex: {
|
|
216
|
+
type: import("vue").PropType<string | number>;
|
|
217
|
+
};
|
|
218
|
+
validateEvent: {
|
|
219
|
+
type: import("vue").PropType<boolean>;
|
|
220
|
+
};
|
|
221
|
+
inputStyle: {
|
|
222
|
+
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
223
|
+
};
|
|
111
224
|
}>> & Readonly<{
|
|
112
225
|
onInput?: ((val: string | number) => any) | undefined;
|
|
113
226
|
onClear?: (() => any) | undefined;
|
|
@@ -148,15 +261,57 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
148
261
|
popoverCfg: {
|
|
149
262
|
type: import("vue").PropType<import("vft/es/vft").PopoverProps>;
|
|
150
263
|
};
|
|
264
|
+
id: {
|
|
265
|
+
type: import("vue").PropType<string>;
|
|
266
|
+
};
|
|
267
|
+
size: {
|
|
268
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
269
|
+
};
|
|
270
|
+
disabled: {
|
|
271
|
+
type: import("vue").PropType<boolean>;
|
|
272
|
+
};
|
|
151
273
|
modelValue: {
|
|
152
274
|
type: import("vue").PropType<string | number>;
|
|
153
275
|
};
|
|
276
|
+
type: {
|
|
277
|
+
type: import("vue").PropType<string>;
|
|
278
|
+
};
|
|
279
|
+
resize: {
|
|
280
|
+
type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
|
|
281
|
+
};
|
|
282
|
+
autosize: {
|
|
283
|
+
type: import("vue").PropType<boolean | {
|
|
284
|
+
minRows?: number;
|
|
285
|
+
maxRows?: number;
|
|
286
|
+
}>;
|
|
287
|
+
};
|
|
288
|
+
autocomplete: {
|
|
289
|
+
type: import("vue").PropType<string>;
|
|
290
|
+
};
|
|
291
|
+
formatter: {
|
|
292
|
+
type: import("vue").PropType<Function>;
|
|
293
|
+
};
|
|
294
|
+
parser: {
|
|
295
|
+
type: import("vue").PropType<Function>;
|
|
296
|
+
};
|
|
154
297
|
placeholder: {
|
|
155
298
|
type: import("vue").PropType<string>;
|
|
156
299
|
};
|
|
300
|
+
form: {
|
|
301
|
+
type: import("vue").PropType<string>;
|
|
302
|
+
};
|
|
303
|
+
readonly: {
|
|
304
|
+
type: import("vue").PropType<boolean>;
|
|
305
|
+
};
|
|
157
306
|
clearable: {
|
|
158
307
|
type: import("vue").PropType<boolean>;
|
|
159
308
|
};
|
|
309
|
+
showPassword: {
|
|
310
|
+
type: import("vue").PropType<boolean>;
|
|
311
|
+
};
|
|
312
|
+
showWordLimit: {
|
|
313
|
+
type: import("vue").PropType<boolean>;
|
|
314
|
+
};
|
|
160
315
|
suffixIcon: {
|
|
161
316
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
162
317
|
};
|
|
@@ -166,6 +321,21 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
166
321
|
clearIcon: {
|
|
167
322
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
168
323
|
};
|
|
324
|
+
containerRole: {
|
|
325
|
+
type: import("vue").PropType<string>;
|
|
326
|
+
};
|
|
327
|
+
label: {
|
|
328
|
+
type: import("vue").PropType<string>;
|
|
329
|
+
};
|
|
330
|
+
tabindex: {
|
|
331
|
+
type: import("vue").PropType<string | number>;
|
|
332
|
+
};
|
|
333
|
+
validateEvent: {
|
|
334
|
+
type: import("vue").PropType<boolean>;
|
|
335
|
+
};
|
|
336
|
+
inputStyle: {
|
|
337
|
+
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
338
|
+
};
|
|
169
339
|
}>> & Readonly<{
|
|
170
340
|
onInput?: ((val: string | number) => any) | undefined;
|
|
171
341
|
onClear?: (() => any) | undefined;
|
|
@@ -214,5 +384,5 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
214
384
|
default?(_: {}): any;
|
|
215
385
|
};
|
|
216
386
|
})> & Record<string, any>;
|
|
217
|
-
export type { SearchProps };
|
|
218
387
|
export default VftSearch;
|
|
388
|
+
export * from './types';
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type PopoverProps } from 'vft/es/components/popover';
|
|
3
|
-
type _InputProps = Pick<InputProps, 'modelValue' | 'clearable' | 'placeholder' | 'suffixIcon' | 'prefixIcon' | 'clearIcon'>;
|
|
4
|
-
export interface SearchProps {
|
|
5
|
-
/** input 框宽度 */
|
|
6
|
-
width?: string | number;
|
|
7
|
-
/** input 获取焦点时的宽度 */
|
|
8
|
-
activeWidth?: string | number;
|
|
9
|
-
/** 是否需要 popover */
|
|
10
|
-
usePopover?: boolean;
|
|
11
|
-
/** popover 相关配置 参考 element */
|
|
12
|
-
popoverCfg?: PopoverProps;
|
|
13
|
-
}
|
|
1
|
+
import type { SearchProps } from './types';
|
|
14
2
|
declare function showPopover(): void;
|
|
15
3
|
declare function hidePopover(): void;
|
|
16
4
|
declare function __VLS_template(): {
|
|
@@ -20,7 +8,7 @@ declare function __VLS_template(): {
|
|
|
20
8
|
append?(_: {}): any;
|
|
21
9
|
default?(_: {}): any;
|
|
22
10
|
};
|
|
23
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps>>, {
|
|
24
12
|
isFocus: import("vue").Ref<boolean, boolean>;
|
|
25
13
|
isHover: import("vue").Ref<boolean, boolean>;
|
|
26
14
|
visible: import("vue").Ref<boolean, boolean>;
|
|
@@ -43,7 +31,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
31
|
compositionstart: (evt: CompositionEvent) => void;
|
|
44
32
|
compositionupdate: (evt: CompositionEvent) => void;
|
|
45
33
|
compositionend: (evt: CompositionEvent) => void;
|
|
46
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps>>> & Readonly<{
|
|
47
35
|
onInput?: ((val: string | number) => any) | undefined;
|
|
48
36
|
onClear?: (() => any) | undefined;
|
|
49
37
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vueuse/core");require("@vft/utils");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),j=require("../input/index.cjs"),A=require("../popover/index.cjs");require("@vueuse/core");require("@vft/utils");const a=require("../../utils/helper.cjs"),m=require("../../utils/ns-cover.cjs");require("lodash-es");require("../form/index.cjs");const D=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const K=require("@vft/directives"),L=e.defineComponent({name:"vft-search"}),H=e.defineComponent({...L,props:{width:{default:200},activeWidth:{},usePopover:{type:Boolean,default:!1},popoverCfg:{},id:{},size:{},disabled:{type:Boolean},modelValue:{default:""},type:{},resize:{},autosize:{type:[Object,Boolean]},autocomplete:{},formatter:{},parser:{},placeholder:{default:"请输入你要搜索的内容"},form:{},readonly:{type:Boolean},clearable:{type:Boolean,default:!0},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{default:()=>({icon:"icon-search",color:"#8B8C8C",pointer:!0})},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{},validateEvent:{type:Boolean},inputStyle:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","blur","focus","clear","enter","prefixClick","suffixClick","mouseenter","mouseleave","keydown","change","input","compositionstart","compositionupdate","compositionend"],setup(n,{expose:h,emit:C}){const r=D.useNamespace("search"),o=C,f=e.ref(),p=e.ref(),u=e.ref(),s=e.ref(!1),d=e.ref(!1),i=e.ref(!1),y=e.computed(()=>m.generateCssVars({width:n.activeWidth&&(i.value||n.modelValue)?a.addUnit(n.activeWidth):a.addUnit(n.width)},"input")),k=e.computed(()=>m.generateCssVars({"active-width":n.activeWidth?a.addUnit(n.activeWidth):a.addUnit(n.width)},"search")),w=e.computed(()=>({"show-arrow":!1,transition:"vft-zoom-in-top",placement:"bottom-start",offset:3,width:500,...n.popoverCfg})),V=t=>{o("update:modelValue",t),o("input",t)},B=()=>{c()};function g(){i.value=!0}function c(){i.value=!1}const b=()=>{o("clear"),l(!1)};function S(){d.value=!0,o("mouseenter",n.modelValue)}function x(){d.value=!1,o("mouseleave",n.modelValue)}const q=()=>{i.value=!0,s.value=!0,o("focus")};function P(){s.value=!1,o("blur")}function $(){l(),o("prefixClick",n.modelValue)}function R(){l(),o("suffixClick",n.modelValue)}function E(){l(),o("enter",n.modelValue)}function l(t=!0){n.usePopover&&c(),t&&u.value.blur()}const U=t=>{o("keydown",t)},z=e.computed(()=>f.value?.popperRef?.contentRef),M=t=>{o("update:modelValue",t)},W=t=>{o("change",t)},I=t=>{o("compositionstart",t)},O=t=>{o("compositionupdate",t)},F=t=>{o("compositionend",t)};return h({isFocus:s,isHover:d,visible:i,hidePopover:c,showPopover:g,inputRef:u}),(t,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"searchRef",ref:p,class:e.normalizeClass([e.unref(r).b(),e.unref(r).is("active",!!i.value||!!t.modelValue)]),style:e.normalizeStyle(k.value)},[e.createVNode(e.unref(j.VftInput),e.mergeProps({ref_key:"inputRef",ref:u},t.$props,{"input-style":y.value,onInput:V,onFocus:q,onEnter:E,onBlur:P,onMouseenter:S,"onUpdate:modelValue":M,onMouseleave:x,onPrefixClick:$,onSuffixClick:R,onChange:W,onKeydown:U,onClear:b,onCompositionstart:I,onCompositionupdate:O,onCompositionend:F}),e.createSlots({_:2},[t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),key:"0"}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"1"}:void 0,t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),key:"2"}:void 0,t.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append")]),key:"3"}:void 0]),1040,["input-style"])],6)),[[e.unref(K.ClickOutside),B,z.value]]),t.usePopover?(e.openBlock(),e.createBlock(e.unref(A.VftPopover),e.mergeProps({key:0,style:{"--vft-transition-duration":"3s"},ref_key:"popoverRef",ref:f},w.value,{"virtual-ref":p.value,visible:i.value,"onUpdate:visible":v[0]||(v[0]=N=>i.value=N),"virtual-triggering":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("content"))},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["virtual-ref","visible"])):e.createCommentVNode("",!0)],64))}});exports.default=H;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PopoverProps } from 'vft/es/components/popover';
|
|
2
|
+
import type { InputProps } from 'vft/es/components/input';
|
|
3
|
+
export interface SearchProps extends InputProps {
|
|
4
|
+
/** input 框宽度 */
|
|
5
|
+
width?: string | number;
|
|
6
|
+
/** input 获取焦点时的宽度 */
|
|
7
|
+
activeWidth?: string | number;
|
|
8
|
+
/** 是否需要 popover */
|
|
9
|
+
usePopover?: boolean;
|
|
10
|
+
/** popover 相关配置 参考 element */
|
|
11
|
+
popoverCfg?: PopoverProps;
|
|
12
|
+
}
|
|
@@ -259,9 +259,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
259
259
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
260
260
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
261
261
|
readonly effect?: "light" | "dark" | undefined;
|
|
262
|
-
readonly visible?: boolean | null | undefined;
|
|
263
262
|
readonly teleported?: boolean | undefined;
|
|
264
263
|
readonly open?: boolean | undefined;
|
|
264
|
+
readonly visible?: boolean | null | undefined;
|
|
265
265
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
266
266
|
readonly arrowOffset?: number | undefined;
|
|
267
267
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -677,9 +677,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
677
677
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
678
678
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
679
679
|
readonly effect?: "light" | "dark" | undefined;
|
|
680
|
-
readonly visible?: boolean | null | undefined;
|
|
681
680
|
readonly teleported?: boolean | undefined;
|
|
682
681
|
readonly open?: boolean | undefined;
|
|
682
|
+
readonly visible?: boolean | null | undefined;
|
|
683
683
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
684
684
|
readonly arrowOffset?: number | undefined;
|
|
685
685
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1096,9 +1096,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1096
1096
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1097
1097
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1098
1098
|
readonly effect?: "light" | "dark" | undefined;
|
|
1099
|
-
readonly visible?: boolean | null | undefined;
|
|
1100
1099
|
readonly teleported?: boolean | undefined;
|
|
1101
1100
|
readonly open?: boolean | undefined;
|
|
1101
|
+
readonly visible?: boolean | null | undefined;
|
|
1102
1102
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1103
1103
|
readonly arrowOffset?: number | undefined;
|
|
1104
1104
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1514,9 +1514,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1514
1514
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1515
1515
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1516
1516
|
readonly effect?: "light" | "dark" | undefined;
|
|
1517
|
-
readonly visible?: boolean | null | undefined;
|
|
1518
1517
|
readonly teleported?: boolean | undefined;
|
|
1519
1518
|
readonly open?: boolean | undefined;
|
|
1519
|
+
readonly visible?: boolean | null | undefined;
|
|
1520
1520
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1521
1521
|
readonly arrowOffset?: number | undefined;
|
|
1522
1522
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -255,9 +255,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
255
255
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
256
256
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
257
257
|
readonly effect?: "light" | "dark" | undefined;
|
|
258
|
-
readonly visible?: boolean | null | undefined;
|
|
259
258
|
readonly teleported?: boolean | undefined;
|
|
260
259
|
readonly open?: boolean | undefined;
|
|
260
|
+
readonly visible?: boolean | null | undefined;
|
|
261
261
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
262
262
|
readonly arrowOffset?: number | undefined;
|
|
263
263
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -673,9 +673,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
673
673
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
674
674
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
675
675
|
readonly effect?: "light" | "dark" | undefined;
|
|
676
|
-
readonly visible?: boolean | null | undefined;
|
|
677
676
|
readonly teleported?: boolean | undefined;
|
|
678
677
|
readonly open?: boolean | undefined;
|
|
678
|
+
readonly visible?: boolean | null | undefined;
|
|
679
679
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
680
680
|
readonly arrowOffset?: number | undefined;
|
|
681
681
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1092,9 +1092,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1092
1092
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1093
1093
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1094
1094
|
readonly effect?: "light" | "dark" | undefined;
|
|
1095
|
-
readonly visible?: boolean | null | undefined;
|
|
1096
1095
|
readonly teleported?: boolean | undefined;
|
|
1097
1096
|
readonly open?: boolean | undefined;
|
|
1097
|
+
readonly visible?: boolean | null | undefined;
|
|
1098
1098
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1099
1099
|
readonly arrowOffset?: number | undefined;
|
|
1100
1100
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1510,9 +1510,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1510
1510
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1511
1511
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1512
1512
|
readonly effect?: "light" | "dark" | undefined;
|
|
1513
|
-
readonly visible?: boolean | null | undefined;
|
|
1514
1513
|
readonly teleported?: boolean | undefined;
|
|
1515
1514
|
readonly open?: boolean | undefined;
|
|
1515
|
+
readonly visible?: boolean | null | undefined;
|
|
1516
1516
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1517
1517
|
readonly arrowOffset?: number | undefined;
|
|
1518
1518
|
readonly gpuAcceleration?: boolean | undefined;
|