@sluodev/element-ui v2.15.16
Fork of
ElemeFE/element
2.15.14 with patched QAXOSS-2021-054210 (async-validator v1 security vulnerability).A Vue.js 2.0 UI Toolkit for Web.
Usage
Installation
npm install @sluodev/element-ui --save
CSS Import
When importing CSS in your project, replace:
@import "~element-ui/packages/theme-chalk/src/index";
with:
@import "~@sluodev/element-ui/packages/theme-chalk/src/index";
Configuration in vue.config.js
Add the following configuration to your vue.config.js
file:
const path = require('path');
const resolve = dir => path.join(__dirname, dir);
module.exports = {
// ...other configs
configureWebpack: {
resolve: {
alias: {
'@': resolve('src'),
'element-ui': '@sluodev/element-ui',
'element-ui/lib': '@sluodev/element-ui/lib',
'element-ui/packages': '@sluodev/element-ui/packages',
'element-ui/src': '@sluodev/element-ui/src'
}
},
},
}
Element will stay with Vue 2.x
For Vue 3.0, we recommend using Element Plus(Element Plus is a community develop project)
For MiniProgram development, we recommend using MorJS
Links
- Homepage and documentation
- awesome-element
- FAQ
- Vue.js 3.0 migration
- Customize theme
- Preview and generate theme online
- Element for React
- Element for Angular
- Atom helper
- Visual Studio Code helper
- Starter kit
- Design resources
- Gitter
Quick Start
import Vue from 'vue'
import Element from 'element-ui'
Vue.use(Element)
// or
import {
Select,
Button
// ...
} from 'element-ui'
Vue.component(Select.name, Select)
Vue.component(Button.name, Button)
For more information, please refer to Quick Start in our documentation.
Browser Support
Modern browsers and Internet Explorer 10+.
Development
Skip this part if you just want to use Element.
For those who are interested in contributing to Element, please refer to our contributing guide (中文 | English | Español | Français) to see how to run this project.
Changelog
Detailed changes for each release are documented in the release notes.
FAQ
We have collected some frequently asked questions. Before reporting an issue, please search if the FAQ has the answer to your problem.
Contribution
Please make sure to read the contributing guide (中文 | English | Español | Français) before making a pull request.
Special Thanks
English documentation is brought to you by SwiftGG Translation Team:
Spanish documentation is made possible by these community developers:
- adavie1
- carmencitaqiu
- coderdiaz
- fedegar33
- Gonzalo2310
- lesterbx
- ProgramerGuy
- SantiagoGdaR
- sigfriedCub1990
- thechosenjuan
French documentation is made possible by these community developers:
Join Discussion Group
Scan the QR code using Dingtalk App to join in discussion group :