rate.vue.d.ts 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import { IconPropType } from "../../../utils/vue/icon.js";
  2. import "../../../utils/index.js";
  3. import { RateProps } from "./rate.js";
  4. import * as vue from "vue";
  5. //#region ../../packages/components/rate/src/rate.vue.d.ts
  6. declare function setCurrentValue(value: number, event?: MouseEvent): void;
  7. declare function resetCurrentValue(): void;
  8. declare const __VLS_export: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<RateProps>, {
  9. modelValue: number;
  10. id: undefined;
  11. lowThreshold: number;
  12. highThreshold: number;
  13. max: number;
  14. colors: () => string[];
  15. voidColor: string;
  16. disabledVoidColor: string;
  17. icons: () => any[];
  18. voidIcon: () => any;
  19. disabledVoidIcon: () => any;
  20. disabled: undefined;
  21. textColor: string;
  22. texts: () => string[];
  23. scoreTemplate: string;
  24. }>, {
  25. /** @description set current value */setCurrentValue: typeof setCurrentValue; /** @description reset current value */
  26. resetCurrentValue: typeof resetCurrentValue;
  27. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  28. change: (value: number) => void;
  29. "update:modelValue": (value: number) => void;
  30. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<RateProps>, {
  31. modelValue: number;
  32. id: undefined;
  33. lowThreshold: number;
  34. highThreshold: number;
  35. max: number;
  36. colors: () => string[];
  37. voidColor: string;
  38. disabledVoidColor: string;
  39. icons: () => any[];
  40. voidIcon: () => any;
  41. disabledVoidIcon: () => any;
  42. disabled: undefined;
  43. textColor: string;
  44. texts: () => string[];
  45. scoreTemplate: string;
  46. }>>> & {
  47. onChange?: ((value: number) => any) | undefined;
  48. "onUpdate:modelValue"?: ((value: number) => any) | undefined;
  49. }, {
  50. modelValue: number;
  51. id: string;
  52. disabled: boolean;
  53. max: number;
  54. textColor: string;
  55. lowThreshold: number;
  56. highThreshold: number;
  57. colors: string[] | Record<number, string>;
  58. voidColor: string;
  59. disabledVoidColor: string;
  60. icons: Array<IconPropType> | Record<number, IconPropType>;
  61. voidIcon: IconPropType;
  62. disabledVoidIcon: IconPropType;
  63. texts: string[];
  64. scoreTemplate: string;
  65. }, {}>;
  66. declare const _default: typeof __VLS_export;
  67. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  68. type: vue.PropType<Required<T>[K]>;
  69. } : {
  70. type: vue.PropType<T[K]>;
  71. required: true;
  72. } };
  73. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  74. default: D[K];
  75. }> : P[K] };
  76. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  77. //#endregion
  78. export { _default };