@blocklet/pages-kit-core 0.5.41 → 0.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import cloneDeep from 'lodash/cloneDeep';
|
|
2
|
+
import isNil from 'lodash/isNil';
|
|
2
3
|
export const DEFAULT_CHILDREN_PROPERTIES = ['children'];
|
|
3
4
|
export const PAGES_KIT_CHILDREN_PROPERTIES = [
|
|
4
5
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -370,6 +371,10 @@ export class TemplateModel {
|
|
|
370
371
|
}
|
|
371
372
|
// 解析所有子节点
|
|
372
373
|
for (let i = 0; i < childrenModels.length; i++) {
|
|
374
|
+
if (isNil(childrenModels[i])) {
|
|
375
|
+
// eslint-disable-next-line no-continue
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
373
378
|
const childNode = this.parse(childrenModels[i], {
|
|
374
379
|
isClone: false,
|
|
375
380
|
});
|