diff --git a/src/component/collapseItem/index.vue b/src/component/collapseItem/index.vue index 93956cb1..511d4e5b 100644 --- a/src/component/collapseItem/index.vue +++ b/src/component/collapseItem/index.vue @@ -19,7 +19,9 @@ const props = withDefaults(defineProps(), { disabled: false, }); -const { accordion, activeValues, emit, collapseTransition } = inject("layCollapse") as any; +const { accordion, activeValues, emit, collapseTransition } = inject( + "layCollapse" +) as any; let isShow = computed(() => { return activeValues.value.includes(props.id); diff --git a/src/component/menu/index.vue b/src/component/menu/index.vue index d6fbc079..2182809b 100644 --- a/src/component/menu/index.vue +++ b/src/component/menu/index.vue @@ -29,7 +29,7 @@ const props = withDefaults(defineProps(), { inverted: false, level: false, collapse: false, - collapseTransition: true + collapseTransition: true, }); let oldOpenKeys = ref([]); diff --git a/src/component/subMenu/index.vue b/src/component/subMenu/index.vue index 97206608..f4ec6bc2 100644 --- a/src/component/subMenu/index.vue +++ b/src/component/subMenu/index.vue @@ -86,9 +86,7 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));