props.js 658 B

123456789101112131415161718192021
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 键盘的类型,number-数字键盘,card-身份证键盘
  6. mode: {
  7. type: String,
  8. default: () => defProps.numberKeyboard.value
  9. },
  10. // 是否显示键盘的"."符号
  11. dotDisabled: {
  12. type: Boolean,
  13. default: () => defProps.numberKeyboard.dotDisabled
  14. },
  15. // 是否打乱键盘按键的顺序
  16. random: {
  17. type: Boolean,
  18. default: () => defProps.numberKeyboard.random
  19. }
  20. }
  21. })