From 934f1b78dd450773c01126b62aab167fbe7af795 Mon Sep 17 00:00:00 2001 From: cnjs <1269075501@qq.com> Date: Fri, 22 Jan 2021 15:38:51 +0800 Subject: [PATCH] fix: Typography ellipsis.suffix type (#28959) * fix: Typography: update EllipsisConfig interface * docs: update Typography doc --- components/typography/Base.tsx | 2 +- components/typography/index.en-US.md | 2 +- components/typography/index.zh-CN.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/typography/Base.tsx b/components/typography/Base.tsx index 2a2fa8981f..5ff108a98c 100644 --- a/components/typography/Base.tsx +++ b/components/typography/Base.tsx @@ -44,7 +44,7 @@ interface EditConfig { interface EllipsisConfig { rows?: number; expandable?: boolean; - suffix?: string; + suffix?: React.ReactNode; symbol?: React.ReactNode; onExpand?: React.MouseEventHandler; onEllipsis?: (ellipsis: boolean) => void; diff --git a/components/typography/index.en-US.md b/components/typography/index.en-US.md index df53fef220..41a1ac4645 100644 --- a/components/typography/index.en-US.md +++ b/components/typography/index.en-US.md @@ -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), diff --git a/components/typography/index.zh-CN.md b/components/typography/index.zh-CN.md index 8667759c15..dedfbe197e 100644 --- a/components/typography/index.zh-CN.md +++ b/components/typography/index.zh-CN.md @@ -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),