<template>
<div >
<h3>混入测试</h3>
<button @click="foo">click foo</button>
<button @click="bar">click bar</button>
<button @click="conflicting">click confilict</button>
</div>
</template>
<script>
//import Vue from 'vue'
var mixin = {
methods: {
foo: function () {
console.log('foo')
},
conflicting: function () {
console.log('from mixin')
}
}
}
export default{
mixins: [mixin]
,
components: {
},
data() {
return {
}
},
methods:{
bar: function () {
console.log('bar')
},
conflicting: function () {
console.log('from self')
}
},
created(){
},
computed: {
},
watch: {
}
}
</script>
<style >
</style>