ant-design-vue/components/layout/injectionKey.ts
2021-06-26 09:35:40 +08:00

13 lines
392 B
TypeScript

import type { Ref, InjectionKey } from 'vue';
export type SiderCollapsed = Ref<boolean>;
export const SiderCollapsedKey: InjectionKey<SiderCollapsed> = Symbol('siderCollapsed');
export interface SiderHookProvider {
addSider?: (id: string) => void;
removeSider?: (id: string) => void;
}
export const SiderHookProviderKey: InjectionKey<SiderHookProvider> = Symbol('siderHookProvider');