提交 ec0c974e 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新rich-text示例

上级 b5a3deff
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
<button type="primary">rich-text渲染复杂HTML示例</button> <button type="primary">rich-text渲染复杂HTML示例</button>
</navigator> </navigator>
</view> </view>
<view class="uni-title">
<text class="uni-subtitle-text">selectable</text>
</view>
<view class="text-box">
<rich-text :selectable="true"
nodes="<span>hello uni-app x!</span><br/><span>uni-app x,终极跨平台方案</span>"></rich-text>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -21,5 +28,8 @@ ...@@ -21,5 +28,8 @@
</script> </script>
<style> <style>
.text-box {
padding: 40rpx 0;
background-color: white;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册