gengyang d4c45d2dea fix: fix typescript related bugs, including the following:
1. fix bug of failing to resolve RFC components
    2. support transforming function args
    3. fix bug of oneOfType
    4. fix bug of crash when circular parsing
    5. fix bug of union
    6. support tuple
    7. fix bug of builtin type parsing
    8. fix bug of false positive component identification
    9. fix bug of entry resolving
2020-10-13 10:20:59 +08:00

23 lines
707 B
TypeScript

import * as React from 'react';
import classNames from 'classnames';
import './index';
interface DefaultEmptyImg {
className?: string;
imageStyle?: React.CSSProperties;
}
export const DefaultEmptyImg = (props: DefaultEmptyImg) => {
const { className, imageStyle, ...restProps } = props;
const prefixCls = 'design-empty-default';
const alt = 'empty';
return (
<div className={classNames(prefixCls, className)} {...restProps}>
<div className={`${prefixCls}-image`} style={imageStyle}>
<img alt={alt} src="https://img.alicdn.com/tfs/TB13G0LTNv1gK0jSZFFXXb0sXXa-54-54.svg" />
</div>
<p className={`${prefixCls}-description`}></p>
</div>
);
};