feat: add useComponent hook

This commit is contained in:
xiaoxian521
2022-04-26 20:01:24 +08:00
parent e0d6002aa8
commit 506bfc8087
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
import { h, resolveComponent } from "vue";
export const dynamicComponent = (component: string) =>
h(resolveComponent(component));