mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 09:56:20 +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') {
|
if (nameOrItem && typeof nameOrItem === 'string') {
|
||||||
item = this.get(nameOrItem);
|
item = this.get(nameOrItem);
|
||||||
}
|
}
|
||||||
if (!isActiveable(nameOrItem)) {
|
if (!isActiveable(item)) {
|
||||||
item = null;
|
item = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ export default class WidgetContainer<T extends WidgetItem = any, G extends Widge
|
|||||||
if (nameOrItem && typeof nameOrItem === 'string') {
|
if (nameOrItem && typeof nameOrItem === 'string') {
|
||||||
item = this.get(nameOrItem);
|
item = this.get(nameOrItem);
|
||||||
}
|
}
|
||||||
if (!isActiveable(nameOrItem)) {
|
if (!isActiveable(item)) {
|
||||||
item = null;
|
item = null;
|
||||||
}
|
}
|
||||||
if (this._current === item) {
|
if (this._current === item) {
|
||||||
|
|||||||
@ -98,6 +98,7 @@ function upgradeConfig(config: OldPaneConfig): IWidgetBaseConfig & { area: strin
|
|||||||
newConfig.content = contents.map(({ title, content, tip }) => {
|
newConfig.content = contents.map(({ title, content, tip }) => {
|
||||||
return {
|
return {
|
||||||
type: "Panel",
|
type: "Panel",
|
||||||
|
name: title,
|
||||||
content,
|
content,
|
||||||
props: {
|
props: {
|
||||||
title,
|
title,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user