input-number.vue.d.ts 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { InputNumberProps } from "./input-number.js";
  2. import * as vue from "vue";
  3. //#region ../../packages/components/input-number/src/input-number.vue.d.ts
  4. declare var __VLS_1: {}, __VLS_19: {}, __VLS_52: {}, __VLS_55: {};
  5. type __VLS_Slots = {} & {
  6. 'decrease-icon'?: (props: typeof __VLS_1) => any;
  7. } & {
  8. 'increase-icon'?: (props: typeof __VLS_19) => any;
  9. } & {
  10. prefix?: (props: typeof __VLS_52) => any;
  11. } & {
  12. suffix?: (props: typeof __VLS_55) => any;
  13. };
  14. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<InputNumberProps>, {
  15. id: undefined;
  16. disabled: undefined;
  17. step: number;
  18. max: number;
  19. min: number;
  20. stepStrictly: boolean;
  21. readonly: boolean;
  22. controls: boolean;
  23. controlsPosition: string;
  24. valueOnClear: null;
  25. validateEvent: boolean;
  26. inputmode: undefined;
  27. align: string;
  28. }>, {
  29. /** @description get focus the input component */focus: () => void; /** @description remove focus the input component */
  30. blur: () => void;
  31. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  32. change: (cur: number | undefined, prev: number | undefined) => void;
  33. "update:modelValue": (val: number | undefined) => void;
  34. input: (val: number | null | undefined) => void;
  35. focus: (e: FocusEvent) => void;
  36. blur: (e: FocusEvent) => void;
  37. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<InputNumberProps>, {
  38. id: undefined;
  39. disabled: undefined;
  40. step: number;
  41. max: number;
  42. min: number;
  43. stepStrictly: boolean;
  44. readonly: boolean;
  45. controls: boolean;
  46. controlsPosition: string;
  47. valueOnClear: null;
  48. validateEvent: boolean;
  49. inputmode: undefined;
  50. align: string;
  51. }>>> & {
  52. onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
  53. onFocus?: ((e: FocusEvent) => any) | undefined;
  54. onBlur?: ((e: FocusEvent) => any) | undefined;
  55. onInput?: ((val: number | null | undefined) => any) | undefined;
  56. "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
  57. }, {
  58. id: string;
  59. disabled: boolean;
  60. readonly: boolean;
  61. validateEvent: boolean;
  62. inputmode: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal";
  63. max: number;
  64. valueOnClear: "min" | "max" | number | null;
  65. min: number;
  66. align: "left" | "right" | "center";
  67. step: number;
  68. stepStrictly: boolean;
  69. controls: boolean;
  70. controlsPosition: "" | "right";
  71. }, {}>;
  72. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  73. declare const _default: typeof __VLS_export;
  74. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  75. type: vue.PropType<Required<T>[K]>;
  76. } : {
  77. type: vue.PropType<T[K]>;
  78. required: true;
  79. } };
  80. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  81. default: D[K];
  82. }> : P[K] };
  83. type __VLS_WithSlots<T, S> = T & {
  84. new (): {
  85. $slots: S;
  86. };
  87. };
  88. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  89. //#endregion
  90. export { _default };