mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 02:12:56 +00:00
style(outline-pane): fix outline-pane styles
This commit is contained in:
parent
4677d99127
commit
70df59a2ce
@ -22,14 +22,23 @@ export default class RightArea extends Component<{ area: Area<any, Panel> }> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@observer
|
||||
class Contents extends Component<{ area: Area<any, Panel> }> {
|
||||
render() {
|
||||
const { area } = this.props;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
{area.container.items.map((item) => item.content)}
|
||||
{
|
||||
area.container.items
|
||||
.slice()
|
||||
.sort((a, b) => {
|
||||
const index1 = a.config?.index || 0;
|
||||
const index2 = b.config?.index || 0;
|
||||
return index1 === index2 ? 0 : (index1 > index2 ? 1 : -1);
|
||||
})
|
||||
.map((item) => item.content)
|
||||
}
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
@ -431,6 +431,7 @@ body {
|
||||
background-color: var(--color-right-area-background, var(--color-pane-background, #fff));
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
&.lc-area-visible {
|
||||
display: block;
|
||||
|
||||
@ -92,6 +92,7 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
|
||||
paneName: BackupPaneName,
|
||||
treeMaster,
|
||||
},
|
||||
index: 1,
|
||||
});
|
||||
|
||||
// 处理 master pane 和 backup pane 切换
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user