diff --git a/packages/vant/src/field/Field.tsx b/packages/vant/src/field/Field.tsx index 4511df21a..9af4aad31 100644 --- a/packages/vant/src/field/Field.tsx +++ b/packages/vant/src/field/Field.tsx @@ -9,6 +9,7 @@ import { defineComponent, type PropType, type ExtractPropTypes, + type HTMLAttributes, } from 'vue'; // Utils @@ -112,6 +113,7 @@ export const fieldSharedProps = { type: Boolean, default: null, }, + inputmode: String as PropType, }; export const fieldProps = extend({}, cellSharedProps, fieldSharedProps, { @@ -539,10 +541,12 @@ export default defineComponent({ }; if (props.type === 'textarea') { - return