alert.vue.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { TypeComponentsMap } from "../../../utils/vue/icon.js";
  2. import "../../../utils/index.js";
  3. import { AlertProps } from "./alert.js";
  4. import * as vue from "vue";
  5. //#region ../../packages/components/alert/src/alert.vue.d.ts
  6. declare var __VLS_13: {}, __VLS_20: {}, __VLS_22: {};
  7. type __VLS_Slots = {} & {
  8. icon?: (props: typeof __VLS_13) => any;
  9. } & {
  10. title?: (props: typeof __VLS_20) => any;
  11. } & {
  12. default?: (props: typeof __VLS_22) => any;
  13. };
  14. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AlertProps>, {
  15. title: string;
  16. description: string;
  17. type: string;
  18. closable: boolean;
  19. closeText: string;
  20. effect: string;
  21. }>, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  22. close: (evt: MouseEvent) => void;
  23. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AlertProps>, {
  24. title: string;
  25. description: string;
  26. type: string;
  27. closable: boolean;
  28. closeText: string;
  29. effect: string;
  30. }>>> & {
  31. onClose?: ((evt: MouseEvent) => any) | undefined;
  32. }, {
  33. type: keyof typeof TypeComponentsMap;
  34. title: string;
  35. description: string;
  36. closable: boolean;
  37. closeText: string;
  38. effect: "light" | "dark";
  39. }, {}>;
  40. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  41. declare const _default: typeof __VLS_export;
  42. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  43. type: vue.PropType<Required<T>[K]>;
  44. } : {
  45. type: vue.PropType<T[K]>;
  46. required: true;
  47. } };
  48. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  49. default: D[K];
  50. }> : P[K] };
  51. type __VLS_WithSlots<T, S> = T & {
  52. new (): {
  53. $slots: S;
  54. };
  55. };
  56. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  57. //#endregion
  58. export { _default };