Blame view

src/setup/ant-design-vue/index.ts 294 Bytes
陈文彬 authored
1
2
3
4
// Load on demand

import type { App } from 'vue';
5
import { Form, Input } from 'ant-design-vue';
陈文彬 authored
6
7
8
9
10
import 'ant-design-vue/dist/antd.css';

import './spin';

export function setupAntd(app: App<Element>) {
11
  // 这两个组件在登录也就用。全局注册
陈文彬 authored
12
13
14
  app.use(Form);
  app.use(Input);
}