import * as React from 'react' ; import classNames from 'classnames' ; export interface LoadingProps { prefixCls ? : string ; className ? : string ; style ? : React . CSSProperties ; loadingImg ? : string ; } const Loading = props => { const { prefixCls , className , style , loadingImg } = props ; const cls = classNames ( prefixCls , className ) ; return ( < div className = { cls } style = { style } > < img src = { loadingImg } alt = "loading" / > < /div>); } ; Loading . defaultProps = { prefixCls : 'Yep-loading' , style : { } , loadingImg : 'https://img13.360buyimg.com/imagetools/jfs/t1/151010/32/14284/30214/5ff66791Ea1bc6cc6/698c0772b377aef5.png' , } as Partial < LoadingProps > ; export default Loading ;