文本
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
user-select | boolean | false | 文本是否可选,该属性会使文本节点显示为 inline-block | |
space | string | 显示连续空格 | ||
decode | boolean | false | 是否解码 |
<view> <text>默认转义:   "'&<>\n</text> <text> ===== \n</text> <text>不转义 data 里的: {{decodeText}} \n</text> <text> ## decode ### \n</text> <text decode>   "'&<> \n</text> <text> ===== \n</text> <text decode>转义 data 里的 {{decodeText}}</text> </view> <view class="page-body"> <view class="page-section page-section-spacing"> <view class="text-box" scroll-y="true" scroll-top="{{scrollTop}}"> <text>{{text}}</text> </view> <button disabled="{{!canAdd}}" bindtap="add">add line</button> <button disabled="{{!canRemove}}" bindtap="remove">remove line</button> </view> </view>