We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,我已经使用了你们的组件做好了数据渲染,都挺好的。
现在想使用el-table自带的事件row-click事件做点击行的处理,发现无法传递到table组件。 你们提供了一个tableAttrs是传递数据的,那请问事件如何传递过去?
我觉得使用表格自带的一些事件应该是基础需求,考虑扩展一下,或者把el-table自带的事件加上去?
The text was updated successfully, but these errors were encountered:
你可以通过直接引用内部el-table的方式来添加事件监听。比如你为el-data-table添加ref="dataTable"属性,你就可以这样子this.$refs.dataTable.$refs.table.$on('row-click', handler)
ref="dataTable"
this.$refs.dataTable.$refs.table.$on('row-click', handler)
Sorry, something went wrong.
试过了可以,谢谢。👍
感谢你的认可 @beautycss
No branches or pull requests
你好,我已经使用了你们的组件做好了数据渲染,都挺好的。
现在想使用el-table自带的事件row-click事件做点击行的处理,发现无法传递到table组件。
你们提供了一个tableAttrs是传递数据的,那请问事件如何传递过去?
我觉得使用表格自带的一些事件应该是基础需求,考虑扩展一下,或者把el-table自带的事件加上去?
The text was updated successfully, but these errors were encountered: