index.ts 425 B

12345678910111213141516171819
  1. // Load on demand
  2. // This module only introduces components globally before login
  3. import type { App } from 'vue';
  4. import {
  5. // need
  6. Form,
  7. Input,
  8. Row,
  9. Col,
  10. Spin,
  11. } from 'ant-design-vue';
  12. import 'ant-design-vue/dist/antd.css';
  13. export function setupAntd(app: App<Element>) {
  14. // need
  15. // Here are the components required before registering and logging in
  16. app.use(Form).use(Input).use(Row).use(Col).use(Spin);
  17. }