uni-app vue3 全局注册ant-design 不生效
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import axios from "axios"
import VueAxios from "vue-axios"
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.use(VueAxios,axios)
app.use(Antd)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
错误信息[Vue warn]: Failed to resolve component: a-input
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.