chore: button设置为全局组件 解决每次启动重复的依赖构建
This commit is contained in:
10
apps/web-antd/src/components/global/index.ts
Normal file
10
apps/web-antd/src/components/global/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { App } from 'vue';
|
||||
|
||||
import { Button as AButton } from 'ant-design-vue';
|
||||
|
||||
/**
|
||||
* 全局组件注册
|
||||
*/
|
||||
export function setupGlobalComponent(app: App) {
|
||||
app.use(AButton);
|
||||
}
|
Reference in New Issue
Block a user