Tag: vuejs2 pug

Vue 2:如何从渲染函数渲染单个文件组件?

我试图从渲染函数呈现单个文件VUE组件,但它不被创build。 我尝试了类似的变化: // simple.vue <template> … </template> <script> … </script> // parent.vue <script> import Simple from export default { name: "parentComponent", render: function (h) { return h( "div", null, Simple // [Simple], Vue.component(Simple) } } </script> 我怎样才能从渲染functionbuild立Vue组件? 如果它有所作为,我也使用帕格。