提交 | 用户 | age
|
34a805
|
1 |
import { Icon } from './Icon'; |
73c8e0
|
2 |
import { Button } from './Button'; |
577bf7
|
3 |
import { |
V |
4 |
// Need |
|
5 |
Button as AntButton, |
34a805
|
6 |
Input, |
577bf7
|
7 |
} from 'ant-design-vue'; |
eba557
|
8 |
|
99ac30
|
9 |
import { App } from 'vue'; |
2f6253
|
10 |
|
34a805
|
11 |
const compList = [Icon, AntButton.Group]; |
7a6181
|
12 |
|
99ac30
|
13 |
export function registerGlobComp(app: App) { |
3b2c40
|
14 |
compList.forEach((comp) => { |
be3a3e
|
15 |
app.component(comp.name || comp.displayName, comp); |
2f6253
|
16 |
}); |
34a805
|
17 |
|
V |
18 |
app.use(Input).use(Button); |
2f6253
|
19 |
} |