0.1.7 • Published 5 years ago
seenw-base-table v0.1.7
seenw-base-table
安装
import 'seenw-base-table';
import 'seenw-base-table/style.css';如何使用
在需要替换的Table组件的地方引入组件
Table组件加上width(必填 number)
注意事项
在使用 ref 的情况下,请使用 react 16.3 之后的方式
类组件使用
React.createRef()Hooks使用
React.useRef()
可以删除的API(也可以留着)
useVirtual,fixedHeader,onBodyScroll
Fusion API兼容情况
Table
| 必填 | 目前支持 | 缺失api | 有冲突api |
|---|---|---|---|
| width | dataSource | tableLayout | onResizeChange |
| - | onRowClick | size | - |
| - | onRowMouseEnter | tableWidth | - |
| - | onRowMouseLeave | onFilter | - |
| - | onSort | hasBorder | - |
| - | primaryKey | hasHeader | - |
| - | sort | - | - |
| - | rowProps | - | - |
| - | cellProps | filterParams | - |
| - | isZebra | expandedRowRender | - |
| - | emptyContent | expandedRowIndent | - |
| - | loading | hasExpandedRowCtrl | - |
| - | loadingComponent | getExpandedColProps | - |
| - | maxBodyHeight | openRowKeys | - |
| - | onDoubleClick | onRowOpen | - |
| - | - | fixedHeader | - |
| - | - | - | - |
| - | - | rowSelection | - |
| - | - | stickyHeader | - |
| - | - | offsetTop | - |
| - | - | affixProps | - |
| - | - | indent | - |
| - | - | isTree | - |
| - | - | useVirtual | - |
| - | - | onBodyScroll | - |
| - | - | expandedIndexSimulate | - |
| - | - | crossline | - |
Column
| 必填 | 目前支持 | 不支持 |
|---|---|---|
| width | title | htmlTitle |
| - | dataIndex | alignHeader |
| - | cell | filters |
| - | resizable | filterMode |
| - | lock | filterMenuProps |
| - | sortable | colSpan |
| - | align |