qdt-admin-layout 1.0.3 → 1.0.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdt-admin-layout",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "基于element-ui的后台管理layout的管家婆改版",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -122,27 +122,25 @@ export default {
122
122
  const noContent =
123
123
  depth === 1 && this.collapse && this.mode === "vertical";
124
124
  return (
125
- <div key="index">
126
- <SubMenu
127
- key={fullPath}
128
- index={fullPath}
129
- inline-indent={this.inlineIndent}
130
- popper-class={this.themeClass}
131
- popper-append-to-body
132
- >
133
- <template slot="title">
134
- {depth == 1 && (
135
- <div style="padding: 10% 0;">
136
- {this.renderMenuIcon(h, menu, depth)}
137
- <div>{menu.meta.title}</div>
138
- </div>
139
- )}
140
-
141
- {!noContent && this.renderMenuContent(h, menu, depth)}
142
- </template>
143
- {children}
144
- </SubMenu>
145
- </div>
125
+ <SubMenu
126
+ key={fullPath}
127
+ index={fullPath}
128
+ inline-indent={this.inlineIndent}
129
+ popper-class={this.themeClass}
130
+ popper-append-to-body
131
+ >
132
+ <template slot="title">
133
+ {depth == 1 && (
134
+ <div style="padding: 10% 0;">
135
+ {this.renderMenuIcon(h, menu, depth)}
136
+ <div>{menu.meta.title}</div>
137
+ </div>
138
+ )}
139
+
140
+ {!noContent && this.renderMenuContent(h, menu, depth)}
141
+ </template>
142
+ {children}
143
+ </SubMenu>
146
144
  );
147
145
  },
148
146
  // 渲染有子级且需要显示父级的菜单