Skip to content

Table ​

用于实现多行多列的表格

基础用法 ​

loading

属性 ​

参数说明类型默认值
data表格数据any[][]
config表格配置TableConfig[][]

TableConfig ​

参数说明类型
rowStyle行体样式CSSProperties
headStyle表头样式CSSProperties
columns列配置Column[]

Column ​

参数参数类型
key唯一标识keystring
dataKey单元格数据字段(配置了才会显示对应数据列)string
title表头名称(配置了才会显示对应列表头)string
head表头格配置CellProps
cell数据格配置CellProps

CellProps ​

参数说明类型
style样式CSSProperties
colSpan占用列数CSSProperties
rowSpan占用行数Column

源码 ​

源代码