Open KakashiZs opened 4 years ago
/.vuepress/components/ 里定义的组件已经默认全局注册了,但是直接引用无效,是使用方法有问题吗?
这是由于script 包裹的代码块通过 Vue.extend 编译出 Vue 对象,再调用其 $mount() 方法挂载到示例 dom,而非使用 vue-template-compiler 编译使其无法链接到注册组件导致的。
可以试试 https://github.com/calebman/vuepress-plugin-demo-container
个人会尽可能维护做好
/.vuepress/components/ 里定义的组件已经默认全局注册了,但是直接引用无效,是使用方法有问题吗?