okam icon indicating copy to clipboard operation
okam copied to clipboard

如何实现支持v-html

Open 422656004 opened this issue 6 years ago • 3 comments

问题类型

  • [ ] 如何实现某功能
  • [ ] 报 BUG
  • [ ] 某功能改进建议
  • [ ] 新功能建议
  • [ ] 文档问题
  • [ ] 其他/以上都不是

问题详情

期望效果

实际情况

复现步骤 和 问题示例

问题环境

422656004 avatar Dec 13 '18 01:12 422656004

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

wuhy avatar Dec 13 '18 15:12 wuhy

参考wxParse 了 插件,也是模拟他的实现方案; 新建一个 然后 把里面的template 拆分各个组件层层引用 还 独立出来 EmojiView.vue ParseImg.vue ParseVideo.vue 用来个子组件调用里面的 js 处理直接用了wxParse 里面的

422656004 avatar Dec 27 '18 03:12 422656004

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

xhong0 avatar Jul 22 '19 16:07 xhong0