我用Vue.component()定义的一个全局组件,我可以在其他地方重写这个组件里的test方法吗?
Vue.component('template',{ props:['info'], template:'<div></div>', methods:{ test:function(id){} } }
https://www.jianshu.com/p/1bfd582da93e mixin可以实现,应该也可以强制覆盖其方法