UNPKG

1.01 kBTypeScriptView Raw
1import type { ComponentPublicInstance, Ref } from 'vue';
2import type { DropdownMenuProps } from './DropdownMenu';
3export type DropdownMenuDirection = 'up' | 'down';
4export type DropdownMenuProvide = {
5 id: string;
6 props: DropdownMenuProps;
7 offset: Ref<number>;
8 updateOffset: () => void;
9};
10export type DropdownMenuExpose = {
11 close: () => void;
12};
13export type DropdownMenuInstance = ComponentPublicInstance<DropdownMenuProps, DropdownMenuExpose>;
14export type DropdownMenuThemeVars = {
15 dropdownMenuHeight?: string;
16 dropdownMenuBackground?: string;
17 dropdownMenuShadow?: string;
18 dropdownMenuTitleFontSize?: string;
19 dropdownMenuTitleTextColor?: string;
20 dropdownMenuTitleActiveTextColor?: string;
21 dropdownMenuTitleDisabledTextColor?: string;
22 dropdownMenuTitlePadding?: string;
23 dropdownMenuTitleLineHeight?: number | string;
24 dropdownMenuOptionActiveColor?: string;
25 dropdownMenuOptionDisabledColor?: string;
26 dropdownMenuContentMaxHeight?: string;
27};