2***@qq.com
2***@qq.com
  • 发布:2021-07-05 18:49
  • 更新:2021-07-05 18:49
  • 阅读:496

【报Bug】 nvue 页面 rich-text 标签nodes 传入string类型不显示 传入节点无法设置字体大小

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 专业版

HBuilderX类型: 正式

HBuilderX版本号: 3.1.21

手机系统: Android

手机系统版本号: Android 11

手机厂商: 小米

手机机型: mi8

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<template>
<view class="content">
<text class="text">{{title}}</text><text class="text">{{title}}</text>
<rich-text :nodes="title"></rich-text>
</view>
</template>

<script>
export default {
data() {
return {
title: '<div style="color:#000;" > Hello </div> '
}
},
onLoad() {

    },  
    methods: {  

    }  
}  

</script>

<style>
.text {
font-size: 26rpx;
color: #8f8f94;
}
</style>

操作步骤:

<template>
<view class="content">
<text class="text">{{title}}</text><text class="text">{{title}}</text>
<rich-text :nodes="title"></rich-text>
</view>
</template>

<script>
export default {
data() {
return {
title: '<div style="color:#000;" > Hello </div> '
}
},
onLoad() {

    },  
    methods: {  

    }  
}  

</script>

<style>
.text {
font-size: 26rpx;
color: #8f8f94;
}
</style>

预期结果:

显示出Hello

实际结果:

不显示

bug描述:

nvue 页面 rich-text 标签不显示

2021-07-05 18:49 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复