其他分享
首页 > 其他分享> > Vue – 基础学习(3):动态加载和注册组件

Vue – 基础学习(3):动态加载和注册组件

作者:互联网

// var myComponent =() => import(`./../../components/custom_panel/${t_url}.vue`);
// //var myComponent = resolve => require.ensure([], () => resolve(require(`./../../components/custom_panel/${t_url}.vue`)));
// var myComponent = require(`./../../components/custom_panel/${t_url}.vue`).default;
// return myComponent;



// console.log(this.$options.components);

tempComponentList[value.tabsTitleValue] = () => import(`../../components/${value.componentPath}.vue`);

标签:Vue,..,var,custom,myComponent,vue,components,组件,加载
来源: https://www.cnblogs.com/donghuang/p/11233725.html