Skip to content

Commit

Permalink
Merge pull request baidu#9513 from wibetter/master
Browse files Browse the repository at this point in the history
fix(amis): 表格组件/渲染列级元素前,剔除style中的定位相关样式,避免表格样式异常
  • Loading branch information
wibetter committed Jan 24, 2024
2 parents d705a2e + c77e7d6 commit 07aa055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amis/src/renderers/Table/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export class TableCell extends React.Component<TableCellProps> {

if (isTableCell) {
// table Cell 会用 colGroup 来设置宽度,这里不需要再设置
style.width && (style = omit(style, ['width']));
// 同时剔除style中的定位相关样式,避免表格样式异常
style = omit(style, ['width', 'position', 'display']);
} else if (width) {
style = {
...style,
Expand Down

0 comments on commit 07aa055

Please sign in to comment.