webtianjia
webtianjia
如题...
我在main.ts 引入了elementUi,使用时却找不到他的方法
 ## 问题简单直接上图了
 
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 传递过来判断一哈子 建议参考一下