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.1.0未正常触发bindregionchange事件 #2767

Open
dust27149 opened this issue Nov 4, 2021 · 0 comments
Open

wepy2.1.0未正常触发bindregionchange事件 #2767

dust27149 opened this issue Nov 4, 2021 · 0 comments

Comments

@dust27149
Copy link

Description

wepy2.1.0未正常触发bindregionchange事件

Environment

  • Platform: [开发者工具/iOS/Andriod]
  • Platform version: [1.05.2110110]
  • Wechat version: [微信版本号]
  • wepy-cli version: [2.1.0]
  • wepy version: ["@wepy/core": "^2.0.0-alpha.16",
    "@wepy/use-promisify": "^2.1.0",
    "@wepy/x": "^2.0.2"]

Reproduce

在布局中正常引入map组件和bindregionchange事件即可复现该问题。
<map id="mapId" class="map" latitude="{{latitude}}" longitude="{{longitude}}" bindmarkertap="onMarkerTap" bindcallouttap="onCalloutTap" bindlabeltap="onLabelTap" bindregionchange="bindregionchange" />

bindregionchange(e){ console.log('bindregionchange', e) }

Observed Results

没有出现bindregionchange日志,未触发bindregionchange事件

Expected Results

出现bindregionchange日志,触发bindregionchange事件

Others

bindregionchange="handleRegionchange"改为@regionchange="handleRegionchange" @begin="regionChangeBegin" @end="regionChangeEnd"可解决该问题。

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