Code Monkey home page Code Monkey logo

element's Introduction

说明

基本操作

├─build // 构建相关的脚本和配置
├─examples // 用于展示Element组件的demo
├─lib // 构建后生成的文件,发布到npm包
├─packages // 组件代码
├─src // 引入组件的入口文件
├─test // 测试代码
├─Makefile // 构建文件
├─components.json // ****组件列表
└─package.json
npm i vue vue-loader vue-router vue-template-compiler vue-template-es2015-compiler -D
  1. yarn进行依赖安装
  2. npm run bootstrap 安装依赖
  3. nav.config.json网站侧边栏导航
  4. npm run build:file 的作用是运行 build 目录下几个命令,包括对 icon、entry、i18n、version 等初始化。
  5. npm run build:file生成目标文件(npm run dev的前置条件)
    1. npm run dev 可以通过webpack-dev-sever在本地运行 Element 官网的demo。
  6. npm run dev:play可以在编写组件的时候预览效果 build/webpack.demo.js
  7. npm run dist进行Element-lib的打包操作——最终的index.js
  8. npm run deploy:build进行Element-ui 文档网站的打包操作
  9. 通过 webpack-dev-server 运行 build/webpack.demo.js

uglifyjs-webpack-plugin 删除console UglifyJS2

新建组件


Special thanks to the generous sponsorship by:

A Vue.js 2.0 UI Toolkit for Web.

Links

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 Discussion Group

Scan the QR code using Dingtalk App to join in discussion group :

Join Discusion Group

LICENSE

MIT

element's People

Contributors

baiyaaaaa avatar coderdiaz avatar csvwolf avatar dependabot[bot] avatar dreamacro avatar element-bot avatar elfman avatar furybean avatar gonzalo2310 avatar hi-linlin avatar iamkun avatar island205 avatar jikkai avatar kingwl avatar leopoldthecoder avatar liril-net avatar liyanlong avatar luckycao avatar maranran avatar masterzhang avatar njleonzhang avatar panjiachen avatar pengchongfu avatar qingwei-li avatar raganof avatar shonesinglone avatar simonaliachen avatar wacky6 avatar waynecz avatar ziyoung avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.