@abrigo/element-ui 中文文档教程
@abrigo/element-ui
Update to a new Element version:
- Fetch and merge changes from the upstream Element library.
- Push updates to the forked Bitbucket repository.
Publish a new NPM package:
- Run
npm run dist
from the command line to generate a new distributable Element package. - Search the generated
lib
directory forelement-ui/lib
, which will findrequire
andexternal
references. - Replace the found text in
lib
with@abrigo/element-ui/
. - Check
package.json
to confirm theversion
matches the Element version.- If you need to make an update from the most recent Element version, use the "rc" format, i.e,
2.9.1-rc.1
.
- If you need to make an update from the most recent Element version, use the "rc" format, i.e,
- Run
npm publish
from the command line.
Notes:
- The published NPM package is public. (It is a straight fork of the MIT licensed Element library).
- The published NPM package can be viewed at https://www.npmjs.com/package/@abrigo/element-ui.
- Published NPM packages are immutable. You can only publish one package version, but you can publish as many versions as desired.
Special thanks to the generous sponsorship by:
A Vue.js 2.0 UI Toolkit for Web.
Links
- Homepage and documentation
- International users
- Chinese users
- Spanish users
- French users
- awesome-element
- FAQ
- Customize theme
- Preview and generate theme online
- Element for React
- Element for Angular
- Atom helper
- Visual Studio Code helper
- Starter kit
- element-starter
- element-in-laravel-starter
- Design resources
- Gitter
- International users
- Chinese users
Install
npm install element-ui -S
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:
Donation
If you find Element useful, you can buy us a cup of coffee
Backers
Support us with a monthly donation and help us continue our activities. [Become a backer]
Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Join Discusion Group
Scan the QR code using Dingtalk App to join in discusion group :