0.0.3 • Published 1 year ago

react-custom-table2 v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-custom-table2

适用于表格某些行的信息需要合并展示的场景

demo

demo

usage

npm i react-custom-table2 
or yarn add react-custom-table2

属性说明

属性说明默认值类型
tableBorderColor边框颜色#cad1d8string
tableWidth表格宽度1200number
cellNoContentTips单元格无内容的展示''string
bodyNotDataTips表格body无内容的提示暂无数据number
tableAligin表格布局(left,center,right)centerstring
cellHeight单元格高度50number
bodyNotShowProps表体中不显示的属性'key', 'colIndex'array
headerStyle表头样式{background: '#e2e9ef', color: '#333' }object
headerBgColor表头背景颜色 (该属性会覆盖headerStyle中的背景颜色)#e2e9efstring
header表头数据[]array
body表体数据[]array
footer表底部数据[]array