mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-07 05:49:44 +08:00
[bugfix] Icon: tap triggered twice
This commit is contained in:
parent
63c52edf2d
commit
6a52751ff5
@ -6,11 +6,5 @@ Component({
|
||||
name: String,
|
||||
size: String,
|
||||
color: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
onTap(event) {
|
||||
this.triggerEvent('tap', event);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user