类型“VueConstructor<Vue>”上不存在属性“install”。ts(2339)

import HelloWorld from './src/index.vue';

(HelloWorld as any).install = function(Vue){
  Vue.component(HelloWorld.name,HelloWorld)
}
export default HelloWorld;

 

posted @ 2021-05-17 13:42  芥末Yuki  阅读(1607)  评论(0编辑  收藏  举报