mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
Merge commit '2beaa6c99eedb4922097dd7862bac4a4cb7b8b66' into def_releases_202111221049066_ali-lowcode_ali-lowcode-engine/1.0.73
This commit is contained in:
commit
6886876ee8
@ -379,10 +379,7 @@ export class Prop implements IPropParent {
|
|||||||
* 构造 items 属性,同时构造 maps 属性
|
* 构造 items 属性,同时构造 maps 属性
|
||||||
*/
|
*/
|
||||||
@computed private get items(): Prop[] | null {
|
@computed private get items(): Prop[] | null {
|
||||||
// 当类型为 list 时,只要有 _items,直接返回,不再重新构造
|
if (this._items) return this._items;
|
||||||
if (this._type === 'list' && this._items) return this._items;
|
|
||||||
// 当类型为 map 时,_items 和 _maps 理论上都应该存在,数量一致时,可以不再重新构造
|
|
||||||
if (this._type === 'map' && this._items && this._items.length === this._maps?.size) return this._items;
|
|
||||||
return runInAction(() => {
|
return runInAction(() => {
|
||||||
let items: Prop[] | null = [];
|
let items: Prop[] | null = [];
|
||||||
if (this._type === 'list') {
|
if (this._type === 'list') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user