affix.vue.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { AffixProps } from "./affix.js";
  2. import * as vue from "vue";
  3. import * as csstype from "csstype";
  4. //#region ../../packages/components/affix/src/affix.vue.d.ts
  5. declare var __VLS_7: {};
  6. type __VLS_Slots = {} & {
  7. default?: (props: typeof __VLS_7) => any;
  8. };
  9. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AffixProps>, {
  10. zIndex: number;
  11. target: string;
  12. offset: number;
  13. position: string;
  14. appendTo: string;
  15. }>, {
  16. /** @description update affix status */update: () => void; /** @description update rootRect info */
  17. updateRoot: () => Promise<void>;
  18. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  19. change: (fixed: boolean) => void;
  20. scroll: (args_0: {
  21. scrollTop: number;
  22. fixed: boolean;
  23. }) => void;
  24. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AffixProps>, {
  25. zIndex: number;
  26. target: string;
  27. offset: number;
  28. position: string;
  29. appendTo: string;
  30. }>>> & {
  31. onChange?: ((fixed: boolean) => any) | undefined;
  32. onScroll?: ((args_0: {
  33. scrollTop: number;
  34. fixed: boolean;
  35. }) => any) | undefined;
  36. }, {
  37. zIndex: csstype.Property.ZIndex;
  38. target: string;
  39. offset: number;
  40. position: "top" | "bottom";
  41. appendTo: string | HTMLElement;
  42. }, {}>;
  43. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  44. declare const _default: typeof __VLS_export;
  45. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  46. type: vue.PropType<Required<T>[K]>;
  47. } : {
  48. type: vue.PropType<T[K]>;
  49. required: true;
  50. } };
  51. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  52. default: D[K];
  53. }> : P[K] };
  54. type __VLS_WithSlots<T, S> = T & {
  55. new (): {
  56. $slots: S;
  57. };
  58. };
  59. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  60. //#endregion
  61. export { _default };