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

@ -54,7 +54,7 @@ export function getPluginsList(command, VITE_LEGACY) {
import { setupProdMockServer } from './mockProdServer';
setupProdMockServer();
`,
logger: true
logger: false
}),
// 是否为打包后的文件提供传统浏览器兼容性支持
VITE_LEGACY

View File

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