File tree Expand file tree Collapse file tree 1 file changed +26
-22
lines changed Expand file tree Collapse file tree 1 file changed +26
-22
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { ExtractPropTypes, PropType } from 'vue';
2
2
import PropTypes from '../_util/vue-types' ;
3
3
import type { SizeType } from '../config-provider' ;
4
4
import omit from '../_util/omit' ;
5
+ import type { LiteralUnion } from '../_util/type' ;
5
6
export const inputDefaultValue = Symbol ( ) as unknown as string ;
6
7
const inputProps = {
7
8
id : PropTypes . string ,
@@ -18,28 +19,31 @@ const inputProps = {
18
19
autocomplete : String ,
19
20
type : {
20
21
type : String as PropType <
21
- | 'button'
22
- | 'checkbox'
23
- | 'color'
24
- | 'date'
25
- | 'datetime-local'
26
- | 'email'
27
- | 'file'
28
- | 'hidden'
29
- | 'image'
30
- | 'month'
31
- | 'number'
32
- | 'password'
33
- | 'radio'
34
- | 'range'
35
- | 'reset'
36
- | 'search'
37
- | 'submit'
38
- | 'tel'
39
- | 'text'
40
- | 'time'
41
- | 'url'
42
- | 'week'
22
+ LiteralUnion <
23
+ | 'button'
24
+ | 'checkbox'
25
+ | 'color'
26
+ | 'date'
27
+ | 'datetime-local'
28
+ | 'email'
29
+ | 'file'
30
+ | 'hidden'
31
+ | 'image'
32
+ | 'month'
33
+ | 'number'
34
+ | 'password'
35
+ | 'radio'
36
+ | 'range'
37
+ | 'reset'
38
+ | 'search'
39
+ | 'submit'
40
+ | 'tel'
41
+ | 'text'
42
+ | 'time'
43
+ | 'url'
44
+ | 'week' ,
45
+ string
46
+ >
43
47
> ,
44
48
default : 'text' ,
45
49
} ,
You can’t perform that action at this time.
0 commit comments