mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-03 16:07:24 +00:00
bug fix
This commit is contained in:
parent
8119c4c1bc
commit
3762a0d85c
@ -39,7 +39,7 @@ export default class WidgetContainer<T extends WidgetItem = any, G extends Widge
|
||||
if (nameOrItem && typeof nameOrItem === 'string') {
|
||||
item = this.get(nameOrItem);
|
||||
}
|
||||
if (!isActiveable(nameOrItem)) {
|
||||
if (!isActiveable(item)) {
|
||||
item = null;
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ export default class WidgetContainer<T extends WidgetItem = any, G extends Widge
|
||||
if (nameOrItem && typeof nameOrItem === 'string') {
|
||||
item = this.get(nameOrItem);
|
||||
}
|
||||
if (!isActiveable(nameOrItem)) {
|
||||
if (!isActiveable(item)) {
|
||||
item = null;
|
||||
}
|
||||
if (this._current === item) {
|
||||
|
||||
@ -98,6 +98,7 @@ function upgradeConfig(config: OldPaneConfig): IWidgetBaseConfig & { area: strin
|
||||
newConfig.content = contents.map(({ title, content, tip }) => {
|
||||
return {
|
||||
type: "Panel",
|
||||
name: title,
|
||||
content,
|
||||
props: {
|
||||
title,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user