Blame view

src/setup/ant-design-vue/index.ts 425 Bytes
陈文彬 authored
1
// Load on demand
vben authored
2
// This module only introduces components globally before login
陈文彬 authored
3
4
import type { App } from 'vue';
5
6
7
8
9
10
11
12
import {
  // need
  Form,
  Input,
  Row,
  Col,
  Spin,
} from 'ant-design-vue';
13
import 'ant-design-vue/dist/antd.css';
陈文彬 authored
14
15

export function setupAntd(app: App<Element>) {
16
  // need
vben authored
17
  // Here are the components required before registering and logging in
18
  app.use(Form).use(Input).use(Row).use(Col).use(Spin);
陈文彬 authored
19
}