index.d.ts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. export declare const ElAffix: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
  2. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty) | ((new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty))[], unknown, unknown, 100, boolean>;
  3. readonly target: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  4. readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  5. readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "top", boolean>;
  6. }, {
  7. COMPONENT_NAME: string;
  8. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  9. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty) | ((new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty))[], unknown, unknown, 100, boolean>;
  10. readonly target: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  11. readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  12. readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "top", boolean>;
  13. }>> & {
  14. onChange?: ((fixed: boolean) => any) | undefined;
  15. onScroll?: ((args_0: {
  16. scrollTop: number;
  17. fixed: boolean;
  18. }) => any) | undefined;
  19. }>>;
  20. emit: ((event: "change", fixed: boolean) => void) & ((event: "scroll", args_0: {
  21. scrollTop: number;
  22. fixed: boolean;
  23. }) => void);
  24. ns: {
  25. namespace: import("vue").Ref<string>;
  26. b: (blockSuffix?: string) => string;
  27. e: (element?: string | undefined) => string;
  28. m: (modifier?: string | undefined) => string;
  29. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  30. em: (element?: string | undefined, modifier?: string | undefined) => string;
  31. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  32. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  33. is: {
  34. (name: string, state: boolean | undefined): string;
  35. (name: string): string;
  36. };
  37. cssVar: (object: Record<string, string>) => Record<string, string>;
  38. cssVarName: (name: string) => string;
  39. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  40. cssVarBlockName: (name: string) => string;
  41. };
  42. target: import("vue").ShallowRef<HTMLElement | undefined>;
  43. root: import("vue").ShallowRef<HTMLDivElement | undefined>;
  44. scrollContainer: import("vue").ShallowRef<Window | HTMLElement | undefined>;
  45. windowHeight: import("vue").Ref<number>;
  46. rootHeight: import("vue").Ref<number>;
  47. rootWidth: import("vue").Ref<number>;
  48. rootTop: import("vue").Ref<number>;
  49. rootBottom: import("vue").Ref<number>;
  50. updateRoot: () => void;
  51. targetRect: {
  52. height: import("vue").Ref<number>;
  53. bottom: import("vue").Ref<number>;
  54. left: import("vue").Ref<number>;
  55. right: import("vue").Ref<number>;
  56. top: import("vue").Ref<number>;
  57. width: import("vue").Ref<number>;
  58. x: import("vue").Ref<number>;
  59. y: import("vue").Ref<number>;
  60. update: () => void;
  61. };
  62. fixed: import("vue").Ref<boolean>;
  63. scrollTop: import("vue").Ref<number>;
  64. transform: import("vue").Ref<number>;
  65. rootStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  66. affixStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  67. update: () => void;
  68. handleScroll: () => void;
  69. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  70. scroll: ({ scrollTop, fixed }: {
  71. scrollTop: number;
  72. fixed: boolean;
  73. }) => boolean;
  74. change: (fixed: boolean) => boolean;
  75. }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  76. readonly zIndex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty) | ((new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty))[], unknown, unknown, 100, boolean>;
  77. readonly target: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  78. readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  79. readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom", unknown, "top", boolean>;
  80. }>> & {
  81. onChange?: ((fixed: boolean) => any) | undefined;
  82. onScroll?: ((args_0: {
  83. scrollTop: number;
  84. fixed: boolean;
  85. }) => any) | undefined;
  86. }, {
  87. readonly zIndex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty) | ((new (...args: any[]) => import("csstype").ZIndexProperty & {}) | (() => import("csstype").ZIndexProperty))[], unknown, unknown>;
  88. readonly target: string;
  89. readonly offset: number;
  90. readonly position: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom", unknown>;
  91. }>> & Record<string, any>;
  92. export default ElAffix;
  93. export * from './src/affix';