From f612d91020a2bd88b6c2da8a8ce762b303ec434a Mon Sep 17 00:00:00 2001 From: groundnuts Date: Fri, 27 May 2022 07:20:21 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90OpenHarmony=E5=BC=80=E6=BA=90=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85=E8=AE=A1=E5=88=922022=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=AD=E6=96=87=E5=86=92=E5=8F=B7=E5=92=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=A4=9A=E4=BD=99=E6=8B=AC=E5=8F=B7=20Signed-off-by:?= =?UTF-8?q?=20groundnuts=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/arkui-ts/ts-basic-components-text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md index 98ba09c663..a0ff1cb1d4 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md @@ -35,7 +35,7 @@ Text(content?: string) | textOverflow | {overflow: TextOverflow} | {overflow: TextOverflow.Clip} | 设置文本超长时的显示方式。
**说明:**
文本截断是按字截断。例如,英文以单词为最小单位进行截断,若需要以字母为单位进行截断,可在字母间添加零宽空格:\u200B。 | | maxLines | number | Infinity | 设置文本的最大行数。 | | lineHeight | Length | - | 设置文本的文本行高,设置值不大于0时,不限制文本行高,自适应字体大小,Length为number类型时单位为fp。 | -| decoration | {
type: TextDecorationType,
color?: Color
} | {
type: TextDecorationType.None,
color:Color.Black
} | 设置文本装饰线样式及其颜色。 | +| decoration | {
type: TextDecorationType,
color?: Color
} | {
type: TextDecorationType.None,
color: Color.Black
} | 设置文本装饰线样式及其颜色。 | | baselineOffset | Length | - | 设置文本基线的偏移量。 | | textCase | TextCase | TextCase.Normal | 设置文本大小写。 | @@ -69,7 +69,7 @@ Text(content?: string) | UpperCase | 文本采用全大写。 | > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 不支持Text内同时存在文本内容和Span子组件。(如果同时存在,只显示Span内的内容)。 +> 不支持Text内同时存在文本内容和Span子组件。如果同时存在,只显示Span内的内容。 ## 示例 -- GitLab