hongluan-business-ui
Version:
Hongluan Business Component Library for Vue 3
32 lines (31 loc) • 1.1 kB
TypeScript
import type { Ref } from 'vue';
import type { DockContainerProps } from './dock-container';
export declare const CLOSE_EVENT = "close";
export declare const OPEN_EVENT = "open";
export declare const CLOSED_EVENT = "closed";
export declare const OPENED_EVENT = "opened";
export declare const ITEM_ADDED_EVENT = "item-added";
export declare const ITEM_CLOSED_EVENT = "item-closed";
export declare const ITEM_RESTORED_EVENT = "item-restored";
export declare const UPDATE_MODEL_EVENT = "update:modelValue";
export declare const useDockContainer: (props: DockContainerProps, scrollbarRef: Ref<{
update: () => void;
}>) => {
afterEnter: () => void;
afterLeave: () => void;
beforeLeave: () => void;
handleClose: () => void;
closed: Ref<boolean>;
visible: Ref<boolean>;
zIndex: Ref<number>;
animName: import("vue").ComputedRef<string>;
dockItems: Ref<{
id: string;
title: string;
snapshot: string | boolean | {
[x: string]: any;
};
}[]>;
closeDockItem: (id: string) => void;
restoreDockItem: (id: string) => void;
};