2026-07-23 14:31:06 +08:00
|
|
|
import { defineMixin } from '../../libs/vue'
|
|
|
|
|
import NumberKeyboardDefaultProps from './numberKeyboard'
|
|
|
|
|
import { registerComponentProps } from '../../libs/config/props.js'
|
|
|
|
|
|
|
|
|
|
const defProps = registerComponentProps(NumberKeyboardDefaultProps)
|
|
|
|
|
export const props = defineMixin({
|
|
|
|
|
props: {
|
|
|
|
|
// 键盘的类型,number-数字键盘,card-身份证键盘
|
|
|
|
|
mode: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: () => defProps.numberKeyboard.value
|
|
|
|
|
},
|
|
|
|
|
// 是否显示键盘的"."符号
|
|
|
|
|
dotDisabled: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: () => defProps.numberKeyboard.dotDisabled
|
|
|
|
|
},
|
|
|
|
|
// 是否打乱键盘按键的顺序
|
|
|
|
|
random: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: () => defProps.numberKeyboard.random
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|