Skip to content

Commit

Permalink
chore(table): 回退内嵌内容布局
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Sep 8, 2022
1 parent e3c0d06 commit 00f0eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions packages/ui/table/src/TableEmbedRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export const TableEmbedRow = ({
<td colSpan={colSpan}>
{/* 乐观渲染:内嵌面板内容 */}
<Loading size="sm" visible={loading} part>
<div
className={`${prefixCls}__wrapper`}
style={{ width: scrollBodyElementRef.current?.clientWidth }}
>
{getEmbedPanelById(rowData.id)}
</div>
{getEmbedPanelById(rowData.id)}
</Loading>
</td>
</tr>
Expand Down
12 changes: 2 additions & 10 deletions packages/ui/table/src/styles/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 00f0eb8

Please sign in to comment.