Comments (6)
<el-button @click.native="edit">默认按钮</el-button>
@tdida 看到你的代码了,补充一下,Vue2中自定义组件都需要.native
才能使用原生事件。
from element.
@csvwolf 可以了,多谢
from element.
jsx 的这个语法是什么?
from element.
nativeOn
from element.
@csvwolf 你好,你说VUE2,要加.native才能监听原生事件,这是什么意思啊,难道还有自定义的onclick事件吗?
from element.
@DanielWLam
https://github.com/ElemeFE/element/blob/master/FAQ.md
建议看一下Vue2的文档
from element.
Related Issues (20)
- [Bug Report] el-table使用了fixed固定列后的影响 HOT 1
- [Bug Report] table多级表格中某列的子列固定,其余子列不固定,会导致不设置固定属性的子列内容渲染为空
- [Bug Report] Image组件优先加载undefine导致正常图片无法正常展示
- [Bug Report] El-calendar Hebrew
- [Bug Report] Nesting a form within an el-table and simultaneously using 'fixed' and 'ref' can result in the issue of generating two 'ref' references.
- [Bug Report] progress设置底色和文字颜色不成功
- [Bug Report] Upload组件,本地上传弹出后,点击外部遮罩部分,上传文件窗口消失,但是遮罩没有消失。
- [Bug Report] el-table使用自定义el-checkbox会和树形图标的样式重叠 HOT 1
- [Bug Report] 开发环境下的button primary样式在edge下无法正常加载? HOT 1
- [Bug Report] 官网图片显示尺寸错误 HOT 3
- [Bug Report] Statistic的倒计时功能value改变后倒计时时间未根据新的value倒计时 HOT 2
- [Bug Report] When the DateTimePicker component sets both the format and value-format properties at the same time, the time selector will malfunction
- [Bug Report] el-select在focus時回顯異常 HOT 1
- el.css和el.js CDN连不上了,有人解决一下吗? HOT 8
- [Bug Report] Element官网生成主题接口错误导致无法再从官网自定义主题 HOT 3
- cdn.bootcdn.net 访问的2.15.7版本源代码,输入框空的placeholder会出现乱码的情况 HOT 1
- el-table切换页码纵向滚动条消失问题 HOT 1
- el-table切换页码纵向滚动条消失问题
- table组件的展开行,在有些情况下会错位
- [Bug Report] 获取主题预览配置错误 ,503 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element.