|
@@ -3,18 +3,19 @@ import { Table } from 'antd';
|
|
|
|
|
|
export default function DetialTable(props) {
|
|
export default function DetialTable(props) {
|
|
const {
|
|
const {
|
|
- columns,
|
|
|
|
- data = [],
|
|
|
|
- rowKey= 'id',
|
|
|
|
- size = 'default',
|
|
|
|
- scroll,
|
|
|
|
- onChange,
|
|
|
|
- total = 0,
|
|
|
|
- curIndex,
|
|
|
|
|
|
+ columns,
|
|
|
|
+ data = [],
|
|
|
|
+ rowKey= 'id',
|
|
|
|
+ size = 'default',
|
|
|
|
+ scroll,
|
|
|
|
+ onChange,
|
|
|
|
+ total = 0,
|
|
|
|
+ curIndex,
|
|
pageSize = 15,
|
|
pageSize = 15,
|
|
pagination = true,
|
|
pagination = true,
|
|
expandedRowRender = false,
|
|
expandedRowRender = false,
|
|
onExpand = false,
|
|
onExpand = false,
|
|
|
|
+ ellipsis = false,
|
|
rowClassName,
|
|
rowClassName,
|
|
onHeaderRow
|
|
onHeaderRow
|
|
} = props
|
|
} = props
|
|
@@ -37,6 +38,7 @@ export default function DetialTable(props) {
|
|
total,
|
|
total,
|
|
showTotal: total => `共 ${total} 条`
|
|
showTotal: total => `共 ${total} 条`
|
|
}}
|
|
}}
|
|
|
|
+ ellipsis={ellipsis}
|
|
scroll={scroll}
|
|
scroll={scroll}
|
|
onExpand={onExpand}
|
|
onExpand={onExpand}
|
|
expandedRowRender={expandedRowRender}
|
|
expandedRowRender={expandedRowRender}
|
|
@@ -44,4 +46,4 @@ export default function DetialTable(props) {
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
-}
|
|
|
|
|
|
+}
|