From 3ee61c7bc9d0a3a6a41168c3050f71c8696a0d00 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Tue, 14 Jul 2020 17:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9padding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Cell.tsx | 3 --- components/apolloTable/component/Column.tsx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index db4fc74..a8b88bf 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -213,9 +213,6 @@ const Cell = (props: CellProps) => { const transferColumn = transferAttr(columnType, newProps); const style: any = {}; - if (columnIndex === 0 && (rowSelection || showExpand || showIndex)) { - style.paddingLeft = 0; - } const { dynamicCellConfigDTO } = columnData; const detail = ( diff --git a/components/apolloTable/component/Column.tsx b/components/apolloTable/component/Column.tsx index 62c296c..e3db454 100644 --- a/components/apolloTable/component/Column.tsx +++ b/components/apolloTable/component/Column.tsx @@ -85,7 +85,7 @@ export default class TableColumn extends PureComponent { return (
{rowSelection && columnIndex === 0 &&
{this.getCheckbox()}
} -
+
{icon &&
{icon()}
} {columnChsName} -- 2.21.0