From c77ae2e4de8af058c862f22dd5333b44c7e48e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Wed, 21 Sep 2022 14:11:56 +0800 Subject: [PATCH] docs: Add desc about Text ellipsis (#37670) --- components/typography/index.en-US.md | 2 +- components/typography/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/typography/index.en-US.md b/components/typography/index.en-US.md index f2a92374bb..597c5d3a12 100644 --- a/components/typography/index.en-US.md +++ b/components/typography/index.en-US.md @@ -24,7 +24,7 @@ Basic text writing, including headings, body text, lists, and more. | delete | Deleted line style | boolean | false | | | disabled | Disabled content | boolean | false | | | editable | If editable. Can control edit state when is object | boolean \| [editable](#editable) | false | [editable](#editable) | -| ellipsis | Display ellipsis when text overflows,can't configure expandable、rows and onExpand by using object | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | +| ellipsis | Display ellipsis when text overflows,can't configure expandable、rows and onExpand by using object. Diff with Typography.Paragraph, Text do not have 100% width style which means it will fix width on the first ellipsis. If you want to have responsive ellipsis, please set width manually | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | | keyboard | Keyboard style | boolean | false | 4.3.0 | | mark | Marked style | boolean | false | | | onClick | Set the handler to handle click event | (event) => void | - | | diff --git a/components/typography/index.zh-CN.md b/components/typography/index.zh-CN.md index 6aa06cd58d..1eae3ea448 100644 --- a/components/typography/index.zh-CN.md +++ b/components/typography/index.zh-CN.md @@ -25,7 +25,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg | delete | 添加删除线样式 | boolean | false | | | disabled | 禁用文本 | boolean | false | | | editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| [editable](#editable) | false | [editable](#editable) | -| ellipsis | 自动溢出省略,为对象时不能设置省略行数、是否可展开、onExpand 展开事件 | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | +| ellipsis | 自动溢出省略,为对象时不能设置省略行数、是否可展开、onExpand 展开事件。不同于 Typography.Paragraph,Text 组件自身不带 100% 宽度样式,因而默认情况下初次缩略后宽度便不再变化。如果需要自适应宽度,请手工配置宽度样式 | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | | keyboard | 添加键盘样式 | boolean | false | 4.3.0 | | mark | 添加标记样式 | boolean | false | | | onClick | 点击 Text 时的回调 | (event) => void | - | |