@bscjc/webui 1.4.0 → 1.4.2
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/dist/components/JcCascader/index.d.ts +25 -187
- package/dist/components/JcCascader/index.vue.d.ts +37 -100
- package/dist/components/JcColumnConfig/index.d.ts +10 -94
- package/dist/components/JcColumnConfig/index.vue.d.ts +24 -63
- package/dist/components/JcColumnConfig/types.d.ts +2 -0
- package/dist/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
- package/dist/components/JcDatePicker/index.d.ts +24 -105
- package/dist/components/JcDatePicker/index.vue.d.ts +26 -58
- package/dist/components/JcImportButton/index.d.ts +14 -41
- package/dist/components/JcImportButton/index.vue.d.ts +19 -26
- package/dist/components/JcImportDialog/index.d.ts +14 -74
- package/dist/components/JcImportDialog/index.vue.d.ts +25 -48
- package/dist/components/JcInputComplex/index.d.ts +48 -90
- package/dist/components/JcInputComplex/index.vue.d.ts +32 -48
- package/dist/components/JcInputSwitch/index.d.ts +42 -90
- package/dist/components/JcInputSwitch/index.vue.d.ts +30 -48
- package/dist/components/JcMoreQueryContain/index.d.ts +14 -197
- package/dist/components/JcMoreQueryContain/index.vue.d.ts +23 -88
- package/dist/components/JcSelectQuery/index.d.ts +19 -178
- package/dist/components/JcSelectQuery/index.vue.d.ts +37 -106
- package/dist/components/JcTagQuery/index.d.ts +4 -19
- package/dist/components/JcTagQuery/index.vue.d.ts +7 -12
- package/dist/es/index.mjs +2032 -2066
- package/dist/index.css +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/lib/index.cjs +8 -8
- package/dist/types/components/JcCascader/index.d.ts +25 -187
- package/dist/types/components/JcCascader/index.vue.d.ts +37 -100
- package/dist/types/components/JcColumnConfig/index.d.ts +10 -94
- package/dist/types/components/JcColumnConfig/index.vue.d.ts +24 -63
- package/dist/types/components/JcColumnConfig/types.d.ts +2 -0
- package/dist/types/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
- package/dist/types/components/JcDatePicker/index.d.ts +24 -105
- package/dist/types/components/JcDatePicker/index.vue.d.ts +26 -58
- package/dist/types/components/JcImportButton/index.d.ts +14 -41
- package/dist/types/components/JcImportButton/index.vue.d.ts +19 -26
- package/dist/types/components/JcImportDialog/index.d.ts +14 -74
- package/dist/types/components/JcImportDialog/index.vue.d.ts +25 -48
- package/dist/types/components/JcInputComplex/index.d.ts +51 -93
- package/dist/types/components/JcInputComplex/index.vue.d.ts +126 -141
- package/dist/types/components/JcInputSwitch/index.d.ts +45 -93
- package/dist/types/components/JcInputSwitch/index.vue.d.ts +74 -91
- package/dist/types/components/JcMoreQueryContain/index.d.ts +14 -197
- package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +108 -172
- package/dist/types/components/JcSelectQuery/index.d.ts +19 -178
- package/dist/types/components/JcSelectQuery/index.vue.d.ts +137 -206
- package/dist/types/components/JcTagQuery/index.d.ts +4 -19
- package/dist/types/components/JcTagQuery/index.vue.d.ts +7 -12
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,120 +1,78 @@
|
|
|
1
1
|
export declare const JcInputComplex: {
|
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
3
|
-
|
|
4
|
-
type: import("vue").PropType<Array<{
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}>>;
|
|
8
|
-
require: boolean;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
size: {
|
|
12
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
13
|
-
default: string;
|
|
14
|
-
validator: (value: string) => boolean;
|
|
15
|
-
};
|
|
16
|
-
width: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
injectionKey: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{
|
|
25
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
|
|
3
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
26
4
|
}>, {
|
|
27
|
-
|
|
5
|
+
blur: () => void | undefined;
|
|
6
|
+
clear: () => void | undefined;
|
|
7
|
+
focus: () => void | undefined;
|
|
8
|
+
select: () => void | undefined;
|
|
9
|
+
resizeTextarea: () => void | undefined;
|
|
10
|
+
setInputValueMult: (query: any) => void;
|
|
11
|
+
setInputByOutside: () => void;
|
|
12
|
+
input: HTMLInputElement | undefined;
|
|
13
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
14
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
15
|
+
textareaStyle: import("vue").StyleValue;
|
|
16
|
+
isComposing: boolean | undefined;
|
|
28
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
fieldChange: (
|
|
18
|
+
fieldChange: (val: string) => any;
|
|
30
19
|
}, import("vue").PublicProps, {
|
|
31
20
|
size: "small" | "default" | "large";
|
|
32
21
|
injectionKey: string;
|
|
33
22
|
width: string;
|
|
34
|
-
fieldList:
|
|
35
|
-
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
|
+
fieldList: import("./index.vue").InputComplexFieldItem[];
|
|
24
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
25
|
P: {};
|
|
40
26
|
B: {};
|
|
41
27
|
D: {};
|
|
42
28
|
C: {};
|
|
43
29
|
M: {};
|
|
44
30
|
Defaults: {};
|
|
45
|
-
}, Readonly<import("vue").
|
|
46
|
-
|
|
47
|
-
type: import("vue").PropType<Array<{
|
|
48
|
-
label: string;
|
|
49
|
-
value: string;
|
|
50
|
-
}>>;
|
|
51
|
-
require: boolean;
|
|
52
|
-
default: () => never[];
|
|
53
|
-
};
|
|
54
|
-
size: {
|
|
55
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
56
|
-
default: string;
|
|
57
|
-
validator: (value: string) => boolean;
|
|
58
|
-
};
|
|
59
|
-
width: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
injectionKey: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
};
|
|
67
|
-
}>> & Readonly<{
|
|
68
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, Readonly<import("./index.vue").Props> & Readonly<{
|
|
32
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
69
33
|
}>, {
|
|
70
|
-
|
|
34
|
+
blur: () => void | undefined;
|
|
35
|
+
clear: () => void | undefined;
|
|
36
|
+
focus: () => void | undefined;
|
|
37
|
+
select: () => void | undefined;
|
|
38
|
+
resizeTextarea: () => void | undefined;
|
|
39
|
+
setInputValueMult: (query: any) => void;
|
|
40
|
+
setInputByOutside: () => void;
|
|
41
|
+
input: HTMLInputElement | undefined;
|
|
42
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
43
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
44
|
+
textareaStyle: import("vue").StyleValue;
|
|
45
|
+
isComposing: boolean | undefined;
|
|
71
46
|
}, {}, {}, {}, {
|
|
72
47
|
size: "small" | "default" | "large";
|
|
73
48
|
injectionKey: string;
|
|
74
49
|
width: string;
|
|
75
|
-
fieldList:
|
|
76
|
-
label: string;
|
|
77
|
-
value: string;
|
|
78
|
-
}[];
|
|
50
|
+
fieldList: import("./index.vue").InputComplexFieldItem[];
|
|
79
51
|
}>;
|
|
80
52
|
__isFragment?: never;
|
|
81
53
|
__isTeleport?: never;
|
|
82
54
|
__isSuspense?: never;
|
|
83
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
84
|
-
|
|
85
|
-
type: import("vue").PropType<Array<{
|
|
86
|
-
label: string;
|
|
87
|
-
value: string;
|
|
88
|
-
}>>;
|
|
89
|
-
require: boolean;
|
|
90
|
-
default: () => never[];
|
|
91
|
-
};
|
|
92
|
-
size: {
|
|
93
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
94
|
-
default: string;
|
|
95
|
-
validator: (value: string) => boolean;
|
|
96
|
-
};
|
|
97
|
-
width: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
injectionKey: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
}>> & Readonly<{
|
|
106
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
|
|
56
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
107
57
|
}>, {
|
|
108
|
-
|
|
58
|
+
blur: () => void | undefined;
|
|
59
|
+
clear: () => void | undefined;
|
|
60
|
+
focus: () => void | undefined;
|
|
61
|
+
select: () => void | undefined;
|
|
62
|
+
resizeTextarea: () => void | undefined;
|
|
63
|
+
setInputValueMult: (query: any) => void;
|
|
64
|
+
setInputByOutside: () => void;
|
|
65
|
+
input: HTMLInputElement | undefined;
|
|
66
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
67
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
68
|
+
textareaStyle: import("vue").StyleValue;
|
|
69
|
+
isComposing: boolean | undefined;
|
|
109
70
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
110
|
-
fieldChange: (
|
|
71
|
+
fieldChange: (val: string) => any;
|
|
111
72
|
}, string, {
|
|
112
73
|
size: "small" | "default" | "large";
|
|
113
74
|
injectionKey: string;
|
|
114
75
|
width: string;
|
|
115
|
-
fieldList:
|
|
116
|
-
label: string;
|
|
117
|
-
value: string;
|
|
118
|
-
}[];
|
|
76
|
+
fieldList: import("./index.vue").InputComplexFieldItem[];
|
|
119
77
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
120
78
|
export default JcInputComplex;
|
|
@@ -1,56 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** 字段选项类型 */
|
|
2
|
+
export interface InputComplexFieldItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
5
|
+
}
|
|
6
|
+
/** 组件 Props 类型 */
|
|
7
|
+
export interface Props {
|
|
8
|
+
/** 字段列表 */
|
|
9
|
+
fieldList: InputComplexFieldItem[];
|
|
10
|
+
/** 组件尺寸 */
|
|
11
|
+
size?: "small" | "default" | "large";
|
|
12
|
+
/** 组件宽度 */
|
|
13
|
+
width?: string;
|
|
14
|
+
/** 自定义注入键值 */
|
|
15
|
+
injectionKey?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
18
|
+
blur: () => void | undefined;
|
|
19
|
+
clear: () => void | undefined;
|
|
20
|
+
focus: () => void | undefined;
|
|
21
|
+
select: () => void | undefined;
|
|
22
|
+
resizeTextarea: () => void | undefined;
|
|
23
|
+
setInputValueMult: (query: any) => void;
|
|
24
|
+
setInputByOutside: () => void;
|
|
25
|
+
input: HTMLInputElement | undefined;
|
|
26
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
27
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
28
|
+
textareaStyle: import("vue").StyleValue;
|
|
29
|
+
isComposing: boolean | undefined;
|
|
27
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
fieldChange: (
|
|
29
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
30
|
-
|
|
31
|
-
type: PropType<Array<fieldType>>;
|
|
32
|
-
require: boolean;
|
|
33
|
-
default: () => never[];
|
|
34
|
-
};
|
|
35
|
-
size: {
|
|
36
|
-
type: PropType<"small" | "default" | "large">;
|
|
37
|
-
default: string;
|
|
38
|
-
validator: (value: string) => boolean;
|
|
39
|
-
};
|
|
40
|
-
width: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
injectionKey: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
}>> & Readonly<{
|
|
49
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
fieldChange: (val: string) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
33
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
50
34
|
}>, {
|
|
51
35
|
size: "small" | "default" | "large";
|
|
52
36
|
injectionKey: string;
|
|
53
37
|
width: string;
|
|
54
|
-
fieldList:
|
|
55
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
38
|
+
fieldList: InputComplexFieldItem[];
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
40
|
export default _default;
|
|
@@ -1,120 +1,72 @@
|
|
|
1
1
|
export declare const JcInputSwitch: {
|
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
3
|
-
|
|
4
|
-
type: import("vue").PropType<Array<{
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}>>;
|
|
8
|
-
required: true;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
size: {
|
|
12
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
13
|
-
default: string;
|
|
14
|
-
validator: (value: string) => boolean;
|
|
15
|
-
};
|
|
16
|
-
width: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
injectionKey: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{
|
|
25
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
|
|
3
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
26
4
|
}>, {
|
|
27
|
-
|
|
5
|
+
blur: () => void | undefined;
|
|
6
|
+
clear: () => void | undefined;
|
|
7
|
+
focus: () => void | undefined;
|
|
8
|
+
select: () => void | undefined;
|
|
9
|
+
resizeTextarea: () => void | undefined;
|
|
10
|
+
input: HTMLInputElement | undefined;
|
|
11
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
12
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
13
|
+
textareaStyle: import("vue").StyleValue;
|
|
14
|
+
isComposing: boolean | undefined;
|
|
28
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
fieldChange: (
|
|
16
|
+
fieldChange: (val: string) => any;
|
|
30
17
|
}, import("vue").PublicProps, {
|
|
31
18
|
size: "small" | "default" | "large";
|
|
32
19
|
injectionKey: string;
|
|
33
20
|
width: string;
|
|
34
|
-
fieldList:
|
|
35
|
-
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
21
|
+
fieldList: import("./index.vue").InputSwitchFieldItem[];
|
|
22
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
23
|
P: {};
|
|
40
24
|
B: {};
|
|
41
25
|
D: {};
|
|
42
26
|
C: {};
|
|
43
27
|
M: {};
|
|
44
28
|
Defaults: {};
|
|
45
|
-
}, Readonly<import("vue").
|
|
46
|
-
|
|
47
|
-
type: import("vue").PropType<Array<{
|
|
48
|
-
label: string;
|
|
49
|
-
value: string;
|
|
50
|
-
}>>;
|
|
51
|
-
required: true;
|
|
52
|
-
default: () => never[];
|
|
53
|
-
};
|
|
54
|
-
size: {
|
|
55
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
56
|
-
default: string;
|
|
57
|
-
validator: (value: string) => boolean;
|
|
58
|
-
};
|
|
59
|
-
width: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
injectionKey: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
};
|
|
67
|
-
}>> & Readonly<{
|
|
68
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, Readonly<import("./index.vue").Props> & Readonly<{
|
|
30
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
69
31
|
}>, {
|
|
70
|
-
|
|
32
|
+
blur: () => void | undefined;
|
|
33
|
+
clear: () => void | undefined;
|
|
34
|
+
focus: () => void | undefined;
|
|
35
|
+
select: () => void | undefined;
|
|
36
|
+
resizeTextarea: () => void | undefined;
|
|
37
|
+
input: HTMLInputElement | undefined;
|
|
38
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
39
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
40
|
+
textareaStyle: import("vue").StyleValue;
|
|
41
|
+
isComposing: boolean | undefined;
|
|
71
42
|
}, {}, {}, {}, {
|
|
72
43
|
size: "small" | "default" | "large";
|
|
73
44
|
injectionKey: string;
|
|
74
45
|
width: string;
|
|
75
|
-
fieldList:
|
|
76
|
-
label: string;
|
|
77
|
-
value: string;
|
|
78
|
-
}[];
|
|
46
|
+
fieldList: import("./index.vue").InputSwitchFieldItem[];
|
|
79
47
|
}>;
|
|
80
48
|
__isFragment?: never;
|
|
81
49
|
__isTeleport?: never;
|
|
82
50
|
__isSuspense?: never;
|
|
83
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
84
|
-
|
|
85
|
-
type: import("vue").PropType<Array<{
|
|
86
|
-
label: string;
|
|
87
|
-
value: string;
|
|
88
|
-
}>>;
|
|
89
|
-
required: true;
|
|
90
|
-
default: () => never[];
|
|
91
|
-
};
|
|
92
|
-
size: {
|
|
93
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
94
|
-
default: string;
|
|
95
|
-
validator: (value: string) => boolean;
|
|
96
|
-
};
|
|
97
|
-
width: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
injectionKey: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
}>> & Readonly<{
|
|
106
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
|
|
52
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
107
53
|
}>, {
|
|
108
|
-
|
|
54
|
+
blur: () => void | undefined;
|
|
55
|
+
clear: () => void | undefined;
|
|
56
|
+
focus: () => void | undefined;
|
|
57
|
+
select: () => void | undefined;
|
|
58
|
+
resizeTextarea: () => void | undefined;
|
|
59
|
+
input: HTMLInputElement | undefined;
|
|
60
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
61
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
62
|
+
textareaStyle: import("vue").StyleValue;
|
|
63
|
+
isComposing: boolean | undefined;
|
|
109
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
110
|
-
fieldChange: (
|
|
65
|
+
fieldChange: (val: string) => any;
|
|
111
66
|
}, string, {
|
|
112
67
|
size: "small" | "default" | "large";
|
|
113
68
|
injectionKey: string;
|
|
114
69
|
width: string;
|
|
115
|
-
fieldList:
|
|
116
|
-
label: string;
|
|
117
|
-
value: string;
|
|
118
|
-
}[];
|
|
70
|
+
fieldList: import("./index.vue").InputSwitchFieldItem[];
|
|
119
71
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
120
72
|
export default JcInputSwitch;
|
|
@@ -1,56 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** 字段选项类型 */
|
|
2
|
+
export interface InputSwitchFieldItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
5
|
+
}
|
|
6
|
+
/** 组件 Props 类型 */
|
|
7
|
+
export interface Props {
|
|
8
|
+
/** 字段列表 */
|
|
9
|
+
fieldList: InputSwitchFieldItem[];
|
|
10
|
+
/** 组件尺寸 */
|
|
11
|
+
size?: "small" | "default" | "large";
|
|
12
|
+
/** 组件宽度 */
|
|
13
|
+
width?: string;
|
|
14
|
+
/** 自定义注入键值 */
|
|
15
|
+
injectionKey?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
18
|
+
blur: () => void | undefined;
|
|
19
|
+
clear: () => void | undefined;
|
|
20
|
+
focus: () => void | undefined;
|
|
21
|
+
select: () => void | undefined;
|
|
22
|
+
resizeTextarea: () => void | undefined;
|
|
23
|
+
input: HTMLInputElement | undefined;
|
|
24
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
25
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
26
|
+
textareaStyle: import("vue").StyleValue;
|
|
27
|
+
isComposing: boolean | undefined;
|
|
27
28
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
fieldChange: (
|
|
29
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
30
|
-
|
|
31
|
-
type: PropType<Array<fieldType>>;
|
|
32
|
-
required: true;
|
|
33
|
-
default: () => never[];
|
|
34
|
-
};
|
|
35
|
-
size: {
|
|
36
|
-
type: PropType<"small" | "default" | "large">;
|
|
37
|
-
default: string;
|
|
38
|
-
validator: (value: string) => boolean;
|
|
39
|
-
};
|
|
40
|
-
width: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
injectionKey: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
}>> & Readonly<{
|
|
49
|
-
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
fieldChange: (val: string) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
31
|
+
onFieldChange?: ((val: string) => any) | undefined;
|
|
50
32
|
}>, {
|
|
51
33
|
size: "small" | "default" | "large";
|
|
52
34
|
injectionKey: string;
|
|
53
35
|
width: string;
|
|
54
|
-
fieldList:
|
|
55
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
36
|
+
fieldList: InputSwitchFieldItem[];
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
38
|
export default _default;
|