Photo.d.ts 609 B

123456789101112131415161718
  1. import React from 'react';
  2. import './Photo.less';
  3. import { brokenElementDataType } from './types';
  4. export interface IPhotoProps extends React.HTMLAttributes<any> {
  5. src: string;
  6. intro?: React.ReactNode;
  7. loaded: boolean;
  8. broken: boolean;
  9. width: number;
  10. height: number;
  11. rotate: number;
  12. className?: string;
  13. onImageLoad: (PhotoParams: any, callback?: Function) => void;
  14. loadingElement?: JSX.Element;
  15. brokenElement?: JSX.Element | ((photoProps: brokenElementDataType) => JSX.Element);
  16. }
  17. declare const Photo: React.FC<IPhotoProps>;
  18. export default Photo;