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
1.4.5
vue: 2.6.10,ant-design-vue:1.4.5,浏览器版本:chrome 77.0.3865.75(正式版本) (64 位)
<template> <a-table :columns="columns" :rowKey="record => { return record.INDEX;}" :dataSource="tableData" :customRow="customClick" /> </template> <script> const columns = [ { title: '序号', dataIndex: 'INDEX' },{ title: '主题大类', dataIndex: 'THEME' },{ title: '中文名称', dataIndex: 'CN_NAME' },{ title: '英文名称', dataIndex: 'EN_NAME' } ]; export default { data () { return { columns, tableData: [ {INDEX: 0, THEME: '基础数据', CN_NAME: '地址', EN_NAME: 'Address'}, {INDEX: 1, THEME: '基础数据', CN_NAME: '姓名', EN_NAME: 'Name'} ], customClick: (record) => ({ on: { click: () => { window.console.log('click record:', record); }, dbclick: () => { window.console.log('doubleclick record:', record); } } }) } } } </script>
实现table行双击事件响应
单击事件click可以响应,双击dbclick事件不响应
The text was updated successfully, but these errors were encountered:
找到原因了,是文档的问题 https://www.antdv.com/components/table-cn/#api 应该是dblclick,文档写成dbclick了
Sorry, something went wrong.
fix: update dbclick to dblclick #1437
e3f867b
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Version
1.4.5
Environment
vue: 2.6.10,ant-design-vue:1.4.5,浏览器版本:chrome 77.0.3865.75(正式版本) (64 位)
Reproduction link
Steps to reproduce
What is expected?
实现table行双击事件响应
What is actually happening?
单击事件click可以响应,双击dbclick事件不响应
The text was updated successfully, but these errors were encountered: