|
1 | | -import React, { useEffect, useMemo, useState } from 'react'; |
| 1 | +import React, { useMemo, useState } from 'react'; |
2 | 2 | import { TableDataType } from '@/constants/table'; |
3 | | -import { IManageResultData, IResultConfig, ITableHeaderItem } from '@/typings/database'; |
| 3 | +import { IManageResultData, IResultConfig } from '@/typings/database'; |
4 | 4 | import { formatDate } from '@/utils/date'; |
5 | | -import { Button, message, Modal, Pagination, Select, Table } from 'antd'; |
6 | | -import antd from 'antd'; |
7 | | -import { BaseTable, ArtColumn, useTablePipeline, features, SortItem, BaseTableProps } from 'ali-react-table'; |
8 | | -import Iconfont from '../Iconfont'; |
| 5 | +import { Button, message, Modal } from 'antd'; |
| 6 | +import { BaseTable, ArtColumn, useTablePipeline, features, SortItem } from 'ali-react-table'; |
| 7 | +import Iconfont from '../../Iconfont'; |
9 | 8 | import classnames from 'classnames'; |
10 | | -import StateIndicator from '../StateIndicator'; |
11 | | -import MonacoEditor from '../Console/MonacoEditor'; |
| 9 | +import StateIndicator from '../../StateIndicator'; |
| 10 | +import MonacoEditor from '../../Console/MonacoEditor'; |
12 | 11 | import { useTheme } from '@/hooks/useTheme'; |
13 | 12 | import styled from 'styled-components'; |
14 | | -import styles from './TableBox.less'; |
15 | 13 | import { ThemeType } from '@/constants'; |
16 | 14 | import i18n from '@/i18n'; |
17 | 15 | import { compareStrings } from '@/utils/sort'; |
18 | | -import MyPagination from './Pagination'; |
| 16 | +import MyPagination from '../Pagination'; |
| 17 | +import styles from './index.less'; |
19 | 18 |
|
20 | 19 | interface ITableProps { |
21 | 20 | className?: string; |
@@ -189,6 +188,16 @@ export default function TableBox(props: ITableProps) { |
189 | 188 | onClickTotalBtn={onClickTotalBtn} |
190 | 189 | /> |
191 | 190 | </div> |
| 191 | + {/* <div className={styles.toolBarItem}> |
| 192 | + <Button |
| 193 | + type='text' |
| 194 | + onClick={() => { |
| 195 | + console.log('config', config); |
| 196 | + }} |
| 197 | + > |
| 198 | + 导出Excel |
| 199 | + </Button> |
| 200 | + </div> */} |
192 | 201 | </div> |
193 | 202 | <DarkSupportBaseTable |
194 | 203 | className={classnames({ dark: isDarkTheme }, props.className, styles.table)} |
|
0 commit comments