mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
import { 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');
|