From 00f0eb8c0ec6ade6b7eb717dd9e763c6143b8370 Mon Sep 17 00:00:00 2001 From: zhouyun1 Date: Thu, 8 Sep 2022 19:33:25 +0800 Subject: [PATCH] =?UTF-8?q?chore(table):=20=E5=9B=9E=E9=80=80=E5=86=85?= =?UTF-8?q?=E5=B5=8C=E5=86=85=E5=AE=B9=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/table/src/TableEmbedRow.tsx | 7 +------ packages/ui/table/src/styles/table.scss | 12 ++---------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/packages/ui/table/src/TableEmbedRow.tsx b/packages/ui/table/src/TableEmbedRow.tsx index a819be25d..3e0601644 100644 --- a/packages/ui/table/src/TableEmbedRow.tsx +++ b/packages/ui/table/src/TableEmbedRow.tsx @@ -39,12 +39,7 @@ export const TableEmbedRow = ({ {/* 乐观渲染:内嵌面板内容 */} -
- {getEmbedPanelById(rowData.id)} -
+ {getEmbedPanelById(rowData.id)}
diff --git a/packages/ui/table/src/styles/table.scss b/packages/ui/table/src/styles/table.scss index f5c8d9e52..6acaa5352 100644 --- a/packages/ui/table/src/styles/table.scss +++ b/packages/ui/table/src/styles/table.scss @@ -421,17 +421,9 @@ $prefix: '#{$component-prefix}-table' !default; position: relative; z-index: 0; - &__wrapper { - box-sizing: border-box; - position: sticky; - left: 0; - padding: use-spacing(10); - overflow: hidden; - background-color: use-color('gray', 200); - } - & > td { - padding: 0; + background-color: use-color('gray', 200); + padding: use-spacing(10); } }