Open zhuxianguo opened 4 years ago
弄了一个临时测试demo https://github.com/zhuxianguo/taro-next-plugin-test
感觉找到原因了,taro3生成的插件模板不能正确传值 taro3生成的模板
<template name="tmpl_1_wxparser">
<wxparser id="{{i.uid}}">
<block wx:for="{{i.cn}}" wx:key="uid">
<template is="tmpl_2_container" data="{{i:item,l:l}}" />
</block>
</wxparser>
</template>
实际应该通过属性来进行传值才能正常解析
<template name="tmpl_1_wxparser">
<wxparser rich-text="{{i.richText}}"/>
</template>
但是咋改这个模板呢?
相关平台
微信小程序
小程序基础库: 2.12.1 使用框架: React
复现步骤
//app.config
//pages/index/index.jsx
//pages/index/index.config.js
期望结果
期望能正常解析
实际结果
可解析出标记,但是无内容
环境信息