VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.68k stars 142 forks source link

[Feature] 可以支持ListTable-columns-text.customLayout 返回Vue或者React组件么 #2236

Open a417420427 opened 1 month ago

a417420427 commented 1 month ago

What problem does this feature solve?

当前业务有很多地方需要自定义单元格,现在只能通过给定的组件去写customLayout或者 customRender,定义起来比较麻烦

What does the proposed API look like?

新增一个 类似 customJsxLayout 的方法或者再原来的customLayout进行拓展,可以返回vue或者react组件

Rui-Sun commented 1 month ago

https://www.visactor.io/vtable/demo-react/custom-layout/cell-custom-component 可以参考一下这个例子

a417420427 commented 1 month ago

https://www.visactor.io/vtable/demo-react/custom-layout/cell-custom-component 可以参考一下这个例子

这个只能返回限定的组件吧, 没法返回自定义的