diff --git a/packages/react-table/src/TableTr.tsx b/packages/react-table/src/TableTr.tsx index 47a074b590..657f66c114 100644 --- a/packages/react-table/src/TableTr.tsx +++ b/packages/react-table/src/TableTr.tsx @@ -1,8 +1,10 @@ import React, { useMemo, useState, useEffect } from 'react'; -import Icon from '@uiw/react-icon'; -import Table, { LocationWidth, TableColumns, TableProps } from './'; -import { TableStyleCol, TableStyleColContent } from './style'; -import './style/index.less'; +// import Icon from '@uiw/react-icon'; +import { MinusSquareO } from '@uiw/icons/lib/MinusSquareO'; +import { PlusSquareO } from '@uiw/icons/lib/PlusSquareO'; +import { LocationWidth, TableColumns, TableProps } from './'; +import { TableStyleCol, TableStyleColContent, TableStyleDomIcon } from './style'; +// import './style/index.less'; import { noop } from '@uiw/utils'; import { locationFixed } from './util'; @@ -52,8 +54,8 @@ export default function TableTr(props: TableTr return (key: T[keyof T] | number, isOpacity: boolean) => { const flag = expandIndex.includes(key); return ( - , HTMLDivElement>, @@ -11,6 +12,8 @@ export interface TableStyleWrapBaseProps extends TableStyleBaseProps { }; } +export interface TableStyleDomIconProps extends IconStyleBaseProps {} + export interface TableStyleColProps extends TableStyleBaseProps { params?: { align?: 'left' | 'center' | 'right'; @@ -113,8 +116,9 @@ export const TableStyleWrap = styled.div` `; TableStyleWrap.defaultProps = { defaultTheme: TableBaseDefaultTheme }; +export const TableStyleDomIcon = styled(IconStyleBase)``; export const TableStyleTheadWrap = styled.thead``; -export const TableStyleTheadItem = styled.th``; +export const TheadItem = styled.th``; // 单元格 export const TableStyleCol = styled.td`