mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-04 17:27:09 +00:00
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:
commit
a45f2d02e6
@ -19,11 +19,19 @@ export default class LeftFixedPane extends Component<{ area: Area<PanelConfig, P
|
|||||||
render() {
|
render() {
|
||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
const hideTitleBar = area.current?.config.props?.hideTitleBar;
|
const hideTitleBar = area.current?.config.props?.hideTitleBar;
|
||||||
|
const width = area.current?.config.props?.width;
|
||||||
|
const style = width
|
||||||
|
? {
|
||||||
|
width,
|
||||||
|
}
|
||||||
|
: undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames('lc-left-fixed-pane', {
|
className={classNames('lc-left-fixed-pane', {
|
||||||
'lc-area-visible': area.visible,
|
'lc-area-visible': area.visible,
|
||||||
})}
|
})}
|
||||||
|
style={style}
|
||||||
>
|
>
|
||||||
{!hideTitleBar && (
|
{!hideTitleBar && (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user