affix.d.ts 1.2 KB

12345678910111213141516171819
  1. import type { ExtractPropTypes } from 'vue';
  2. import type { ZIndexProperty } from 'csstype';
  3. import type Affix from './affix.vue';
  4. export declare const affixProps: {
  5. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto") | (() => ZIndexProperty) | ((new (...args: any[]) => number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto") | (() => ZIndexProperty))[], unknown, unknown, 100, boolean>;
  6. readonly target: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  7. readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  8. readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "top", boolean>;
  9. };
  10. export type AffixProps = ExtractPropTypes<typeof affixProps>;
  11. export declare const affixEmits: {
  12. scroll: ({ scrollTop, fixed }: {
  13. scrollTop: number;
  14. fixed: boolean;
  15. }) => boolean;
  16. change: (fixed: boolean) => boolean;
  17. };
  18. export type AffixEmits = typeof affixEmits;
  19. export type AffixInstance = InstanceType<typeof Affix> & unknown;