type.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { SwiperNavProps } from '../swiper-nav/index';
  2. export interface TdSwiperProps {
  3. autoplay?: {
  4. type: BooleanConstructor;
  5. value?: boolean;
  6. };
  7. current?: {
  8. type: NumberConstructor;
  9. value?: number;
  10. };
  11. direction?: {
  12. type: StringConstructor;
  13. value?: 'horizontal' | 'vertical';
  14. };
  15. displayMultipleItems?: {
  16. type: NumberConstructor;
  17. value?: number;
  18. };
  19. duration?: {
  20. type: NumberConstructor;
  21. value?: number;
  22. };
  23. easingFunction?: {
  24. type: StringConstructor;
  25. value?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic';
  26. };
  27. height?: {
  28. type: null;
  29. value?: string | number;
  30. };
  31. imageProps?: {
  32. type: ObjectConstructor;
  33. value?: object;
  34. };
  35. interval?: {
  36. type: NumberConstructor;
  37. value?: number;
  38. };
  39. list?: {
  40. type: ArrayConstructor;
  41. value?: string[] | SwiperList[];
  42. };
  43. loop?: {
  44. type: BooleanConstructor;
  45. value?: boolean;
  46. };
  47. navigation?: {
  48. type: null;
  49. value?: SwiperNavProps | boolean;
  50. };
  51. nextMargin?: {
  52. type: null;
  53. value?: string | number;
  54. };
  55. paginationPosition?: {
  56. type: StringConstructor;
  57. value?: 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
  58. };
  59. previousMargin?: {
  60. type: null;
  61. value?: string | number;
  62. };
  63. snapToEdge?: {
  64. type: BooleanConstructor;
  65. value?: boolean;
  66. };
  67. }
  68. export interface SwiperList {
  69. value: string;
  70. ariaLabel: string;
  71. }