tdesign-vue
Version:
48 lines (47 loc) • 1.68 kB
TypeScript
import { TdDropdownProps } from './type';
import { PropType } from 'vue';
declare const _default: {
direction: {
type: PropType<"left" | "right">;
default: "left" | "right";
validator(val: TdDropdownProps['direction']): boolean;
};
disabled: BooleanConstructor;
hideAfterItemClick: {
type: BooleanConstructor;
default: boolean;
};
maxColumnWidth: {
type: PropType<string | number>;
default: number;
};
maxHeight: {
type: NumberConstructor;
default: number;
};
minColumnWidth: {
type: PropType<string | number>;
default: number;
};
options: {
type: PropType<import("./type").DropdownOption[]>;
default: () => TdDropdownProps['options'];
};
placement: {
type: PropType<"left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
default: "left" | "top" | "bottom" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
validator(val: TdDropdownProps['placement']): boolean;
};
popupProps: {
type: PropType<import("..").TdPopupProps>;
};
trigger: {
type: PropType<"click" | "focus" | "hover" | "context-menu">;
default: "click" | "focus" | "hover" | "context-menu";
validator(val: TdDropdownProps['trigger']): boolean;
};
onClick: PropType<(dropdownItem: import("./type").DropdownOption, context: {
e: MouseEvent;
}) => void>;
};
export default _default;