fix left area bottom

This commit is contained in:
kangwei 2020-05-08 11:25:36 +08:00
parent fbdbafef16
commit 3b0a884486
2 changed files with 4 additions and 1 deletions

View File

@ -68,6 +68,7 @@ export default class PanelDock implements IWidget {
this.name = name;
this.id = uniqueId(`dock:${name}$`);
this.panelName = config.panelName || name;
this.align = props?.align;
if (content) {
const _panelProps: any = { ...panelProps };
if (_panelProps.title == null && props) {

View File

@ -73,7 +73,9 @@ function upgradeConfig(config: OldPaneConfig): IWidgetBaseConfig & { area: strin
if (menu) {
newConfig.props.title = menu;
}
if (!isAction) {
if (isAction) {
newConfig.type = 'Dock';
} else {
newConfig.panelProps = {
title,
hideTitleBar,