Merge branch 'fix/left-fixed-pane-width' into 'release/0.9.0'

fix: left-fixed-pane 设置宽度不生效



See merge request !894576
This commit is contained in:
康为 2020-07-15 20:31:20 +08:00
commit a45f2d02e6

View File

@ -19,11 +19,19 @@ export default class LeftFixedPane extends Component<{ area: Area<PanelConfig, P
render() {
const { area } = this.props;
const hideTitleBar = area.current?.config.props?.hideTitleBar;
const width = area.current?.config.props?.width;
const style = width
? {
width,
}
: undefined;
return (
<div
className={classNames('lc-left-fixed-pane', {
'lc-area-visible': area.visible,
})}
style={style}
>
{!hideTitleBar && (
<Button