index.d.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { IndexBarProps } from './IndexBar';
  2. export declare const IndexBar: import("../utils").WithInstall<import("vue").DefineComponent<{
  3. sticky: {
  4. type: BooleanConstructor;
  5. default: true;
  6. };
  7. zIndex: (NumberConstructor | StringConstructor)[];
  8. teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
  9. highlightColor: StringConstructor;
  10. stickyOffsetTop: {
  11. type: NumberConstructor;
  12. default: number;
  13. };
  14. indexList: {
  15. type: import("vue").PropType<import("../utils").Numeric[]>;
  16. default: () => string[];
  17. };
  18. }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  19. sticky: {
  20. type: BooleanConstructor;
  21. default: true;
  22. };
  23. zIndex: (NumberConstructor | StringConstructor)[];
  24. teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
  25. highlightColor: StringConstructor;
  26. stickyOffsetTop: {
  27. type: NumberConstructor;
  28. default: number;
  29. };
  30. indexList: {
  31. type: import("vue").PropType<import("../utils").Numeric[]>;
  32. default: () => string[];
  33. };
  34. }>> & {
  35. onChange?: ((...args: any[]) => any) | undefined;
  36. onSelect?: ((...args: any[]) => any) | undefined;
  37. }, {
  38. sticky: boolean;
  39. stickyOffsetTop: number;
  40. indexList: import("../utils").Numeric[];
  41. }>>;
  42. export default IndexBar;
  43. export type { IndexBarProps };
  44. export type { IndexBarInstance } from './types';
  45. declare module 'vue' {
  46. interface GlobalComponents {
  47. VanIndexBar: typeof IndexBar;
  48. }
  49. }