mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
Merge "fix: 表单编辑器变量引用" into feat-optimize-4
This commit is contained in:
commit
e3a9df6fe0
@ -1665,8 +1665,10 @@ export class EditorManager {
|
||||
let from = node;
|
||||
let region = node;
|
||||
while (!scope && from) {
|
||||
scope = this.dataSchema.hasScope(`${from.id}-${from.type}`)
|
||||
? this.dataSchema.getScope(`${from.id}-${from.type}`)
|
||||
const nodeId = from.info?.id;
|
||||
const type = from.info?.type;
|
||||
scope = this.dataSchema.hasScope(`${nodeId}-${type}`)
|
||||
? this.dataSchema.getScope(`${nodeId}-${type}`)
|
||||
: undefined;
|
||||
from = from.parent;
|
||||
if (from?.isRegion) {
|
||||
|
Loading…
Reference in New Issue
Block a user