fix(Field): autofocus prop not work (#8488)
This commit is contained in:
@@ -59,6 +59,7 @@ export const fieldProps = {
|
||||
formatter: Function as PropType<(value: string) => string>,
|
||||
leftIcon: String,
|
||||
rightIcon: String,
|
||||
autofocus: Boolean,
|
||||
clearable: Boolean,
|
||||
maxlength: [Number, String],
|
||||
inputAlign: String as PropType<FieldTextAlign>,
|
||||
@@ -397,6 +398,7 @@ export default defineComponent({
|
||||
value: props.modelValue,
|
||||
disabled: getProp('disabled'),
|
||||
readonly: getProp('readonly'),
|
||||
autofocus: props.autofocus,
|
||||
placeholder: props.placeholder,
|
||||
autocomplete: props.autocomplete,
|
||||
onBlur,
|
||||
|
||||
Reference in New Issue
Block a user