typscript vue项目中全局组件的注册及使用 第一步:index.ts中引入需要全局注册的组件 第二步:在main.ts中引入index.ts文件 vue.use()使用 第三步:在页面内可以直接调用