mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
Merge branch 'node-children-compatibility' into 'release/0.9.0'
fix: NodeChildren伪装为Array保证向前兼容
保证VU调用 ({}).toString.call(children) === '[object Array]'
See merge request !867878
This commit is contained in:
commit
88bbc65d06
@ -285,4 +285,9 @@ export class NodeChildren {
|
||||
this.purged = true;
|
||||
this.children.forEach(child => child.purge());
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag]() {
|
||||
// 保证向前兼容性
|
||||
return "Array";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user