Merge pull request #17003 from Jarvis1010/master

Export TextProps and update english in error
This commit is contained in:
偏右 2019-06-07 18:02:01 +08:00 committed by GitHub
commit e46888247d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import warning from '../_util/warning';
import Base, { BlockProps } from './Base';
interface TextProps extends BlockProps {
export interface TextProps extends BlockProps {
ellipsis?: boolean;
}
@ -10,7 +10,7 @@ const Text: React.SFC<TextProps> = ({ ellipsis, ...restProps }) => {
warning(
typeof ellipsis !== 'object',
'Typography.Text',
'`ellipsis` is only support boolean value.',
'`ellipsis` only supports boolean value.',
);
return <Base {...restProps} ellipsis={!!ellipsis} component="span" />;
};