imrim12 / element-demi

An adapter for using Element UI with Vue 2 / 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Element Demi

An adapter for using Element UI with Vue 2 / 3.

🪀 Just a toy

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.

📦 Install

// 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

🎩 Usage

Vue2

import Vue from 'vue'
import ElementUI from 'element-demi'

Vue.use(ElementUI)

Vue3

import { createApp } from 'vue'
import App from './App.vue'
import ElementUI from 'element-demi'

const app = createApp(App)

app.use(ElementUI)

🦄️ Demos

Vue 2 Demo: Vue CLI 2.x | Vue 3 Demo: Vue CLI 3.x

💡 Inspiration

This library is inspired by VueDemi

📄 License

MIT @xiaoluoboding

About

An adapter for using Element UI with Vue 2 / 3.

License:MIT License


Languages

Language:JavaScript 40.1%Language:Vue 34.3%Language:HTML 20.2%Language:TypeScript 5.4%