VTable
VTable copied to clipboard
[Feature] PivotTable's corner can support customRender customLayout
What problem does this feature solve?
use this feature can write this demo
What does the proposed API look like?
1
Let me try.
具体需求是给角头增加自定义渲染能力 也就是增加customRender和customLayout的配置到corner 。然后通过自定义能力实现这样一个demo。
需要注意的是:
customRender和customLayout的作用目前是给当前单元格定义自定义渲染,例如角头部分是两个单元格的时候,配置了自定义渲染,和目前其他地方的自定义渲染逻辑一样在两个单元格分别进行自定义绘制
但是我们实现的目前是需要有合并的能力,也就是两个单元格是按一个单元格来渲染自定义内容的。这个开发前需要需要参考学习自定义合并单元格能力:
https://visactor.io/vtable/demo/basic-functionality/custom-merge
https://visactor.io/vtable/option/ListTable#customMergeCell
以及分组标题的合并及自定义渲染:
https://visactor.io/vtable/demo/table-type/list-table-group
https://visactor.io/vtable/option/ListTable#groupTitleCustomLayout