Table
用于实现多行多列的表格
基础用法
loading
属性
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| data | 表格数据 | any[] | [] |
| config | 表格配置 | TableConfig[] | [] |
TableConfig
| 参数 | 说明 | 类型 |
|---|---|---|
| rowStyle | 行体样式 | CSSProperties |
| headStyle | 表头样式 | CSSProperties |
| columns | 列配置 | Column[] |
Column
| 参数 | 参数 | 类型 |
|---|---|---|
| key | 唯一标识key | string |
| dataKey | 单元格数据字段(配置了才会显示对应数据列) | string |
| title | 表头名称(配置了才会显示对应列表头) | string |
| head | 表头格配置 | CellProps |
| cell | 数据格配置 | CellProps |
CellProps
| 参数 | 说明 | 类型 |
|---|---|---|
| style | 样式 | CSSProperties |
| colSpan | 占用列数 | CSSProperties |
| rowSpan | 占用行数 | Column |