美文网首页
mpvue:插件使用总结

mpvue:插件使用总结

作者: 城旁 | 来源:发表于2019-06-28 15:48 被阅读0次


一、前言

本文章为长期更新的文章,记录在mpvue中使用wxParse的各种技巧以及遇到的问题和解决方案,欢迎纠错指导,默认版本为最新。

二、正文

1、wxParse/mpvue-wxParse

安装: npm i mpvue-wxparse

引入:import wxParse from 'mpvue-wxparse'

使用:<wxParse :content="article" />

1.1、父容器设置了padding或者margin后,图片偏移

暂时是将image的宽度设为了100%,如:.content image { width: 100%!important; }

相关文章

网友评论

      本文标题:mpvue:插件使用总结

      本文链接:https://www.haomeiwen.com/subject/vexecctx.html