通过Vuejs中的$ option.components注册组件

时间:2019-11-11 04:02:20

标签: javascript performance vuejs2 vue-component vue-router

是否可以通过$ option.components注册组件或为component定义新值?这样的:

     beforeMount(){
        this.$options.components.DialogForm =
            function DialogForm() {
            return this.getComponent;
        }
    },

0 个答案:

没有答案