Vue.mixin({ methods: { pressed(val) { alert(val); } }, data() { return { item: '' } } });