swiper-nav.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * 轮播导航器
  3. * 同时支持两种方式
  4. * 1、swiper简易配置,参见swiper的navigation。提升易用性
  5. * 2、自定义组件插槽组合,slot=nav。提升灵活性,方便样式覆盖
  6. */
  7. import { SuperComponent } from '../common/src/index';
  8. import { NavTypes } from './common/constants';
  9. declare type NavOptions = {
  10. index: number;
  11. total: number;
  12. direction: boolean;
  13. };
  14. export default class SwiperNav extends SuperComponent {
  15. externalClasses: string[];
  16. properties: {
  17. type: {
  18. type: StringConstructor;
  19. value: NavTypes;
  20. };
  21. minShowNum: {
  22. type: NumberConstructor;
  23. value: number;
  24. };
  25. /**
  26. * 是否开启导航按钮
  27. */
  28. hasNavBtn: {
  29. type: BooleanConstructor;
  30. value: boolean;
  31. };
  32. };
  33. relations: {
  34. './swiper': {
  35. type: "parent";
  36. };
  37. };
  38. data: {
  39. index: number;
  40. total: number;
  41. direction: string;
  42. prefix: string;
  43. classPrefix: string;
  44. };
  45. ready(): void;
  46. onChange(opt: NavOptions): void;
  47. nav(e: any): void;
  48. }
  49. export {};