table
table copied to clipboard
React Table
在较高分辨率显示器下,在一些场景下(不同的浏览器宽高),表头竖线和内容竖线不对齐  代码 ``` const columns: ColumnType[] = [ { title: 'title1', dataIndex: 'a', key: 'a', width: 100, fixed: 'left' }, { title: 'title2', dataIndex: 'b', key: 'b', align: 'right'...
看到 antd 源码有大量的处理 scroll 代码,为什么要这样做? 现状在多列场景下,某列在视窗外,如果基于浏览器的 ctrl + f 搜索,浏览器会默认把检索到的元素出现在视窗。由于antd的逻辑处理,浏览器这块介入不了 https://ant.design/components/table-cn#components-table-demo-fixed-columns
Collapsed rows (in nested tables) remain in the DOM, but with `style={display:none;}`. This creates a nasty issue if someone is trying to stripe their table with even-odd CSS rules (which...
when I use VirtualTable, and I set expandable.fixed = true, when i scroll , the expand area is also scroll; expect: the expand area is also fixed like [Fix Columns](https://table-react-component.vercel.app/~demos/docs-demo-expanded-row-render-demo-expandedrowrender)...
https://github.com/react-component/table/blob/6f538dcc5511cacc89a494003b5b186581ccb87f/src/Body/BodyRow.tsx#L85-L97 目前是用一个set存的所有已展开行的key,然后到这里react就会重新渲染所有已展开的行,造成不必要的开销。是否应该将是否展开作为行数据的一个属性,配合key,react就可以做到精准更新这一行。 目前的方案还存在一个问题,数据源改变后 [#mergedExpandedKeys](https://github.com/react-component/table/blob/6f538dcc5511cacc89a494003b5b186581ccb87f/src/hooks/useExpand.ts#L79)并没有改变,当数据源重新变回来后又以展开状态渲染了表格。
在使用table sticky时,部分场景下发现  经排查,发现在计算scrollbar是否需要显示时,table的高度与实际渲染的高度不一致导致的。 文件位置rc-table/es/stickyScrollBar.js : onContainerScroll 推测是由于table数据再短时间内发生了变化,计算时只用了第一次传入的table数据。 经修改,加入以下代码可以解决问题 ``` const bodyHeight = scrollBodyRef.current?.offsetHeight ||0 React.useEffect(()=>{ if(bodyHeight){ onContainerScroll(); } },[bodyHeight]) ```
The "title" prop is deprecated, and "caption" prop recommended. Also, I saw the PR #856 However, rc-table's title and caption works differently. [codesandbox](https://codesandbox.io/p/sandbox/zealous-rain-g748v7)  When move scroll-x, caption follow the...
使用官网例子进行拖拽排序,但是Table本身onRow属性中的点击事件会不生效,应该是产生了冲突,这个怎么解决呢
I'm using the rc-table component to display a table with alternate row colors. However, the background color of even rows only takes effect when I hover over them with the...