|
|
|
@ -2,6 +2,7 @@ import type { ExtractPropTypes, PropType } from 'vue';
|
|
|
|
|
import PropTypes from '../_util/vue-types'; |
|
|
|
|
import type { SizeType } from '../config-provider'; |
|
|
|
|
import omit from '../_util/omit'; |
|
|
|
|
import type { LiteralUnion } from '../_util/type'; |
|
|
|
|
export const inputDefaultValue = Symbol() as unknown as string; |
|
|
|
|
const inputProps = { |
|
|
|
|
id: PropTypes.string, |
|
|
|
@ -18,6 +19,7 @@ const inputProps = {
|
|
|
|
|
autocomplete: String, |
|
|
|
|
type: { |
|
|
|
|
type: String as PropType< |
|
|
|
|
LiteralUnion< |
|
|
|
|
| 'button' |
|
|
|
|
| 'checkbox' |
|
|
|
|
| 'color' |
|
|
|
@ -39,7 +41,9 @@ const inputProps = {
|
|
|
|
|
| 'text' |
|
|
|
|
| 'time' |
|
|
|
|
| 'url' |
|
|
|
|
| 'week' |
|
|
|
|
| 'week', |
|
|
|
|
string |
|
|
|
|
> |
|
|
|
|
>, |
|
|
|
|
default: 'text', |
|
|
|
|
}, |
|
|
|
|