UNPKG

@daysnap/horn-ui

Version:

hron ui

17 lines (14 loc) 527 B
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>