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

This commit is contained in:
YJSON 2020-07-15 17:46:19 +08:00
parent 6dc9ff8426
commit a5f0d5ee02

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