vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
53 lines (52 loc) • 2.2 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
export declare const dropdownProps: {
inherit: PropType<boolean>;
visible: PropType<boolean>;
placement: PropType<"bottom" | "top" | "right" | "left" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "right-end" | "left-start" | "left-end">;
outsideClose: PropType<boolean>;
trigger: PropType<"click" | "hover" | "custom">;
label: PropType<string | number>;
transitionName: PropType<string>;
transfer: PropType<string | boolean>;
dropClass: PropType<string | Record<string, any> | (string | Record<string, any>)[]>;
appear: PropType<boolean>;
meta: PropType<Record<string, any>>;
alive: PropType<boolean>;
custom: PropType<boolean>;
shift: PropType<boolean>;
onToggle: PropType<((visible: boolean) => void) | ((visible: boolean) => void)[]>;
onSelect: PropType<((labels: (string | number)[], metas: Array<Record<string, any>>) => void) | ((labels: (string | number)[], metas: Array<Record<string, any>>) => void)[]>;
onClickOutside: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onOutsideClose: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
};
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
export type DropdownCProps = ConfigurableProps<DropdownProps>;
export declare const dropdownItemProps: {
label: {
type: (NumberConstructor | StringConstructor)[];
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
selected: {
type: BooleanConstructor;
default: boolean;
};
divided: {
type: BooleanConstructor;
default: boolean;
};
reference: {
type: BooleanConstructor;
default: boolean;
};
meta: {
type: ObjectConstructor;
default: () => {};
};
onSelect: PropType<((label: string | number) => void) | ((label: string | number) => void)[]>;
};
export type DropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;