diff --git a/src/pages-sub/components/input/index.vue b/src/pages-sub/components/input/index.vue index 9397f40..21ae6ee 100644 --- a/src/pages-sub/components/input/index.vue +++ b/src/pages-sub/components/input/index.vue @@ -14,6 +14,7 @@ import type { InputType as UniInputType } from '@uni-helper/uni-app-types' // password, email - 其它常见类型 // Compose our input types from the project's InputType and add a couple extra platform-specific keys type _InputType = UniInputType | 'safe-password' | 'nickname' +type _InputInputMode = "text" | 'numeric' | 'decimal' const props = defineProps({ value: { @@ -39,6 +40,10 @@ const props = defineProps({ inputDirection: { type: String as PropType<'text-left' | 'text-right' | 'text-center'>, default: 'text-left' + }, + inputMode:{ + type: String as PropType<_InputInputMode>, + default: undefined } }) @@ -55,7 +60,7 @@ const innerValue = computed({