diff --git a/src/components/button/button.ts b/src/components/button/button.ts index 5aa0a3c29..3c431bd46 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -67,9 +67,6 @@ export class MButton extends Vue { (this.$el as HTMLElement).blur(); } - @Emit('mousedown') - onMousedown(event: Event): void { } - @Emit('touchstart') onTouchstart(event: Event): void { } diff --git a/src/components/link/link.html b/src/components/link/link.html index c5b2ba10d..7e8c89232 100644 --- a/src/components/link/link.html +++ b/src/components/link/link.html @@ -39,7 +39,6 @@ :href="propUrl" :target="target" @click="onClick" - @mousedown="onMousedown" v-if="!isRouterLink" @keyup="onKeyup" :tabindex="disabled ? '-1' : tabindex" diff --git a/src/components/link/link.ts b/src/components/link/link.ts index e373ed470..b8094da70 100644 --- a/src/components/link/link.ts +++ b/src/components/link/link.ts @@ -1,6 +1,6 @@ import { PluginObject } from 'vue'; import Component from 'vue-class-component'; -import { Emit, Prop, Watch } from 'vue-property-decorator'; +import { Prop, Watch } from 'vue-property-decorator'; import { Location } from 'vue-router'; import { KeyCode } from '../../utils/keycode/keycode'; import { ModulVue } from '../../utils/vue/vue'; @@ -112,9 +112,6 @@ export class MLink extends ModulVue { } } - @Emit('mousedown') - private onMousedown(): void { } - private get isRouterLink(): boolean { return this.mode === MLinkMode.RouterLink; }