-
- 首页
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/components/base/menu/MenuItem.vue b/src/components/base/menu/MenuItem.vue
index 44bba69d2..a6412cc11 100644
--- a/src/components/base/menu/MenuItem.vue
+++ b/src/components/base/menu/MenuItem.vue
@@ -11,6 +11,10 @@ const props = defineProps({
type: String,
default: "",
},
+ active: {
+ type: Boolean,
+ default: false,
+ },
});
const emit = defineEmits(["select"]);
@@ -26,7 +30,7 @@ if (openIds?.includes(props.id)) {
}
const hasSubmenus = computed(() => {
- return slots.default;
+ return slots.default && slots.default().length > 0;
});
function handleClick() {
@@ -40,11 +44,11 @@ function handleClick() {