From afda4aa077b6743287de758c741fce5c585ef2f7 Mon Sep 17 00:00:00 2001
From: sight <1453017105@qq.com>
Date: Fri, 1 Jul 2022 18:03:42 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20[popup-menu]?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=82=AC=E6=B5=AE=E8=8F=9C=E5=8D=95=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/component/menuItem/index.vue | 2 +-
.../src/component/subMenu/SubMenuPopup.vue | 131 +++++++-------
.../component/src/component/subMenu/index.vue | 12 +-
.../src/document/zh-CN/components/menu.md | 162 ++++++++++++++++++
4 files changed, 229 insertions(+), 78 deletions(-)
diff --git a/package/component/src/component/menuItem/index.vue b/package/component/src/component/menuItem/index.vue
index cf14a0f5..8755a193 100644
--- a/package/component/src/component/menuItem/index.vue
+++ b/package/component/src/component/menuItem/index.vue
@@ -54,7 +54,7 @@ const needTooltip = computed(
-
+
diff --git a/package/component/src/component/subMenu/SubMenuPopup.vue b/package/component/src/component/subMenu/SubMenuPopup.vue
index 30847b4c..71bb4cac 100644
--- a/package/component/src/component/subMenu/SubMenuPopup.vue
+++ b/package/component/src/component/subMenu/SubMenuPopup.vue
@@ -12,8 +12,6 @@ export interface LaySubMenuPopupProps {
id: string;
title?: string;
}
-
-const slots = useSlots();
const props = defineProps();
const openKeys: Ref = inject("openKeys") as Ref;
@@ -25,87 +23,78 @@ const isOpen = computed(() => {
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
+
+
+
diff --git a/package/component/src/component/subMenu/index.vue b/package/component/src/component/subMenu/index.vue
index bf27ef51..9a67649d 100644
--- a/package/component/src/component/subMenu/index.vue
+++ b/package/component/src/component/subMenu/index.vue
@@ -104,8 +104,8 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));
-
-
+
@@ -146,11 +146,11 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));
-
-
+
+
-
-
+
+
diff --git a/package/document-component/src/document/zh-CN/components/menu.md b/package/document-component/src/document/zh-CN/components/menu.md
index 8610cec8..4a92bd0e 100644
--- a/package/document-component/src/document/zh-CN/components/menu.md
+++ b/package/document-component/src/document/zh-CN/components/menu.md
@@ -423,6 +423,168 @@ export default {
:::
+::: title 悬浮菜单
+:::
+
+::: demo
+
+
+
+
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+ 首页
+
+ 首页
+
+
+ 菜单一
+
+
+ 首页
+
+ 首页
+
+
+ 首页
+
+
+ 首页
+
+ 首页
+
+
+ 首页
+
+
+ 首页
+
+
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+ 首页
+
+
+
+
+
+
+
+
+
+
+:::
+
::: title 过渡动画
:::