type.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { StickyProps } from '../sticky/index';
  2. export interface TdTabsProps {
  3. animation?: {
  4. type: ObjectConstructor;
  5. value?: TabAnimation;
  6. };
  7. bottomLineMode?: {
  8. type: StringConstructor;
  9. value?: 'fixed' | 'auto' | 'full';
  10. };
  11. showBottomLine?: {
  12. type: BooleanConstructor;
  13. value?: boolean;
  14. };
  15. spaceEvenly?: {
  16. type: BooleanConstructor;
  17. value?: boolean;
  18. };
  19. split?: {
  20. type: BooleanConstructor;
  21. value?: boolean;
  22. };
  23. sticky?: {
  24. type: BooleanConstructor;
  25. value?: boolean;
  26. };
  27. stickyProps?: {
  28. type: ObjectConstructor;
  29. value?: StickyProps;
  30. };
  31. swipeable?: {
  32. type: BooleanConstructor;
  33. value?: boolean;
  34. };
  35. theme?: {
  36. type: StringConstructor;
  37. value?: 'line' | 'tag' | 'card';
  38. };
  39. value?: {
  40. type: null;
  41. value?: TabValue;
  42. };
  43. defaultValue?: {
  44. type: null;
  45. value?: TabValue;
  46. };
  47. }
  48. export declare type TabAnimation = {
  49. duration: number;
  50. } & Record<string, any>;
  51. export declare type TabValue = string | number;