详细问题描述
当启用自定义组件模式时,使用富文本编辑组件会报错
重现步骤
一、下载本人上传的压缩包,解压后导入HBuilderX
二、打开项目文本中的manifest.json,点开源码视图,将
"mp-weixin": { /* 小程序特有相关 */
"appid": ""
}
替换为:
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : true //为true时,检查安全域名和 TLS 版本
},
"usingComponents" : true //为true时,启用自定义组件模式(当为true时,computed的方法才支持传参)
},
三、运行到微信小程序
四、打开微信小程序后,点开console台,然后在文本框内任意输入字符,console台报错。
错误提示内容为:
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "textareaData"
电话:18380428139
QQ :763509637