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 +1 -1
- package/src/component/NavMenu/index.vue +19 -21
package/package.json
CHANGED
|
@@ -122,27 +122,25 @@ export default {
|
|
|
122
122
|
const noContent =
|
|
123
123
|
depth === 1 && this.collapse && this.mode === "vertical";
|
|
124
124
|
return (
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
// 渲染有子级且需要显示父级的菜单
|