uni-project-to-plugin
uni-project-to-plugin copied to clipboard
请教一下 如何在插件内main.js定义全局组件 然后在各页面直接使用
我现在按照uniapp的方式,main.js 里进行全局导入和注册,但无法在页面直接使用
` import test from './components/test' Vue.component('test1',test)
` 在页面无法直接使用test1这个组件
@flym1013 插件模式下,没有全局组件的概念