paul-long / fast-table Goto Github PK
View Code? Open in Web Editor NEWreact, table, virtualization, fixed column, fixed header, sort, tree table
Home Page: https://paul-long.github.io/react-components/
License: MIT License
react, table, virtualization, fixed column, fixed header, sort, tree table
Home Page: https://paul-long.github.io/react-components/
License: MIT License
column._onHeaderCell = column.onHeaderCell || (() => {})
column.onHeaderCell = col => ({
width: col.width,
index: index,
fixed: col.fixed,
resizable: col.resizable,
onResize: this.tableOnColumnResize(index),
...column._onHeaderCell(column)
})
I'm trying to build a fast-table-ex, to extend table draggble moving, column hide, draggable resizing and automatic storage setting. I have setted FastTable.props.components = { header: { cell: Function(props) } }.
我这边的场景是行的数量是有限的(10行一页),但是列可能多达上千,列上又会有排序搜索之类的方法,现在也是巨卡无比,这个有什么办法没有
使用expandedRowRender实现额外行,第一次查询children的path有值,修改过数据重新渲染之后没值。
版本: 1.4.7
onRow= (rowData) => {
return {
onAnimationEnd: () => console.log('onAnimationStart'),
onAnimationStart: () => console.log('onAnimationStart'),
onTransitionEnd: () => console.log('onTransitionEnd')
}
}
第126行 应增加配置
export const eventsMap = {
mouseenter: 'onMouseEnter',
mouseleave: 'onMouseLeave',
click: 'onClick',
// 增加
animationend: 'onAnimationEnd',
animationstart: 'onAnimationStart',
transitionend: 'onTransitionEnd'
};
数据量大的时候,在antd的tabs组件内切换时卡顿明显
onClick可以onDoubleClick无效
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.