Go to file
yaojin2070 238b880c97
fix: 修复特殊情况下, 按钮禁用状态, 依旧可以执行点击事件的问题
版本说明: element-ui: 2.15.7 vue版本: 2.6.7

说明: 按钮的禁用状态只是单独通过原生disabled属性是否触发click事件, 但是如果有不怀好意的人删除对应的属性, 就会导致事件依旧能触发, 相同的, 在loading状态下, 是通过css属性 pointer-events: none来不让事件触发, 也是可以直接在控制器随意修改的

复现:  在控制台中, button标签删除disabled属性, loading状态下, 改变css样式为pointer-events: none;
2022-06-09 18:03:38 +08:00
.github Chore: fix CI (#21461) 2021-11-11 14:20:18 +08:00
build chore: add launch-editor-middleware (#21901) 2022-06-02 18:38:03 +08:00
examples [build] 2.15.9 2022-06-03 09:48:31 +08:00
packages fix: 修复特殊情况下, 按钮禁用状态, 依旧可以执行点击事件的问题 2022-06-09 18:03:38 +08:00
src [build] 2.15.9 2022-06-03 09:48:31 +08:00
test Form: validate method reject error info (#21374) 2021-10-11 15:15:51 +08:00
types Descriptions: fix type declaration (#21265) 2021-08-26 10:45:56 +08:00
.babelrc Build: Fix babel config issue which lead to collapse transition broken 2019-02-01 12:37:16 +08:00
.eslintignore Chore: eslint ignore font files (#11696) 2018-06-25 16:35:58 +08:00
.eslintrc Chore: Theme Extension (#16686) 2019-08-09 17:53:49 +08:00
.gitattributes DatePicker: fix trigger multiple watch, fixed #597 2016-10-24 11:33:48 +08:00
.gitignore I18n: French translation (#12153) 2019-02-12 09:08:19 +08:00
.travis.yml chore: update test deps and conf (#14735) 2019-03-18 15:34:44 +08:00
CHANGELOG.en-US.md chore: add changelog (#21903) 2022-06-02 22:19:04 +08:00
CHANGELOG.es.md chore: add changelog (#21903) 2022-06-02 22:19:04 +08:00
CHANGELOG.fr-FR.md chore: add changelog (#21903) 2022-06-02 22:19:04 +08:00
CHANGELOG.zh-CN.md chore: add changelog (#21903) 2022-06-02 22:19:04 +08:00
FAQ.md Changelog: update for 2.0.6 2017-11-29 14:26:16 +08:00
LICENSE Chore: update license year (#12419) 2018-08-22 11:16:47 +08:00
Makefile Chore: retire lerna and remove redundant files (#11493) 2018-06-05 19:27:13 +08:00
README.md chore: add changelog (#21903) 2022-06-02 22:19:04 +08:00
components.json Result: add result component (#21171) 2021-07-21 15:20:25 +08:00
element_logo.svg add logo 2016-12-13 22:00:20 +08:00
package.json [release] 2.15.9 2022-06-03 09:48:33 +08:00
yarn.lock chore: add launch-editor-middleware (#21901) 2022-06-02 18:38:03 +08:00

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)

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:

French documentation is made possible by these community developers:

Join Discussion Group

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

Join Discusion Group

LICENSE

MIT