type.d.ts 812 B

1234567891011121314151617181920212223242526272829303132
  1. export interface TdSkeletonProps {
  2. animation?: {
  3. type: StringConstructor;
  4. value?: 'gradient' | 'flashed' | 'none';
  5. };
  6. delay?: {
  7. type: NumberConstructor;
  8. value?: number;
  9. };
  10. loading?: {
  11. type: BooleanConstructor;
  12. value?: boolean;
  13. };
  14. rowCol?: {
  15. type: ArrayConstructor;
  16. value?: SkeletonRowCol;
  17. };
  18. theme?: {
  19. type: StringConstructor;
  20. value?: 'avatar' | 'image' | 'text' | 'paragraph';
  21. };
  22. }
  23. export declare type SkeletonRowCol = Array<Number | SkeletonRowColObj | Array<SkeletonRowColObj>>;
  24. export interface SkeletonRowColObj {
  25. width?: string;
  26. size?: string;
  27. height?: string;
  28. marginRight?: string;
  29. marginLeft?: string;
  30. margin?: string;
  31. type?: 'rect' | 'circle' | 'text';
  32. }