mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Button): inherit touchstart event
This commit is contained in:
parent
6d3ce89502
commit
322db54c77
@ -44,7 +44,7 @@ export default createComponent({
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['click', 'touchstart'],
|
||||
emits: ['click'],
|
||||
|
||||
methods: {
|
||||
onClick() {
|
||||
@ -54,10 +54,6 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
onTouchstart(event) {
|
||||
this.$emit('touchstart', event);
|
||||
},
|
||||
|
||||
genContent() {
|
||||
const Content = [];
|
||||
|
||||
@ -144,7 +140,6 @@ export default createComponent({
|
||||
type={this.nativeType}
|
||||
disabled={disabled}
|
||||
onClick={this.onClick}
|
||||
onTouchstart={this.onTouchstart}
|
||||
>
|
||||
<div class={bem('content')}>{this.genContent()}</div>
|
||||
</tag>
|
||||
|
Loading…
x
Reference in New Issue
Block a user