style(outline-pane): fix outline-pane styles

This commit is contained in:
liujuping 2023-09-05 15:41:14 +08:00 committed by 林熠
parent 4677d99127
commit 70df59a2ce
3 changed files with 13 additions and 2 deletions

View File

@ -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>
);
}

View File

@ -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;

View File

@ -92,6 +92,7 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
paneName: BackupPaneName,
treeMaster,
},
index: 1,
});
// 处理 master pane 和 backup pane 切换