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';
22import PropTypes from '../_util/vue-types' ;
33import type { SizeType } from '../config-provider' ;
44import omit from '../_util/omit' ;
5+ import type { LiteralUnion } from '../_util/type' ;
56export const inputDefaultValue = Symbol ( ) as unknown as string ;
67const inputProps = {
78 id : PropTypes . string ,
@@ -18,28 +19,31 @@ const inputProps = {
1819 autocomplete : String ,
1920 type : {
2021 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+ >
4347 > ,
4448 default : 'text' ,
4549 } ,
You can’t perform that action at this time.
0 commit comments