import type { ExtractPropTypes } from 'vue'
import { makeArrayProp, makeNumericProp, makeStringProp } from '../utils'
export type KeyboardType = 'vin' | 'lic' | 'idNum' | 'phone' | 'num' | ''

export const horKeyboardProps = {
  modelValue: makeStringProp(''),
  type: makeStringProp<KeyboardType>(''),
  max: makeNumericProp(999),
  placeholder: makeStringProp('请输入'),
  disabledKey: makeArrayProp<string>(),
  copy: {
    type: Function,
  },
}

export type HorKeyboardProps = ExtractPropTypes<typeof horKeyboardProps>
