Vben
2021-06-17 d196340d270d2becbf2cc81b7d4f09273381bd09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import type { App } from 'vue';
import { Icon } from './Icon';
import { Button } from './Button';
import {
  // Need
  Button as AntButton,
  Input,
} from 'ant-design-vue';
 
const compList = [Icon, AntButton.Group];
 
export function registerGlobComp(app: App) {
  compList.forEach((comp) => {
    app.component(comp.name || comp.displayName, comp);
  });
 
  app.use(Input).use(Button);
}