fix: Typography ellipsis.suffix type (#28959)

* fix: Typography: update EllipsisConfig interface

* docs: update Typography doc
This commit is contained in:
cnjs 2021-01-22 15:38:51 +08:00 committed by GitHub
parent 7f50e3fe3e
commit 934f1b78dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ interface EditConfig {
interface EllipsisConfig {
rows?: number;
expandable?: boolean;
suffix?: string;
suffix?: React.ReactNode;
symbol?: React.ReactNode;
onExpand?: React.MouseEventHandler<HTMLElement>;
onEllipsis?: (ellipsis: boolean) => void;

View File

@ -107,7 +107,7 @@ Basic text writing, including headings, body text, lists, and more.
{
rows: number,
expandable: boolean,
suffix: string,
suffix: ReactNode,
symbol: ReactNode,
onExpand: function(event),
onEllipsis: function(ellipsis),

View File

@ -107,7 +107,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg
{
rows: number,
expandable: boolean,
suffix: string,
suffix: ReactNode,
symbol: ReactNode,
onExpand: function(event),
onEllipsis: function(ellipsis),