Blame view

src/setup/ant-design-vue/index.ts 298 Bytes
陈文彬 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Load on demand

import type { App } from 'vue';

import { Form, Input, Button } from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

import './spin';

export function setupAntd(app: App<Element>) {
  app.component(Button.Group.name, Button.Group);
  app.use(Form);
  app.use(Input);
}