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

wepy2集成vant-weapp相关组件的绑定事件失效 #1913

Closed
huixisheng opened this issue Nov 12, 2018 · 2 comments
Closed

wepy2集成vant-weapp相关组件的绑定事件失效 #1913

huixisheng opened this issue Nov 12, 2018 · 2 comments
Assignees
Labels
2.0.x Version 2.0.x

Comments

@huixisheng
Copy link
Contributor

Description

集成vant-weapp的van-popup的绑定事件失效

Environment

wepy2.0

Reproduce

'van-popup': 'module:vant-weapp/dist/popup/index',
<template>
  <van-popup show="{{ show }}" bind:close="onClose">内容</van-popup>
</template>

wepy.page ({
  data: {
    show: true,
  },
  methods: {
    onClose() {
      wx.showToast({
        title: '点击了关闭',
      });
    },
  },
});
</script>

Observed Results

会有如下提示:
image

Expected Results

集成三方的小程序组件能直接使用。

@huixisheng huixisheng changed the title 集成vant-weapp相关组件的绑定事件失效 wepy2集成vant-weapp相关组件的绑定事件失效 Nov 12, 2018
@Gcaufy Gcaufy self-assigned this Nov 13, 2018
@Gcaufy Gcaufy added the 2.0.x Version 2.0.x label Nov 13, 2018
@Gcaufy Gcaufy closed this as completed in fd37c01 Nov 13, 2018
@huixisheng
Copy link
Contributor Author

绑定事件还是有问题,有问题的完整demo已提到 #1914

@DiffChenyi
Copy link

我也遇到类似问题wepy2,vant组件库中的popup组件遮罩层及原事件失效,导致必须绑定close关闭事件且需自行去控制show属性的状态

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

No branches or pull requests

3 participants