Skip to content

Commit

Permalink
fix: 修复轮播图有 style 且设置了 width\height 时会导致 js 报错渲染失败
Browse files Browse the repository at this point in the history
  • Loading branch information
jinye committed Jan 24, 2025
1 parent 2ac3e9e commit 682c044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ export class Carousel extends React.Component<CarouselProps, CarouselState> {
let body: JSX.Element | null = null;
let carouselStyles: {
[propName: string]: string;
} = style || {};
} = style ? {...style} : {};

// 不允许传0,需要有最小高度
if (width) {
Expand Down

0 comments on commit 682c044

Please sign in to comment.