ecomfe / okam

Mini program development framework
https://ecomfe.github.io/okam
MIT License
416 stars 65 forks source link

如何实现支持v-html #18

Open 422656004 opened 5 years ago

422656004 commented 5 years ago

问题类型

问题详情

期望效果

实际情况

复现步骤 和 问题示例

问题环境

wuhy commented 5 years ago

目前 okam 还未提供相应指令支持,如需要支持的话,可以参考 wxParse 实现。

422656004 commented 5 years ago

参考wxParse 了 插件,也是模拟他的实现方案; 新建一个

然后 把里面的template 拆分各个组件层层引用 还 独立出来 EmojiView.vue ParseImg.vue ParseVideo.vue 用来个子组件调用里面的 js 处理直接用了wxParse 里面的

xhong0 commented 5 years ago

基于rich-text支持v-html: https://ecomfe.github.io/okam/#/template/v-html