text
Text, supporting only nesting within component.
| Attribute Name | Type | Default | Description | Minimum Version | 
| selectable | Boolean | false | selectable or not | |
| space | String | show continuous spaces | ||
| decode | Boolean | false | decode or not | |
| number-of-lines | number | Multi-line omission, value must be greater than or equal to 1, same behavior as the -webkit-line-clamp attribute of css | 
Space Effective Value:
| Value | Description | 
| nbsp | space size as per font setting | 
| ensp | half-size space of Chinese character | 
| emsp | space size of Chinese character | 
Sample Code
copy
<view class="page">
  <view class="text-view">
    <text>{{text}}</text>
  </view>
</view>copy
Page({
  data: {
    text: 'Hello Mini Program',
  },
})