Skip to content

Commit

Permalink
fix: 部分组件需要事件上报
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhenfei committed Oct 19, 2020
1 parent ba807cb commit b059436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/pi-button/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:hover-start-time="hoverStartTime"
:hover-stay-time="hoverStayTime"
:loading="loading"
@tap.stop="handleButtonTap"
@tap="handleButtonTap"
@getphonenumber="$emit('getphonenumber', $event)"
@getuserinfo="$emit('getuserinfo', $event)"
@error="$emit('error', $event)"
Expand Down Expand Up @@ -246,7 +246,6 @@ export default {
// 是否开启水波纹效果
this.waveInfo.active = false
this.$emit('click', e)
this.$emit('tap', e)
this.$nextTick(function() {
this.queryWaveInfo(e)
})
Expand Down
3 changes: 1 addition & 2 deletions components/pi-img/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class="pi-img pi-w-100P pi-align-center"
:style="[imageStyle, customStyle]"
:class="[customClass]"
@tap.stop="handleButtonTap"
@tap="handleButtonTap"
>
<image
:src="src"
Expand Down Expand Up @@ -160,7 +160,6 @@ export default {
methods: {
handleButtonTap: debounce(function(e) {
this.$emit('click', e)
this.$emit('tap', e)
}, 200),
handleError() {
this.error = true
Expand Down

0 comments on commit b059436

Please sign in to comment.