VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] rowSeriesNumber 存在时,合并单元格,rowSeriesNumber 会重复渲染合并列内容

Open QaQ-top opened this issue 1 year ago • 3 comments

Version

1.5.3

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-export-umd-forked-9dv7nc?file=%2Fsrc%2Fapp.ts%3A162%2C34

Steps to Reproduce

添加 rowSeriesNumber customMergeCell 合并整行

Current Behavior

序号单元格与合并整行的单元格共用渲染逻辑 image

Expected Behavior

我想做分组数据,如果我合并从序号列开始,会有拖拽手柄,但是我不想他拖拽,也不想这组里面的数据拖拽到其他组; 目前拖拽需求是满足的,只是这个渲染会影响我的需求,我想要的效果如下图 image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

QaQ-top avatar Aug 23 '24 06:08 QaQ-top

https://visactor.io/vtable/demo/table-type/list-table-group 分组已经支持上了,你可以把自定义的合并换成这个group实现 @QaQ-top 不过group的情况下 目前不支持拖拽移动位置。 可以关注这个issue:https://github.com/VisActor/VTable/issues/2425

fangsmile avatar Sep 11 '24 03:09 fangsmile

image 这样行吗

fangsmile avatar Sep 11 '24 04:09 fangsmile

https://visactor.io/vtable/demo/table-type/list-table-group 分组已经支持上了,你可以把自定义的合并换成这个group实现 @QaQ-top 不过group的情况下 目前不支持拖拽移动位置。 可以关注这个issue:#2425

如果我用 changeRecordOrder 方法更换位置,再手动调用 updatecellcontent,之后用 renderSceneGraph 更新渲染,应该可以做到移动位置吧

QaQ-top avatar Sep 14 '24 01:09 QaQ-top