2020-09-28 20:19:10 +08:00
|
|
|
import Icon from './Icon/index';
|
2020-11-26 21:19:39 +08:00
|
|
|
import { Button } from './Button';
|
2020-11-12 23:30:13 +08:00
|
|
|
import {
|
|
|
|
|
// Need
|
|
|
|
|
Button as AntButton,
|
|
|
|
|
} from 'ant-design-vue';
|
2021-01-10 21:23:21 +08:00
|
|
|
|
2021-01-09 23:28:52 +08:00
|
|
|
import { App } from 'vue';
|
2020-09-28 20:19:10 +08:00
|
|
|
|
2020-11-23 23:24:13 +08:00
|
|
|
const compList = [Icon, Button, AntButton.Group];
|
2020-10-27 21:53:53 +08:00
|
|
|
|
2021-01-09 23:28:52 +08:00
|
|
|
export function registerGlobComp(app: App) {
|
2020-09-28 20:19:10 +08:00
|
|
|
compList.forEach((comp: any) => {
|
2021-02-22 00:01:03 +08:00
|
|
|
app.component(comp.name || comp.displayName, comp);
|
2020-09-28 20:19:10 +08:00
|
|
|
});
|
|
|
|
|
}
|