badge.vue.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { BadgeProps } from "./badge.js";
  2. import * as vue from "vue";
  3. import { StyleValue } from "vue";
  4. //#region ../../packages/components/badge/src/badge.vue.d.ts
  5. declare var __VLS_1: {}, __VLS_9: {
  6. value: string;
  7. };
  8. type __VLS_Slots = {} & {
  9. default?: (props: typeof __VLS_1) => any;
  10. } & {
  11. content?: (props: typeof __VLS_9) => any;
  12. };
  13. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BadgeProps>, {
  14. badgeStyle: undefined;
  15. value: string;
  16. max: number;
  17. type: string;
  18. showZero: boolean;
  19. offset: () => number[];
  20. }>, {
  21. /** @description badge content */content: vue.ComputedRef<string>;
  22. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BadgeProps>, {
  23. badgeStyle: undefined;
  24. value: string;
  25. max: number;
  26. type: string;
  27. showZero: boolean;
  28. offset: () => number[];
  29. }>>>, {
  30. offset: [number, number];
  31. type: "primary" | "success" | "warning" | "info" | "danger";
  32. value: string | number;
  33. max: number;
  34. showZero: boolean;
  35. badgeStyle: string | false | vue.CSSProperties | StyleValue[] | null;
  36. }, {}>;
  37. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  38. declare const _default: typeof __VLS_export;
  39. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  40. type: vue.PropType<Required<T>[K]>;
  41. } : {
  42. type: vue.PropType<T[K]>;
  43. required: true;
  44. } };
  45. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  46. default: D[K];
  47. }> : P[K] };
  48. type __VLS_WithSlots<T, S> = T & {
  49. new (): {
  50. $slots: S;
  51. };
  52. };
  53. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  54. //#endregion
  55. export { _default };