-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #2497
- Loading branch information
Showing
5 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<view data-wpy-evt="0-0" bindtap="_proxy"></view> | ||
<view data-wpy-evt="0-1" catchtap="_proxy"></view> | ||
<view data-wpy-evt="0-0" bind:tap="_proxy"></view> | ||
<view data-wpy-evt="0-1" catch:tap="_proxy"></view> | ||
<view data-wpy-evt="0-2" capture-bind:tap="_proxy"></view> | ||
<view data-wpy-evt="0-3" capture-catch:tap="_proxy"></view> | ||
<view data-wpy-evt="0-4" capture-catch:tap="_proxy"></view> | ||
|
||
<view data-wpy-evt="0-5" bindtap="_proxy"></view> | ||
<view data-wpy-evt="0-5" bind:tap="_proxy"></view> | ||
|
||
<view wx:for="{{ list }}" wx:for-index="index" wx:for-item="item" wx:key="index"> | ||
<button data-wpy-evt="0-6" bindtap="_proxy" data-wpytap-a="{{ item }}"></button> | ||
<button data-wpy-evt="0-6" bind:tap="_proxy" data-wpytap-a="{{ item }}"></button> | ||
</view> | ||
|
||
<view data-wpy-evt="0-7" capture-bind:tap="_proxy"></view> | ||
<view data-wpy-evt="0-8" capture-catch:tap="_proxy"></view> | ||
|
||
<view data-wpy-evt="0-9" bind:click-right="_proxy"></view> |
4 changes: 2 additions & 2 deletions
4
packages/cli/test/core/fixtures/template/assert/v-on.wxs.wxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<view bindtap="{{ m.touchmove }}"></view> | ||
<view data-wpy-evt="0-0" bindtap="_proxy"></view> | ||
<view bind:tap="{{ m.touchmove }}"></view> | ||
<view data-wpy-evt="0-0" bind:tap="_proxy"></view> |
7 changes: 7 additions & 0 deletions
7
packages/cli/test/core/fixtures/template/assert/v-on/0-9.click-right.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function proxy() { | ||
var $event = arguments[arguments.length - 1]; | ||
var _vm = this; | ||
return (function() { | ||
_vm.rightNavbar($event); | ||
})(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4fd87d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
微信运行库版本要求 2.8.0 bind:xxxx 这种写法 针对自定义事件与非自定义事件 才通用支持