mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix(amis): 修正chart的height设置
This commit is contained in:
parent
14afe96bb8
commit
eb0efdd808
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user