@next-core/brick-kit 2.178.11 → 2.178.13
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.
package/dist/index.bundle.js
CHANGED
|
@@ -3103,7 +3103,7 @@
|
|
|
3103
3103
|
injectWithMenus.delete(item.groupId);
|
|
3104
3104
|
}
|
|
3105
3105
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, item), {}, {
|
|
3106
|
-
children: ((_processGroupInject = processGroupInject(item.children, menu, injectWithMenus, menuWithI18n)) !== null && _processGroupInject !== void 0 ? _processGroupInject : []).concat(foundInjectingMenus ? foundInjectingMenus.flatMap(injectingMenu => processGroupInject(injectingMenu.items, injectingMenu, injectWithMenus, menuWithI18n)) : []),
|
|
3106
|
+
children: ((_processGroupInject = processGroupInject(item.children || item.items, menu, injectWithMenus, menuWithI18n)) !== null && _processGroupInject !== void 0 ? _processGroupInject : []).concat(foundInjectingMenus ? foundInjectingMenus.flatMap(injectingMenu => processGroupInject(injectingMenu.items, injectingMenu, injectWithMenus, menuWithI18n)) : []),
|
|
3107
3107
|
[symbolAppId]: menu.app[0].appId,
|
|
3108
3108
|
[symbolMenuI18nNamespace]: menuWithI18n.get(menu),
|
|
3109
3109
|
[symbolOverrideApp]: menu.overrideApp
|
|
@@ -3156,16 +3156,18 @@
|
|
|
3156
3156
|
return menuItems === null || menuItems === void 0 ? void 0 : menuItems.filter(
|
|
3157
3157
|
// `if` is already evaluated.
|
|
3158
3158
|
looseCheckIfOfComputed).map(item => {
|
|
3159
|
-
var children = walkMenuItems(item.children);
|
|
3159
|
+
var children = walkMenuItems(item.children || item.items);
|
|
3160
3160
|
return item.type === "group" ? {
|
|
3161
3161
|
type: "group",
|
|
3162
3162
|
childLayout: item.childLayout,
|
|
3163
|
-
title: item.text,
|
|
3164
|
-
items: children
|
|
3163
|
+
title: item.text || item.title,
|
|
3164
|
+
items: children,
|
|
3165
|
+
groupId: item.groupId,
|
|
3166
|
+
groupFrom: item.groupFrom
|
|
3165
3167
|
} : children !== null && children !== void 0 && children.length ? {
|
|
3166
3168
|
type: "subMenu",
|
|
3167
3169
|
childLayout: item.childLayout,
|
|
3168
|
-
title: item.text,
|
|
3170
|
+
title: item.text || item.title,
|
|
3169
3171
|
icon: item.icon,
|
|
3170
3172
|
items: children,
|
|
3171
3173
|
defaultExpanded: item.defaultExpanded
|