- 改进的虚拟化算法并全面支持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.