fix(amis): 修正chart的height设置

This commit is contained in:
wibetter 2023-08-14 16:12:06 +08:00
parent 14afe96bb8
commit eb0efdd808

View File

@ -597,7 +597,7 @@ export class Chart extends React.Component<ChartProps> {
} = this.props;
let style = this.props.style || {};
style.width = style.width || width || '100%';
style.height = style.width || height || '300px';
style.height = style.height || height || '300px';
const styleVar = buildStyle(style, data);
return (