[bugfix] Icon: tap triggered twice

This commit is contained in:
陈嘉涵 2018-08-06 11:21:09 +08:00
parent 63c52edf2d
commit 6a52751ff5
2 changed files with 0 additions and 7 deletions

View File

@ -6,11 +6,5 @@ Component({
name: String,
size: String,
color: String
},
methods: {
onTap(event) {
this.triggerEvent('tap', event);
}
}
});

View File

@ -1,7 +1,6 @@
<view
class="custom-class van-icon van-icon-{{ name }}"
style="{{ color ? 'color: ' + color : '' }}; {{ size ? 'font-size: ' + size : '' }}"
bind:tap="onTap"
>
<view wx:if="{{ info !== null }}" class="van-icon__info">{{ info }}</view>
</view>