chore: global registration of some components

This commit is contained in:
vben
2020-11-12 23:30:13 +08:00
parent fc4666ef41
commit 577bf78896
3 changed files with 69 additions and 4 deletions

View File

@@ -2,12 +2,20 @@
import type { App } from 'vue';
import { Form, Input, Row, Col } from 'ant-design-vue';
import {
// need
Form,
Input,
Row,
Col,
Spin,
} from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import './spin';
export function setupAntd(app: App<Element>) {
// need
// Here are the components required before registering and logging in
app.use(Form).use(Input).use(Row).use(Col);
app.use(Form).use(Input).use(Row).use(Col).use(Spin);
}