雪忆
2024-07-29 ecfe66a0199606241c73a52519bbe800c9aa31f8
src/components/SimpleMenu/src/components/useSimpleMenuContext.ts
@@ -1,12 +1,12 @@
import type { InjectionKey, Ref, ComponentInternalInstance } from 'vue';
import type { Emitter } from '@/utils/mitt';
import { createContext, useContext } from '@/hooks/core/useContext';
import type { Emitter } from '@/utils/mitt';
import type { ComponentInternalInstance, InjectionKey, Ref } from 'vue';
export type MenuEmitterEvents = {
  'on-update-opened':
    | (string | number)[]
    | {
        opend: boolean;
        opened: boolean;
        parent?: ComponentInternalInstance | null;
        uidList: number[];
      };