vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 429 forks source link

vue-class-component can it be used to write custom plugin? #553

Open rosenLucky opened 2 years ago

rosenLucky commented 2 years ago

Project A relies on a UI framework and uses dynamic components to render the components in the UI framework

In project B, a is used in the way of NPM link, and the UI framework is also mounted in main.ts

However, after running, the B project shows that the components in the UI framework are not registered

A Something like this

<component :is="tag"/> //tag is props

B Something like this

import A from 'A'
<A tag="el-input" />

show Unknown custom elemen el-input If project A is written by options API, there is no problem