type.d.ts 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export interface TdNoticeBarProps {
  2. content?: {
  3. type: null;
  4. value?: string | string[];
  5. };
  6. direction?: {
  7. type: StringConstructor;
  8. value?: 'horizontal' | 'vertical';
  9. };
  10. interval?: {
  11. type: NumberConstructor;
  12. value?: number;
  13. };
  14. marquee?: {
  15. type: null;
  16. value?: boolean | NoticeBarMarquee;
  17. };
  18. operation?: {
  19. type: StringConstructor;
  20. value?: string;
  21. };
  22. prefixIcon?: {
  23. type: null;
  24. value?: string | boolean | object;
  25. };
  26. suffixIcon?: {
  27. type: null;
  28. value?: string | object;
  29. };
  30. theme?: {
  31. type: StringConstructor;
  32. value?: 'info' | 'success' | 'warning' | 'error';
  33. };
  34. visible?: {
  35. type: BooleanConstructor;
  36. value?: boolean;
  37. };
  38. defaultVisible?: {
  39. type: BooleanConstructor;
  40. value?: boolean;
  41. };
  42. }
  43. export interface NoticeBarMarquee {
  44. speed?: number;
  45. loop?: number;
  46. delay?: number;
  47. }