@daysnap/horn-ui
Version:
hron ui
19 lines (17 loc) • 802 B
text/typescript
import type { ExtractPropTypes } from 'vue'
import { omit } from '@daysnap/utils'
import { horLicensePlatePrefixProps } from '../hor-license-plate-prefix'
import { horKeyboardProps } from '../hor-keyboard'
import { makeStringProp, makeBooleanProp } from '../utils'
export const omitLicensePlatePrefixInPlate = omit(horLicensePlatePrefixProps, ['modelValue'])
export const omitKeyboardInPlate = omit(horKeyboardProps, ['modelValue', 'type'])
export const horLicensePlateProps = {
...omitKeyboardInPlate,
...omitLicensePlatePrefixInPlate,
modelValue: makeStringProp(''),
label: makeStringProp('车牌号'),
required: makeBooleanProp(false),
disabled: makeBooleanProp(false),
loose: makeBooleanProp(false),
}
export type HorLicensePlateProps = ExtractPropTypes<typeof horLicensePlateProps>