11 changed files with 43 additions and 26 deletions
@ -1,11 +1,12 @@ |
|||
import Icon from './Icon/index'; |
|||
import { BasicHelp, BasicTitle } from './Basic'; |
|||
import Button from './Button/index.vue'; |
|||
import { App } from 'vue'; |
|||
import { Button as AntButton } from 'ant-design-vue'; |
|||
import { getApp } from '/@/useApp'; |
|||
|
|||
const compList = [Icon, BasicHelp, BasicTitle, Button]; |
|||
export function registerGlobComp(app: App<Element>) { |
|||
const compList = [Icon, BasicHelp, BasicTitle, Button, AntButton.Group]; |
|||
export function registerGlobComp() { |
|||
compList.forEach((comp: any) => { |
|||
app.component(comp.name, comp); |
|||
getApp().component(comp.name, comp); |
|||
}); |
|||
} |
|||
|
|||
Loading…
Reference in new issue