| content | string | No | '' | Text content, which is the content of the child component **<Span>**. This parameter does not take effect when the child component **<Span>** is contained. |
...
...
@@ -41,21 +41,21 @@ Text(content?: string)
| textCase | TextCase | TextCase.Normal | Text case. |
- TextAlign enums
| Name | Description |
| Name | Description |
| -------- | -------- |
| Center | The text is center-aligned. |
| Start | The text is aligned with the direction in which the text is written. |
| End | The text is aligned with the opposite direction in which the text is written. |
- TextOverflow enums
| Name | Description |
| Name | Description |
| -------- | -------- |
| Clip | Extra text is truncated. |
| Ellipsis | The ellipsis (...) is used for extra-long text. |
| None | No truncation or ellipsis is used for extra-long text. |
- TextDecorationType enums
| Name | Description |
| Name | Description |
| -------- | -------- |
| Underline | An underline is used. |
| LineThrough | A strikethrough is used. |
...
...
@@ -63,13 +63,13 @@ Text(content?: string)
| None | No decorative line is used. |
- TextCase enums
| Name | Description |
| Name | Description |
| -------- | -------- |
| Normal | The original case of the text is retained. |
| LowerCase | All letters in the text are in lowercase. |
| UpperCase | All letters in the text are in uppercase. |
> The **<Text>** component cannot contain both the text and the child component **<Span>**. If both of them exist, only the content in **<Span>** is displayed.