An adapter for using Element UI with Vue 2 / 3.
This library aim to testing the postinstall
npm hook. After all packages get installed. the script will start to check
the installed Vue version and redirect the exports to based on the local Vue version.
// vue2.x + element-ui
npm i element-demi element-ui
# or
yarn add element-demi element-ui
// vue3.x + element-plus
npm i element-demi element-plus
# or
yarn add element-demi element-plus
import Vue from 'vue'
import ElementUI from 'element-demi'
Vue.use(ElementUI)
import { createApp } from 'vue'
import App from './App.vue'
import ElementUI from 'element-demi'
const app = createApp(App)
app.use(ElementUI)
Vue 2 Demo: Vue CLI 2.x | Vue 3 Demo: Vue CLI 3.x
This library is inspired by VueDemi
MIT @xiaoluoboding