From 07e163488269e3a08099e6ea19235120be51fb33 Mon Sep 17 00:00:00 2001 From: yuhengshen Date: Sun, 17 Nov 2024 09:37:55 +0800 Subject: [PATCH] feat(Field): add inputmode props (#13208) --- packages/vant/src/field/Field.tsx | 8 ++++++-- packages/vant/src/field/utils.ts | 19 +++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) 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