diff --git a/components/apolloTable/component/Cell.less b/components/apolloTable/component/Cell.less
index 20e1af541b3686397009e2b75b4ad730f8ccdbf2..dda1c1c2e07d5336407c393b9b5e0c39f9ff581f 100644
--- a/components/apolloTable/component/Cell.less
+++ b/components/apolloTable/component/Cell.less
@@ -21,6 +21,23 @@
.checkbox {
margin-right: 10px;
}
+ .expand{
+ text-align: center;
+ width: 20px;
+ border-radius: 50%;
+ height: 20px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: @marginSm;
+ cursor: pointer;
+ &:hover{
+ background: #d0f0fd;
+ }
+ .expandIcon{
+ width: 16px;
+ }
+ }
.content {
flex: 1;
overflow: hidden;
diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx
index 0042b7baa483eae05e9c11123826fcdebc6314c1..b5f6360ed7a1bef2c1fd359d1171192a9d1091b5 100644
--- a/components/apolloTable/component/Cell.tsx
+++ b/components/apolloTable/component/Cell.tsx
@@ -9,6 +9,7 @@ import FormHelper from '../utils/formHelper';
import firstIcon from '../assets/first.png';
import secondIcon from '../assets/second.png';
import thirdIcon from '../assets/third.png';
+import expandIcon from '../assets/extend.png';
import { transferAttr } from './base/_utils/transferAttr';
const Cell = (props: CellProps) => {
@@ -36,6 +37,7 @@ const Cell = (props: CellProps) => {
renderEditCell,
cellRenderProps,
readOnlyFlag,
+ showExpand,
} = columnConfig;
const [status, setStatus] = useState('detail');
@@ -111,23 +113,23 @@ const Cell = (props: CellProps) => {
const { current = 1, pageSize = 20 } = paginationConfig || {};
const getIndex = () => {
- if (current === 1) {
- let src = '';
- switch (rowIndex) {
- case 0:
- src = firstIcon;
- break;
- case 1:
- src = secondIcon;
- break;
- case 2:
- src = thirdIcon;
- break;
- default:
- return rowIndex + 1;
- }
- return ;
- }
+ // if (current === 1) {
+ // let src = '';
+ // switch (rowIndex) {
+ // case 0:
+ // src = firstIcon;
+ // break;
+ // case 1:
+ // src = secondIcon;
+ // break;
+ // case 2:
+ // src = thirdIcon;
+ // break;
+ // default:
+ // return rowIndex + 1;
+ // }
+ // return
;
+ // }
return (current - 1) * pageSize + rowIndex + 1;
};
const getCheckbox = () => {
@@ -160,6 +162,7 @@ const Cell = (props: CellProps) => {
>
{rowSelection && columnIndex === 0 &&