@yimou6/common-ui 1.11.11 → 1.11.12
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/element-plus.types.d.ts +15 -14
- package/lib/element-plus.types.d.ts +15 -14
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Component } from
|
|
1
|
+
import type { Component } from "vue";
|
|
2
2
|
export interface ElInputProps {
|
|
3
|
-
size?:
|
|
3
|
+
size?: "" | "default" | "small" | "large";
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
modelValue?: string | number | null | undefined;
|
|
6
6
|
maxlength?: string | number;
|
|
7
7
|
minlength?: string | number;
|
|
8
8
|
type?: string;
|
|
9
|
-
resize?:
|
|
9
|
+
resize?: "none" | "both" | "horizontal" | "vertical";
|
|
10
10
|
autosize?: boolean | object;
|
|
11
11
|
autocomplete?: string;
|
|
12
12
|
formatter?: Function;
|
|
@@ -30,13 +30,13 @@ export interface ElSelectProps {
|
|
|
30
30
|
multiple?: boolean;
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
valueKey?: string;
|
|
33
|
-
size?:
|
|
33
|
+
size?: "" | "large" | "default" | "small";
|
|
34
34
|
clearable?: boolean;
|
|
35
35
|
collapseTags?: boolean;
|
|
36
36
|
collapseTagsTooltip?: boolean;
|
|
37
37
|
multipleLimit?: number;
|
|
38
38
|
name?: string;
|
|
39
|
-
effect?:
|
|
39
|
+
effect?: "dark" | "light";
|
|
40
40
|
autocomplete?: string;
|
|
41
41
|
placeholder?: string;
|
|
42
42
|
filterable?: boolean;
|
|
@@ -63,22 +63,22 @@ export interface ElInputNumberProps {
|
|
|
63
63
|
step?: number;
|
|
64
64
|
stepStrictly?: boolean;
|
|
65
65
|
precision?: number;
|
|
66
|
-
size?:
|
|
66
|
+
size?: "large" | "default" | "small";
|
|
67
67
|
readonly?: boolean;
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
controls?: boolean;
|
|
70
|
-
controlsPosition?:
|
|
70
|
+
controlsPosition?: "" | "right";
|
|
71
71
|
}
|
|
72
72
|
export interface ElDatePickerProps {
|
|
73
73
|
readonly?: boolean;
|
|
74
74
|
disabled?: boolean;
|
|
75
|
-
size?:
|
|
75
|
+
size?: "" | "large" | "default" | "small";
|
|
76
76
|
editable?: boolean;
|
|
77
77
|
clearable?: boolean;
|
|
78
78
|
placeholder?: string;
|
|
79
79
|
startPlaceholder?: string;
|
|
80
80
|
endPlaceholder?: string;
|
|
81
|
-
type?:
|
|
81
|
+
type?: "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
82
82
|
format?: string;
|
|
83
83
|
popperClass?: string;
|
|
84
84
|
popperOptions?: object;
|
|
@@ -89,9 +89,10 @@ export interface ElDatePickerProps {
|
|
|
89
89
|
unlinkPanels?: boolean;
|
|
90
90
|
shortcuts?: object;
|
|
91
91
|
teleported?: boolean;
|
|
92
|
+
disabledDate?: (date: any) => boolean;
|
|
92
93
|
}
|
|
93
94
|
export interface ElCascaderProps {
|
|
94
|
-
size?:
|
|
95
|
+
size?: "" | "large" | "default" | "small";
|
|
95
96
|
disabled?: boolean;
|
|
96
97
|
clearable?: boolean;
|
|
97
98
|
filterable?: boolean;
|
|
@@ -113,19 +114,19 @@ export interface ElCascaderProps {
|
|
|
113
114
|
leaf?: string;
|
|
114
115
|
checkStrictly?: boolean;
|
|
115
116
|
emitPath?: boolean;
|
|
116
|
-
expandTrigger?:
|
|
117
|
+
expandTrigger?: "click" | "hover";
|
|
117
118
|
lazy?: boolean;
|
|
118
119
|
lazyLoad?: () => void;
|
|
119
120
|
hoverThreshold?: number;
|
|
120
121
|
};
|
|
121
|
-
expandTrigger?:
|
|
122
|
+
expandTrigger?: "click" | "hover";
|
|
122
123
|
options?: Record<string, unknown>[];
|
|
123
124
|
}
|
|
124
125
|
export interface ElSwitchProps {
|
|
125
126
|
disabled?: boolean;
|
|
126
127
|
loading?: boolean;
|
|
127
128
|
inlinePrompt?: boolean;
|
|
128
|
-
size?:
|
|
129
|
+
size?: "" | "large" | "default" | "small";
|
|
129
130
|
width?: number | string;
|
|
130
131
|
activeText?: string;
|
|
131
132
|
inactiveText?: string;
|
|
@@ -141,7 +142,7 @@ export interface ElSwitchProps {
|
|
|
141
142
|
export interface ElTimePickerProps {
|
|
142
143
|
readonly?: boolean;
|
|
143
144
|
disabled?: boolean;
|
|
144
|
-
size?:
|
|
145
|
+
size?: "" | "large" | "default" | "small";
|
|
145
146
|
editable?: boolean;
|
|
146
147
|
clearable?: boolean;
|
|
147
148
|
placeholder?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Component } from
|
|
1
|
+
import type { Component } from "vue";
|
|
2
2
|
export interface ElInputProps {
|
|
3
|
-
size?:
|
|
3
|
+
size?: "" | "default" | "small" | "large";
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
modelValue?: string | number | null | undefined;
|
|
6
6
|
maxlength?: string | number;
|
|
7
7
|
minlength?: string | number;
|
|
8
8
|
type?: string;
|
|
9
|
-
resize?:
|
|
9
|
+
resize?: "none" | "both" | "horizontal" | "vertical";
|
|
10
10
|
autosize?: boolean | object;
|
|
11
11
|
autocomplete?: string;
|
|
12
12
|
formatter?: Function;
|
|
@@ -30,13 +30,13 @@ export interface ElSelectProps {
|
|
|
30
30
|
multiple?: boolean;
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
valueKey?: string;
|
|
33
|
-
size?:
|
|
33
|
+
size?: "" | "large" | "default" | "small";
|
|
34
34
|
clearable?: boolean;
|
|
35
35
|
collapseTags?: boolean;
|
|
36
36
|
collapseTagsTooltip?: boolean;
|
|
37
37
|
multipleLimit?: number;
|
|
38
38
|
name?: string;
|
|
39
|
-
effect?:
|
|
39
|
+
effect?: "dark" | "light";
|
|
40
40
|
autocomplete?: string;
|
|
41
41
|
placeholder?: string;
|
|
42
42
|
filterable?: boolean;
|
|
@@ -63,22 +63,22 @@ export interface ElInputNumberProps {
|
|
|
63
63
|
step?: number;
|
|
64
64
|
stepStrictly?: boolean;
|
|
65
65
|
precision?: number;
|
|
66
|
-
size?:
|
|
66
|
+
size?: "large" | "default" | "small";
|
|
67
67
|
readonly?: boolean;
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
controls?: boolean;
|
|
70
|
-
controlsPosition?:
|
|
70
|
+
controlsPosition?: "" | "right";
|
|
71
71
|
}
|
|
72
72
|
export interface ElDatePickerProps {
|
|
73
73
|
readonly?: boolean;
|
|
74
74
|
disabled?: boolean;
|
|
75
|
-
size?:
|
|
75
|
+
size?: "" | "large" | "default" | "small";
|
|
76
76
|
editable?: boolean;
|
|
77
77
|
clearable?: boolean;
|
|
78
78
|
placeholder?: string;
|
|
79
79
|
startPlaceholder?: string;
|
|
80
80
|
endPlaceholder?: string;
|
|
81
|
-
type?:
|
|
81
|
+
type?: "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
82
82
|
format?: string;
|
|
83
83
|
popperClass?: string;
|
|
84
84
|
popperOptions?: object;
|
|
@@ -89,9 +89,10 @@ export interface ElDatePickerProps {
|
|
|
89
89
|
unlinkPanels?: boolean;
|
|
90
90
|
shortcuts?: object;
|
|
91
91
|
teleported?: boolean;
|
|
92
|
+
disabledDate?: (date: any) => boolean;
|
|
92
93
|
}
|
|
93
94
|
export interface ElCascaderProps {
|
|
94
|
-
size?:
|
|
95
|
+
size?: "" | "large" | "default" | "small";
|
|
95
96
|
disabled?: boolean;
|
|
96
97
|
clearable?: boolean;
|
|
97
98
|
filterable?: boolean;
|
|
@@ -113,19 +114,19 @@ export interface ElCascaderProps {
|
|
|
113
114
|
leaf?: string;
|
|
114
115
|
checkStrictly?: boolean;
|
|
115
116
|
emitPath?: boolean;
|
|
116
|
-
expandTrigger?:
|
|
117
|
+
expandTrigger?: "click" | "hover";
|
|
117
118
|
lazy?: boolean;
|
|
118
119
|
lazyLoad?: () => void;
|
|
119
120
|
hoverThreshold?: number;
|
|
120
121
|
};
|
|
121
|
-
expandTrigger?:
|
|
122
|
+
expandTrigger?: "click" | "hover";
|
|
122
123
|
options?: Record<string, unknown>[];
|
|
123
124
|
}
|
|
124
125
|
export interface ElSwitchProps {
|
|
125
126
|
disabled?: boolean;
|
|
126
127
|
loading?: boolean;
|
|
127
128
|
inlinePrompt?: boolean;
|
|
128
|
-
size?:
|
|
129
|
+
size?: "" | "large" | "default" | "small";
|
|
129
130
|
width?: number | string;
|
|
130
131
|
activeText?: string;
|
|
131
132
|
inactiveText?: string;
|
|
@@ -141,7 +142,7 @@ export interface ElSwitchProps {
|
|
|
141
142
|
export interface ElTimePickerProps {
|
|
142
143
|
readonly?: boolean;
|
|
143
144
|
disabled?: boolean;
|
|
144
|
-
size?:
|
|
145
|
+
size?: "" | "large" | "default" | "small";
|
|
145
146
|
editable?: boolean;
|
|
146
147
|
clearable?: boolean;
|
|
147
148
|
placeholder?: string;
|