https://github.com/xiaoluoboding/element-demi
An adapter for using Element UI with Vue 2 / 3.
https://github.com/xiaoluoboding/element-demi
element-plus element-ui vue vue2 vue3
Last synced: 8 months ago
JSON representation
An adapter for using Element UI with Vue 2 / 3.
- Host: GitHub
- URL: https://github.com/xiaoluoboding/element-demi
- Owner: xiaoluoboding
- License: mit
- Created: 2021-02-03T10:32:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-23T08:44:20.000Z (almost 5 years ago)
- Last Synced: 2025-04-07T16:51:50.385Z (10 months ago)
- Topics: element-plus, element-ui, vue, vue2, vue3
- Language: JavaScript
- Homepage:
- Size: 264 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
// 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
```js
import Vue from 'vue'
import ElementUI from 'element-demi'
Vue.use(ElementUI)
```
### Vue3
```js
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](./examples/vue2-demo/README.md) | Vue 3 Demo: [Vue CLI 3.x](./examples/vue3-demo/README.md)
## 💡 Inspiration
This library is inspired by [VueDemi](https://github.com/vueuse/vue-demi)
## 📄 License
MIT [@xiaoluoboding](https://github.com/xiaoluoboding)