@abrigo/element-ui 中文文档教程

发布于 5年前 浏览 25 项目主页 更新于 3年前

@abrigo/element-ui

Update to a new Element version:

  1. Fetch and merge changes from the upstream Element library.
  2. Push updates to the forked Bitbucket repository.

Publish a new NPM package:

  1. Run npm run dist from the command line to generate a new distributable Element package.
  2. Search the generated lib directory for element-ui/lib, which will find require and external references.
  3. Replace the found text in lib with @abrigo/element-ui/.
  4. Check package.json to confirm the version 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.
  5. Run npm publish from the command line.

Notes:

  1. The published NPM package is public. (It is a straight fork of the MIT licensed Element library).
  2. The published NPM package can be viewed at https://www.npmjs.com/package/@abrigo/element-ui.
  3. 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.

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.

Let's fund issues in this repository

Special Thanks

English documentation is brought to you by SwiftGG Translation Team:

Spanish documentation is made possible by these community developers:

French documentation is made possible by these community developers:

Donation

If you find Element useful, you can buy us a cup of coffee

donation

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 :

Join Discusion Group

LICENSE

MIT

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文