Vue创建组件的 4种方式
component方法
单文件组件 .vue
render(h){ return h(demoVue) } // 如果 .vue 单文件中有 template 模板,则会跳过 render 函数 // Vue.props选项里面的 template 并没有 render 优先级高
Vue创建组件的 4 种方式
原文:https://www.cnblogs.com/lhx9527/p/14329827.html