index.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export declare const Sticky: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
  2. zIndex: (NumberConstructor | StringConstructor)[];
  3. position: {
  4. type: import("vue").PropType<import("./Sticky").StickyPosition>;
  5. default: import("./Sticky").StickyPosition;
  6. };
  7. container: import("vue").PropType<Element>;
  8. offsetTop: {
  9. type: (NumberConstructor | StringConstructor)[];
  10. default: number;
  11. };
  12. offsetBottom: {
  13. type: (NumberConstructor | StringConstructor)[];
  14. default: number;
  15. };
  16. }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  17. zIndex: (NumberConstructor | StringConstructor)[];
  18. position: {
  19. type: import("vue").PropType<import("./Sticky").StickyPosition>;
  20. default: import("./Sticky").StickyPosition;
  21. };
  22. container: import("vue").PropType<Element>;
  23. offsetTop: {
  24. type: (NumberConstructor | StringConstructor)[];
  25. default: number;
  26. };
  27. offsetBottom: {
  28. type: (NumberConstructor | StringConstructor)[];
  29. default: number;
  30. };
  31. }>> & Readonly<{
  32. onChange?: ((...args: any[]) => any) | undefined;
  33. onScroll?: ((...args: any[]) => any) | undefined;
  34. }>, {
  35. position: import("./Sticky").StickyPosition;
  36. offsetTop: string | number;
  37. offsetBottom: string | number;
  38. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
  39. export default Sticky;
  40. export { stickyProps } from './Sticky';
  41. export type { StickyProps, StickyPosition } from './Sticky';
  42. export type { StickyThemeVars } from './types';
  43. declare module 'vue' {
  44. interface GlobalComponents {
  45. VanSticky: typeof Sticky;
  46. }
  47. }