mpvue-wxParse
mpvue-wxParse copied to clipboard
建议新增个禁止预览
wxParseImgTap(e) {
console.log(this.node)
if (!this.preview||!this.node.$host.hasPreview) return;
const { src } = e.target.dataset;
if (!src) return;
this.node.$host.preview(src, e);
},
自己改的源码 在组件上多加了个参数 hasPreview 传递过来判断一哈子 建议参考一下