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