VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 自定义单元格合并,合并checkbox、radio列,合并后只出现自定义合并中配置的text文字,没有渲染checkbox、radio

Open adblock opened this issue 4 months ago • 2 comments

Version

1.7.4 后的版本

Link to Minimal Reproduction

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 }, { field: 'price', title: 'checkbox', width: 120, cellType: 'checkbox', disable: true, checked: true }, { field: 'check', title: 'checkbox', width: 120, cellType: 'checkbox' // disable: true } ]; const option = { records, columns, customMergeCell: (col, row, table) => { if (col ===0 && row >= 1 && row <= 2) { return { text: '合并', range: { start: { col: 0, row: 1 }, end: { col: 0, row:2 } }, style: { bgColor: 'red' } }; } } }; const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option); window['tableInstance'] = tableInstance;

Current Behavior

合并后只出现自定义合并中配置的text文字,没有渲染checkbox、radio

Expected Behavior

checkbox和radio列自定义合并后可以正常展示checkbox和radio

Environment

- OS:Windows11
- Browser:chrome 版本 138.0.7204.185(正式版本) (64 位)
- Framework: vue3

Any additional comments?

No response

adblock avatar Sep 02 '25 02:09 adblock

关联飞书群话题消息 https://applink.larkoffice.com/client/message/link/open?token=AmU%2FQqHXB0ADaLZTPx%2BGwAI%3D

fangsmile avatar Sep 02 '25 02:09 fangsmile

关联飞书群话题消息 https://applink.larkoffice.com/client/message/link/open?token=AmU%2FQqHXB0ADaLZTPx%2BGwAI%3D

提示 你不在回话中 无法查看

2663272622 avatar Sep 28 '25 09:09 2663272622