props.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { IBaseProps } from '../_util/base';
  2. export interface INumberKeyboardProps extends IBaseProps {
  3. /**
  4. * @description 样式
  5. * @default ''
  6. */
  7. className: string;
  8. /**
  9. * @description 关闭箭头
  10. * @default false
  11. */
  12. closeable: boolean;
  13. /**
  14. * @description 展示小数点
  15. * @default true
  16. */
  17. point: boolean;
  18. /**
  19. * @description 确认按钮文字
  20. * @default ''
  21. */
  22. confirmText: string;
  23. /**
  24. * @description 是否震动
  25. * @default true
  26. */
  27. vibrate: boolean;
  28. /**
  29. * @description 是否展示
  30. * @default false
  31. */
  32. visible: boolean;
  33. /**
  34. * @description 值
  35. * @default ''
  36. */
  37. value: string;
  38. /**
  39. * @description 安全距离
  40. * @default true
  41. */
  42. safeArea: boolean;
  43. /**
  44. * @description 乱序
  45. * @default fasle
  46. */
  47. random: boolean;
  48. /**
  49. * @description 禁用
  50. * @default false
  51. */
  52. confirmDisabled: boolean;
  53. /**
  54. * @description 输入值变化时的回调
  55. */
  56. onChange: (val: string) => void;
  57. /**
  58. * @description 点击确认时的回调
  59. */
  60. onConfirm: () => void;
  61. /**
  62. * @description 隐藏键盘时的回调
  63. */
  64. onClose: () => void;
  65. }
  66. export declare const NumberKeyboardDefaultProps: Partial<INumberKeyboardProps>;