diff --git a/package/component/src/component/menu/index.vue b/package/component/src/component/menu/index.vue
index bbeb4f22..13bbf029 100644
--- a/package/component/src/component/menu/index.vue
+++ b/package/component/src/component/menu/index.vue
@@ -6,7 +6,7 @@ export default {
-
+
diff --git a/package/component/src/component/subMenu/SubMenuPopup.vue b/package/component/src/component/subMenu/SubMenuPopup.vue
index 6147c858..30847b4c 100644
--- a/package/component/src/component/subMenu/SubMenuPopup.vue
+++ b/package/component/src/component/subMenu/SubMenuPopup.vue
@@ -4,12 +4,7 @@ export default {
};
-
-
+
+ :contentOffset="3"
+ >
@@ -63,13 +55,11 @@ const isOpen = computed(() => {
-
diff --git a/package/component/src/component/subMenu/index.vue b/package/component/src/component/subMenu/index.vue
index d8eb462d..bf27ef51 100644
--- a/package/component/src/component/subMenu/index.vue
+++ b/package/component/src/component/subMenu/index.vue
@@ -19,7 +19,6 @@ import LayTransition from "../transition/index.vue";
import SubMenuPopup from "./subMenuPopup.vue";
import { provideLevel, default as useLevel } from "../menu/useLevel";
-
export interface LaySubMenuProps {
id: string;
title?: string;
@@ -28,11 +27,13 @@ export interface LaySubMenuProps {
const slots = useSlots();
const props = defineProps();
-const { level } = useLevel()
+const { level } = useLevel();
const isTree: Ref = inject("isTree") as Ref;
const selectedKey: Ref = inject("selectedKey") as Ref;
const openKeys: Ref = inject("openKeys") as Ref;
-const isCollapse: Ref = inject("isCollapse") as Ref;
+const isCollapse: Ref = inject("isCollapse") as Ref<
+ boolean | string
+>;
const isCollapseTransition: Ref = inject(
"isCollapseTransition"
) as Ref;
@@ -43,13 +44,14 @@ const isOpen = computed(() => {
const subMenuRef = ref();
const position = ref();
-const nextLevel = computed(() =>
- level.value + 1
-);
+const nextLevel = computed(() => level.value + 1);
provideLevel(nextLevel);
-const computedPopup = computed(() => isTree.value && (isCollapse.value === true || isCollapse.value === "true"));
+const computedPopup = computed(
+ () =>
+ isTree.value && (isCollapse.value === true || isCollapse.value === "true")
+);
watch(isOpen, () => {
if (isOpen.value && position.value !== "left-nav") {
@@ -113,11 +115,14 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));
-
+
@@ -129,8 +134,11 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));
-
+
diff --git a/package/component/src/component/tooltip/index.vue b/package/component/src/component/tooltip/index.vue
index bbf7e367..405046df 100644
--- a/package/component/src/component/tooltip/index.vue
+++ b/package/component/src/component/tooltip/index.vue
@@ -4,7 +4,7 @@
-
+