diff --git a/src/components/DataActions/index.vue b/src/components/DataActions/index.vue
index ab9585fc9..db11b3155 100644
--- a/src/components/DataActions/index.vue
+++ b/src/components/DataActions/index.vue
@@ -251,10 +251,8 @@ $color-drop-menu-border: #e4e7ed;
.el-button {
display: flex;
align-items: center;
- height: 20px !important;
- padding: 2px 6px;
+ padding: 3px 6px;
color: $btn-text-color;
- border-color: var(--color-primary);
}
::v-deep .action-item.el-dropdown .el-button {
diff --git a/src/layout/components/NavLeft/SidebarItem.vue b/src/layout/components/NavLeft/SidebarItem.vue
index 286444643..3d0089a2b 100644
--- a/src/layout/components/NavLeft/SidebarItem.vue
+++ b/src/layout/components/NavLeft/SidebarItem.vue
@@ -13,7 +13,7 @@
>
@@ -73,11 +73,13 @@ export default {
// To fix https://github.com/PanJiaChen/vue-admin-template/issues/237
// TODO: refactor with render function
this.onlyOneChild = null
- return {}
+ return {
+ }
},
methods: {
needHidden(item) {
let hidden = item.hidden
+
if (typeof item.hidden === 'function') {
hidden = item.hidden()
}
@@ -121,7 +123,7 @@ export default {
// Show parent if there are no child router to display
if (showingChildren.length === 0) {
- this.onlyOneChild = { ... parent, path: '', noShowingChildren: true }
+ this.onlyOneChild = { ...parent, path: '', noShowingChildren: true }
return true
}
@@ -139,15 +141,3 @@ export default {
}
}
-
-
diff --git a/src/layout/components/NavLeft/index.vue b/src/layout/components/NavLeft/index.vue
index 48a58651c..83628d037 100644
--- a/src/layout/components/NavLeft/index.vue
+++ b/src/layout/components/NavLeft/index.vue
@@ -1,5 +1,5 @@
-