@jiangood/open-admin 3.1.4 → 3.1.5
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/package.json
CHANGED
|
@@ -57,6 +57,9 @@ export default class AdminLayout extends React.Component {
|
|
|
57
57
|
const pathname = PageUtils.currentPathname();
|
|
58
58
|
|
|
59
59
|
TreeUtils.walk(menuTree, (item) => {
|
|
60
|
+
if (item.type === 'divider') {
|
|
61
|
+
return
|
|
62
|
+
}
|
|
60
63
|
item.icon = <NamedIcon name={item.icon || 'AppstoreOutlined'} style={{fontSize: 12}}/>
|
|
61
64
|
})
|
|
62
65
|
|
|
@@ -101,6 +104,9 @@ export default class AdminLayout extends React.Component {
|
|
|
101
104
|
const leafRootNodes = [];
|
|
102
105
|
|
|
103
106
|
(menuTree || []).forEach(node => {
|
|
107
|
+
if (node.type === 'divider') {
|
|
108
|
+
return
|
|
109
|
+
}
|
|
104
110
|
const isDir = node.type === 'directory' || (node.children && node.children.length > 0);
|
|
105
111
|
if (isDir) {
|
|
106
112
|
topMenus.push(node);
|