Merge pull request #7809 from wibetter/master

fix(amis): 修正chart的height设置
This commit is contained in:
刘丹 2023-08-14 17:22:53 +08:00 committed by GitHub
commit 9808eaf9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 (