Integrating Ant Design Vue in Vue 3 with Vite
Overview
Environment: Vue 3 + Vite + Ant Design Vue + Vue Router
Complete Global Registration
Install Ant Design Vue
npm install ant-design-vue@next --save
Register in main.ts
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from '@/router'
import Antd from 'ant-design-vue';
impo ...
Posted on Thu, 25 Jun 2026 16:59:49 +0000 by VenusJ
Component Registration Patterns in Vue 2
Vue 2 provieds two distinct mechanisms for making custom elements available within an application: global registration and local registration. Each approach defines the visibility scope and instantiation rules for components.
Global Registration
Global components are registered before the root Vue instance is initialized. Once defined, they can ...
Posted on Tue, 12 May 2026 17:30:38 +0000 by markepic