diff --git a/src/components/Exception/index.d.ts b/src/components/Exception/index.d.ts index 5e32516aa011a36717cf09d24487b2330e4fb06d..cf40d6ac8bae2ef2f35dda7c553b9674ccbc8e43 100644 --- a/src/components/Exception/index.d.ts +++ b/src/components/Exception/index.d.ts @@ -7,6 +7,8 @@ export interface IExceptionProps { actions?: React.ReactNode; linkElement?: React.ReactNode; style?: React.CSSProperties; + className?: string; + backText?: React.ReactNode; } export default class Exception extends React.Component {} diff --git a/src/components/Exception/index.js b/src/components/Exception/index.js index b358d11b67e63e963feec6d234ff6e8082eb9b45..5291d579fb1f6deaeb95fb2dcefa36be4e2d3ca4 100644 --- a/src/components/Exception/index.js +++ b/src/components/Exception/index.js @@ -4,7 +4,7 @@ import { Button } from 'antd'; import config from './typeConfig'; import styles from './index.less'; -class Excrption extends React.PureComponent { +class Exception extends React.PureComponent { static defaultProps = { backText: 'back to home', }; @@ -56,4 +56,4 @@ class Excrption extends React.PureComponent { } } -export default Excrption; +export default Exception;