Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-table

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-table

react table fast

  • 1.1.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

fast-table

一个支持大数据渲染的table表格react组件

安装

npm install fast-table

API

table props:

参数说明类型默认值
columns表格列的配置描述,具体项见下表Array[]-
dataSource数据数组Any[]
widthtable宽度Number or String
heighttable高度Number or String
showHeader是否显示表头Booleantrue
bordered是否显示边框Booleanfalse
fixedHeader是否固定表头Booleantrue
rowRef获取行元素Functiontrue
getRowHeight设置当前行占几行, 默认占1行Function(record, index):Number() => 1
rowHeight默认行高Number30
headerRowHeight表头默认行高Number35
styletable样式Object{}
rowClassName表格行的类名String or Function(record, index):String{}

column props:

参数说明类型默认值
dataIndex列数据在数据项中对应的 key,支持 a.b.c 的嵌套写法String-
keyReact 需要的 key,如果已经设置了唯一的 dataIndex,
可以忽略这个属性
String-
render生成复杂数据的渲染函数,
参数分别为当前行的值,当前行数据,行索引,
@return里面可以设置表格行/列合并
Function(text, record, index) {}-
width列宽度String or Number-
align对齐方式String(left or center or right)left
bodyStylebody中列的样式Object or Function(record, index):Object-
className设置列classNameString or Function(column, record, index):String

示例

import Table from 'fast-table';
ReactDOM.render(<Table {...props} />, mountNode);

Keywords

FAQs

Package last updated on 16 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc