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.16.1
https://www.visactor.io/vtable/demo/cell-type/checkbox
同时设置 options.select.disableSelect = true 以及 options.dragHeaderMode = 'column' 即可稳定复现该问题(不设置 options.select.disableSelect = true 也可以复现,只不过操作起来要求更高一些),完整复现代码如下:
options.select.disableSelect = true
options.dragHeaderMode = 'column'
const records = [ { productName: 'aaaa', price: 20, check: { text: 'unchecked', checked: false, disable: false } }, { productName: 'bbbb', price: 18, check: { text: 'checked', checked: true, disable: false } }, { productName: 'cccc', price: 16, check: { text: 'disable', checked: true, disable: true } }, { productName: 'cccc', price: 14, check: { text: 'disable', checked: false, disable: true } }, { productName: 'eeee', price: 12, check: { text: 'checked', checked: false, disable: false } }, { productName: 'ffff', price: 10, check: { text: 'checked', checked: false, disable: false } }, { productName: 'gggg', price: 10, check: { text: 'checked', checked: false, disable: false } } ]; const columns = [ { field: 'isCheck', title: '', width: 60, headerType: 'checkbox', cellType: 'checkbox' }, { field: 'productName', title: 'productName', width: 120 }, ]; const option = { records, columns, select: { disableSelect: true, }, dragHeaderMode: 'column', }; const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option); tableInstance.on('checkbox_state_change', console.log) window['tableInstance'] = tableInstance;
如标题
在按下 checkbox 的时候不触发拖拽行为,只有按下空白的区域时才触发(其他类型的表列也应该按照此类逻辑,例如 radio)
- OS: 任意 - Browser: 任意 - Framework: 任意
严格来讲,这其实不算bug,说是优化点可能更合适一点 :D
The text was updated successfully, but these errors were encountered:
Rui-Sun
No branches or pull requests
Version
1.16.1
Link to Minimal Reproduction
https://www.visactor.io/vtable/demo/cell-type/checkbox
Steps to Reproduce
同时设置
options.select.disableSelect = true
以及options.dragHeaderMode = 'column'
即可稳定复现该问题(不设置options.select.disableSelect = true
也可以复现,只不过操作起来要求更高一些),完整复现代码如下:Current Behavior
如标题
Expected Behavior
在按下 checkbox 的时候不触发拖拽行为,只有按下空白的区域时才触发(其他类型的表列也应该按照此类逻辑,例如 radio)
Environment
Any additional comments?
严格来讲,这其实不算bug,说是优化点可能更合适一点 :D
The text was updated successfully, but these errors were encountered: