diff --git a/src/packages/__VUE/numberkeyboard/index.taro.vue b/src/packages/__VUE/numberkeyboard/index.taro.vue index 2dafedbffe..7b4582bc34 100644 --- a/src/packages/__VUE/numberkeyboard/index.taro.vue +++ b/src/packages/__VUE/numberkeyboard/index.taro.vue @@ -81,6 +81,7 @@ import { computed, ref, watch, Ref, PropType } from 'vue'; import { createComponent } from '@/packages/utils/create'; import NutPopup from '../popup/index.taro.vue'; import { useLocale } from '@/packages/utils/useLocale'; +import { NumberKeyboardType } from './types'; const { create } = createComponent('number-keyboard'); export interface keys { id: number | string; @@ -105,7 +106,7 @@ export default create({ default: false }, type: { - type: String, + type: String as PropType, default: 'default' }, customKey: { diff --git a/src/packages/__VUE/numberkeyboard/index.vue b/src/packages/__VUE/numberkeyboard/index.vue index e6740858c3..26d423cdfe 100644 --- a/src/packages/__VUE/numberkeyboard/index.vue +++ b/src/packages/__VUE/numberkeyboard/index.vue @@ -81,6 +81,7 @@ import { computed, ref, watch, Ref, PropType } from 'vue'; import { createComponent } from '@/packages/utils/create'; import NutPopup from '../popup/index.vue'; import { useLocale } from '@/packages/utils/useLocale'; +import { NumberKeyboardType } from './types'; const { create } = createComponent('number-keyboard'); export interface keys { id: number | string; @@ -105,7 +106,7 @@ export default create({ default: false }, type: { - type: String, + type: String as PropType, default: 'default' }, customKey: { diff --git a/src/packages/__VUE/numberkeyboard/types.ts b/src/packages/__VUE/numberkeyboard/types.ts new file mode 100644 index 0000000000..b8aa558497 --- /dev/null +++ b/src/packages/__VUE/numberkeyboard/types.ts @@ -0,0 +1 @@ +export type NumberKeyboardType = 'default' | 'rightColumn';