@fesjs/fes-design
Version:
fes-design for PC
196 lines (195 loc) • 7.06 kB
TypeScript
import type { MenuOption } from './interface';
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
readonly modelValue: {
readonly type: import("vue").PropType<string | number>;
};
readonly mode: {
readonly type: import("vue").PropType<import("./const").MODE>;
readonly default: "horizontal";
readonly validator: (value: import("./const").MODE) => boolean;
};
readonly collapsed: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly inverted: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly defaultExpandAll: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly expandedKeys: {
readonly type: import("vue").PropType<(string | number)[]>;
readonly default: () => (string | number)[];
};
readonly accordion: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly options: {
readonly type: import("vue").PropType<MenuOption[]>;
readonly default: () => MenuOption[];
};
readonly disabled: {
readonly type: import("vue").PropType<boolean | (() => boolean)>;
readonly default: false;
};
readonly trigger: {
readonly type: import("vue").PropType<"click" | "hover" | "contextmenu" | "focus">;
readonly default: "hover";
};
readonly arrow: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly getContainer: {
readonly type: FunctionConstructor;
};
readonly appendToContainer: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly popperClass: import("vue").PropType<string | object | []>;
readonly placement: {
readonly type: import("vue").PropType<"left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
readonly default: "bottom";
};
readonly offset: {
readonly type: NumberConstructor;
readonly default: 6;
};
readonly popperStyle: {
readonly type: import("vue").PropType<import("vue").StyleValue>;
readonly default: () => {};
};
readonly showAfter: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly hideAfter: {
readonly type: NumberConstructor;
readonly default: 200;
};
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly onlyShowTrigger: {
readonly type: BooleanConstructor;
};
readonly passive: {
readonly type: BooleanConstructor;
readonly default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:expandedKeys" | "select" | "update:modelValue")[], "update:expandedKeys" | "select" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
readonly modelValue: {
readonly type: import("vue").PropType<string | number>;
};
readonly mode: {
readonly type: import("vue").PropType<import("./const").MODE>;
readonly default: "horizontal";
readonly validator: (value: import("./const").MODE) => boolean;
};
readonly collapsed: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly inverted: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly defaultExpandAll: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly expandedKeys: {
readonly type: import("vue").PropType<(string | number)[]>;
readonly default: () => (string | number)[];
};
readonly accordion: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly options: {
readonly type: import("vue").PropType<MenuOption[]>;
readonly default: () => MenuOption[];
};
readonly disabled: {
readonly type: import("vue").PropType<boolean | (() => boolean)>;
readonly default: false;
};
readonly trigger: {
readonly type: import("vue").PropType<"click" | "hover" | "contextmenu" | "focus">;
readonly default: "hover";
};
readonly arrow: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly getContainer: {
readonly type: FunctionConstructor;
};
readonly appendToContainer: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly popperClass: import("vue").PropType<string | object | []>;
readonly placement: {
readonly type: import("vue").PropType<"left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
readonly default: "bottom";
};
readonly offset: {
readonly type: NumberConstructor;
readonly default: 6;
};
readonly popperStyle: {
readonly type: import("vue").PropType<import("vue").StyleValue>;
readonly default: () => {};
};
readonly showAfter: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly hideAfter: {
readonly type: NumberConstructor;
readonly default: 200;
};
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly onlyShowTrigger: {
readonly type: BooleanConstructor;
};
readonly passive: {
readonly type: BooleanConstructor;
readonly default: true;
};
}>> & Readonly<{
onSelect?: (...args: any[]) => any;
"onUpdate:expandedKeys"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, {
readonly disabled: boolean | (() => boolean);
readonly trigger: "click" | "hover" | "contextmenu" | "focus";
readonly mode: import("./const").MODE;
readonly expandedKeys: (string | number)[];
readonly options: MenuOption[];
readonly arrow: boolean;
readonly accordion: boolean;
readonly appendToContainer: boolean;
readonly placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
readonly offset: number;
readonly popperStyle: import("vue").StyleValue;
readonly showAfter: number;
readonly hideAfter: number;
readonly lazy: boolean;
readonly onlyShowTrigger: boolean;
readonly passive: boolean;
readonly inverted: boolean;
readonly collapsed: boolean;
readonly defaultExpandAll: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;