i use vue2 ant design library, and have many components with same
import Vue from "vue"
import select from "select"
Vue.use(select)
is the best way usage like this, or i should import all ant design ui in app.vue?
i use vue2 ant design library, and have many components with same
import Vue from "vue"
import select from "select"
Vue.use(select)
is the best way usage like this, or i should import all ant design ui in app.vue?
Copyright © 2021 Jogjafile Inc.
If you want to use a lot of antd component across your project it's recommended to register the
antd
plugin globally to make all the components available without usingimport {someComponent,...} from 'ant-design-vue'
in every component :if you've a small project you could import the component locally when you need it like: