# text
Start from base library version 1.0.0. Please remaining backward compatible.
Text.
attribute | type | Default value | Required | Introductions | Minimum version |
---|---|---|---|---|---|
selectable | boolean | false | no | Text optional (Derelict) | 1.1.0 |
user-select | boolean | false | no | Whether the text is optional, this property causes the text node to display as inline-block | 2.12.1 |
space | string | no | Display continuous spaces | 1.4.0 | |
decode | boolean | false | no | Whether to decode | 1.4.0 |
space Legal value
value | Introductions | Minimum version |
---|---|---|
ensp | Chinese character space half size | |
emsp | Chinese character space size | |
nbsp | Space size based on font |
# Bug & Tip
tip
: Decode can be parsed with 
<
>
&
&apos
&ensp
&emsp
tip
: The standard of whitespace is not consistent across operating systems.tip
:text Support within a component only text Nesting.tip
: No node other than the text node can be long-pressed.bug
: Base library version below2.1.0
When, text Component embedded text style Settings may not take effect.