搭好vue3的脚手架后,引入ant-design-vue的方法如下:
1.安装ant-design-vue
npm install ant-design-vue@4.x --save
2.《main.js》中全局引入
import './assets/main.css'
import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import App from './App.vue'
import 'ant-design-vue/dist/reset.css'
const app = createApp(App)
app.use(Antd)
app.mount('#app')