Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议新增个禁止预览 #88

Open
webtianjia opened this issue Oct 14, 2019 · 0 comments
Open

建议新增个禁止预览 #88

webtianjia opened this issue Oct 14, 2019 · 0 comments

Comments

@webtianjia
Copy link

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 传递过来判断一哈子
建议参考一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant