- Fixed #141.
- Removed an unnecessary print
console.log
.
- Fixed a bug on safari.
- Improved the performance.
- Fixed #136.
- Supported immutable records(#120)(#132).
- Fixed the return type(ts) of the
useVT
. - Supported antd-v5.
- Improved the function
helper_diagnosis
.
- Updated the building tools.
- Supported the React18(#123).
- Supported tree-structure.
- 添加支持
expandable
,(#106) 例子. - 表样式增加
minWidth: 100%
(#114). - 修复
useVT
的scroll
类型问题(#116).
- Added support for
expandable
,(#106) refer. - Added table style
minWidth: 100%
(#114). - Fixed the
scroll
type problem ofuseVT
(#116).
- feat:
useVT
返回 ref. - fix: 改进了
scrollTo
,可以精确地滚动到指定位置. - feat: 新增
scrollToIndex
方法(#94),例子
- feat:
useVT
can returnsref
instead of the previous method. - fix:
scrollTo
has been improved, that can now scroll exactly to the specified position. - feat: added function
scrollToIndex
(#94), refer
- fix: 删除多余的导出 useOnce.
- fix: 一个bug(#100).
- fix:
useOnce
of the exports has been deleted. - fix: a bug(#100).
- fix: 初始化时空数据的崩溃问题(#84).
- fix: crashing problem by the empty data, it happened when the VT was initialized(#84).
- fix: 空数据的渲染问题.
- fix: rendering of empty data.
- feat: scrollTo方法,支持指定位置滚动(#75).
- fix: 支持React17(#77).
- fix: 修复onScroll参数在高DPI下isEnd无法为true的问题(#74).
- 改进的虚拟化算法并全面支持antd4.
- the improved virtualization algorithm, and full supports antd4.
- fix: 删除被标记为
deprecated
的接口和参数。- 接口:
getVTComponents
- 接口:
getVTContext
- 参数:
vt_opts.reflection
- 接口:
- refacotry: 一些细小重构。
- fix: delete the APIs and the params marked as
deprecated
.- API:
getVTComponents
- API:
getVTContext
- param:
vt_opts.reflection
- API:
- refacotry: some minor refactorings.
- fix:
Cannot redefine property: __DIAGNOSIS__
(#55).
- fix: ctx._React_ptr.forceUpdate is not a function.(#46)
- improved diff algorithm, fix some bugs.
- improved diff algorithm.
- fix a bug.(#42)
- fix some bugs, thanks @liubinis86.(#35 #34).
- improve consistency to avoid incorrect rendering.
- add a new Hooks API,
useVT
. - fix a bug that free the same index repeatedly.(#21)
- fix some bugs.(#21)
- an unmounted component will not update style.
- fix a bug.(#25)
getComponent
has been deprecated, usesetComponent
instead(#26).- adjusted log format.
- removed debug info
console.log
(sorry, guys~).
- removed
VTRefresh
. - removed
height
, now it depends entirely onscroll.y
. - redesigned interface
VTScroll
. - much bugs was fixed.
- fast, fast and more faster, with my best trying that all operations costs time about O(1).
- browers required support
requestAnimationFrame
.
I suggest you to test this library carefully after installing it.
- improving compatibility.
- fix some bugs.
- fix
debug
bug when the parame
isnull
.
- refactory
scrollHook
.
- refactory
scrollHook
to optimize performance. - update README.md.
- fix the definition of
vt_ctx
. - remove
VTWrapperRender
option. - remove
changedBits
option. - more friendly reading format for this file.
debug
can showsscrollTop
.
- { debug: true, ... } to see more debugging details.
- fix VTScroll bug.
- using render-lock, VT can now renders stably.
- improved throttling.
- fix some problems in TS 3.5.
- the default value of vt_opts.overscanRowCount is now 5.
- show the warning when you don't have 'height' as a field in the vt_opts.
- add throttling to optimize scrolling.
- change the styles (#9)
- support for the opt ColumnProps.fixed (#5)
- support for the fixed lists.
- compatible with ie9-11.
- fix VTScroll bug.
- fix minor style bug that using offsetHeight instead of clientHeight (#2)
- optimize the program logic
- add debug feature
- removed two interfaces in vt_opts ( VTScroll and VTRefresh)
- by default, CACHE is enable, , set the prop destory to control whether the component is destroyed when it is uninstalled
- rewrite const enum to enum
- the interface vt_opts no longer requires too many params
- now, the func VTScroll can correct restores last scroll state of antd table
- add new API VTScroll (overload+2)
class MyComponent extends React.Component {
...
render() {
<Table
...
scroll={{ y }}
components={VTComponents({ id: 1000, height: 500 })}
/>
}
componentDitMount() {
VTScroll(1000, { top: 200 }) // to set
const { top, left } = VTScroll(1000); // to get
}
}
- add new API onScroll of the scroll event
<Table
...
scroll={{ y }}
components={
VTComponents({ id: 1000, height: y, onScoll: ({ left, top }) => console.log(left, top) })}
/>
- add new API VTRefresh
export declare function VTRefresh(id: number): void;
2. remove the func shouldComponentUpdate of VTWrapper
3. remove the func shouldComponentUpdate of VTRow
- Solve the initial rendering bug. (#1)
- Update the README.md
- Added missing type.
function VTComponents(vt_opts: vt_opts): TableComponents
- Some bugs fixed.
- init ver.