hug-sun / element3

A Vue.js 3.0 UI Toolkit for IT Education. Build with JS&TS
https://e3.shengxinjing.cn/
MIT License
3.28k stars 1k forks source link

support auto on-demand Import? #602

Closed 666de6 closed 2 years ago

666de6 commented 2 years ago

Bug description

What is the current behavior?

import 'element3/lib/theme-chalk/button.css'
import { ElButton } from 'element3'

createApp(App).use(ElButton).mount('#app')

What is the expected behavior?

I expected that there is no need to manually import . Instead of, we can use an additional plugin to import components, like "unplugin-vue-components" or some thing like that? So i want to know if the element3 support that or other similar?