@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.
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TemplateModel = exports.Node = exports.PAGES_KIT_CHILDREN_PROPERTIES = exports.DEFAULT_CHILDREN_PROPERTIES = void 0;
|
|
7
7
|
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
|
|
8
|
+
const isNil_1 = __importDefault(require("lodash/isNil"));
|
|
8
9
|
exports.DEFAULT_CHILDREN_PROPERTIES = ['children'];
|
|
9
10
|
exports.PAGES_KIT_CHILDREN_PROPERTIES = [
|
|
10
11
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -377,6 +378,10 @@ class TemplateModel {
|
|
|
377
378
|
}
|
|
378
379
|
// 解析所有子节点
|
|
379
380
|
for (let i = 0; i < childrenModels.length; i++) {
|
|
381
|
+
if ((0, isNil_1.default)(childrenModels[i])) {
|
|
382
|
+
// eslint-disable-next-line no-continue
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
380
385
|
const childNode = this.parse(childrenModels[i], {
|
|
381
386
|
isClone: false,
|
|
382
387
|
});
|