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.14.1
https://visactor.io/vtable/demo/cell-type/checkbox?version=1.14.3
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 }; const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option); window['tableInstance'] = tableInstance;
setTimeout(() => { const info = tableInstance.getCheckboxState('isCheck'); const infos = tableInstance.getCheckboxState(); console.log(info, infos,'1111111') }, 4000)
getCheckboxState(fielId)就获取不了数据了,getCheckboxState()却能获取到数据
getCheckboxState(fielId)就获取得了数据了
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix: fix iterator map in getCheckboxState() #3177 #3239
1e1f5d9
Rui-Sun
Successfully merging a pull request may close this issue.
Version
1.14.1
Link to Minimal Reproduction
https://visactor.io/vtable/demo/cell-type/checkbox?version=1.14.3
Steps to Reproduce
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
};
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
window['tableInstance'] = tableInstance;
setTimeout(() => {
const info = tableInstance.getCheckboxState('isCheck');
const infos = tableInstance.getCheckboxState();
console.log(info, infos,'1111111')
}, 4000)
Current Behavior
getCheckboxState(fielId)就获取不了数据了,getCheckboxState()却能获取到数据
Expected Behavior
getCheckboxState(fielId)就获取得了数据了
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: