vue-vben-admin/src/setup/ant-design-vue/index.ts

20 lines
425 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
// Load on demand
2020-11-18 22:41:59 +08:00
// This module only introduces components globally before login
2020-09-28 20:19:10 +08:00
import type { App } from 'vue';
import {
// need
Form,
Input,
Row,
Col,
Spin,
} from 'ant-design-vue';
2020-11-02 23:04:25 +08:00
import 'ant-design-vue/dist/antd.css';
2020-09-28 20:19:10 +08:00
export function setupAntd(app: App<Element>) {
// need
2020-11-01 23:44:23 +08:00
// Here are the components required before registering and logging in
app.use(Form).use(Input).use(Row).use(Col).use(Spin);
2020-09-28 20:19:10 +08:00
}