![]() 版本说明: element-ui: 2.15.7 vue版本: 2.6.7 说明: 按钮的禁用状态只是单独通过原生disabled属性是否触发click事件, 但是如果有不怀好意的人删除对应的属性, 就会导致事件依旧能触发, 相同的, 在loading状态下, 是通过css属性 pointer-events: none来不让事件触发, 也是可以直接在控制器随意修改的 复现: 在控制台中, button标签删除disabled属性, loading状态下, 改变css样式为pointer-events: none; |
||
---|---|---|
.github | ||
build | ||
examples | ||
packages | ||
src | ||
test | ||
types | ||
.babelrc | ||
.eslintignore | ||
.eslintrc | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.en-US.md | ||
CHANGELOG.es.md | ||
CHANGELOG.fr-FR.md | ||
CHANGELOG.zh-CN.md | ||
FAQ.md | ||
LICENSE | ||
Makefile | ||
README.md | ||
components.json | ||
element_logo.svg | ||
package.json | ||
yarn.lock |
README.md
A Vue.js 2.0 UI Toolkit for Web.
Element will stay with Vue 2.x
For Vue 3.0, we recommend using Element Plus from the same team (Element Plus is a community develop project)
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
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:
Join Discussion Group
Scan the QR code using Dingtalk App to join in discussion group :
