@opensig/opendesign
Version:
272 lines (271 loc) • 9.85 kB
TypeScript
import { App } from 'vue';
import { default as ODropdownItem } from './ODropdownItem.vue';
declare const ODropdown: {
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
visible: {
type: BooleanConstructor;
};
defaultVisible: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: import('vue').PropType<import('..').SizeT>;
default: string;
};
round: {
type: import('vue').PropType<import('..').RoundT>;
};
trigger: {
type: import('vue').PropType<import('..').PopupTriggerT>;
default: string;
};
optionPosition: {
type: import('vue').PropType<import('..').PopupPositionT>;
default: string;
};
optionWidthMode: {
type: import('vue').PropType<"auto" | "min-width" | "width">;
default: string;
};
optionsWrapper: {
type: import('vue').PropType<string | HTMLElement | null>;
default: string;
};
optionWrapClass: {
type: import('vue').PropType<string | {
[k: string]: boolean;
} | Array<{
[k: string]: boolean;
} | string>>;
};
unmountOnHide: {
type: BooleanConstructor;
default: boolean;
};
transition: {
type: StringConstructor;
};
}>> & Readonly<{
"onUpdate:visible"?: ((val: boolean) => any) | undefined;
"onVisible-change"?: ((val: boolean) => any) | undefined;
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"update:visible": (val: boolean) => any;
"visible-change": (val: boolean) => any;
}, import('vue').PublicProps, {
size: "large" | "medium" | "small";
visible: boolean;
trigger: "none" | "click" | "contextmenu" | "focus" | "click-outclick" | "hover" | "hover-outclick";
unmountOnHide: boolean;
optionPosition: "left" | "right" | "top" | "bottom" | "br" | "rt" | "tr" | "rb" | "tl" | "bl" | "lt" | "lb";
optionWidthMode: "width" | "auto" | "min-width";
optionsWrapper: string | HTMLElement | null;
defaultVisible: boolean;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
dropdownRef: HTMLDivElement;
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
visible: {
type: BooleanConstructor;
};
defaultVisible: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: import('vue').PropType<import('..').SizeT>;
default: string;
};
round: {
type: import('vue').PropType<import('..').RoundT>;
};
trigger: {
type: import('vue').PropType<import('..').PopupTriggerT>;
default: string;
};
optionPosition: {
type: import('vue').PropType<import('..').PopupPositionT>;
default: string;
};
optionWidthMode: {
type: import('vue').PropType<"auto" | "min-width" | "width">;
default: string;
};
optionsWrapper: {
type: import('vue').PropType<string | HTMLElement | null>;
default: string;
};
optionWrapClass: {
type: import('vue').PropType<string | {
[k: string]: boolean;
} | Array<{
[k: string]: boolean;
} | string>>;
};
unmountOnHide: {
type: BooleanConstructor;
default: boolean;
};
transition: {
type: StringConstructor;
};
}>> & Readonly<{
"onUpdate:visible"?: ((val: boolean) => any) | undefined;
"onVisible-change"?: ((val: boolean) => any) | undefined;
}>, {}, {}, {}, {}, {
size: "large" | "medium" | "small";
visible: boolean;
trigger: "none" | "click" | "contextmenu" | "focus" | "click-outclick" | "hover" | "hover-outclick";
unmountOnHide: boolean;
optionPosition: "left" | "right" | "top" | "bottom" | "br" | "rt" | "tr" | "rb" | "tl" | "bl" | "lt" | "lb";
optionWidthMode: "width" | "auto" | "min-width";
optionsWrapper: string | HTMLElement | null;
defaultVisible: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
visible: {
type: BooleanConstructor;
};
defaultVisible: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: import('vue').PropType<import('..').SizeT>;
default: string;
};
round: {
type: import('vue').PropType<import('..').RoundT>;
};
trigger: {
type: import('vue').PropType<import('..').PopupTriggerT>;
default: string;
};
optionPosition: {
type: import('vue').PropType<import('..').PopupPositionT>;
default: string;
};
optionWidthMode: {
type: import('vue').PropType<"auto" | "min-width" | "width">;
default: string;
};
optionsWrapper: {
type: import('vue').PropType<string | HTMLElement | null>;
default: string;
};
optionWrapClass: {
type: import('vue').PropType<string | {
[k: string]: boolean;
} | Array<{
[k: string]: boolean;
} | string>>;
};
unmountOnHide: {
type: BooleanConstructor;
default: boolean;
};
transition: {
type: StringConstructor;
};
}>> & Readonly<{
"onUpdate:visible"?: ((val: boolean) => any) | undefined;
"onVisible-change"?: ((val: boolean) => any) | undefined;
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"update:visible": (val: boolean) => any;
"visible-change": (val: boolean) => any;
}, string, {
size: "large" | "medium" | "small";
visible: boolean;
trigger: "none" | "click" | "contextmenu" | "focus" | "click-outclick" | "hover" | "hover-outclick";
unmountOnHide: boolean;
optionPosition: "left" | "right" | "top" | "bottom" | "br" | "rt" | "tr" | "rb" | "tl" | "bl" | "lt" | "lb";
optionWidthMode: "width" | "auto" | "min-width";
optionsWrapper: string | HTMLElement | null;
defaultVisible: boolean;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: {
default?(_: {}): any;
dropdown?(_: {}): any;
};
}) & {
ODropdownItem: {
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
label: {
type: StringConstructor;
default: string;
};
value: {
type: import('vue').PropType<string | number>;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
label: string;
value: string | number;
disabled: boolean;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLLIElement, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
label: {
type: StringConstructor;
default: string;
};
value: {
type: import('vue').PropType<string | number>;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{}>, {}, {}, {}, {}, {
label: string;
value: string | number;
disabled: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
label: {
type: StringConstructor;
default: string;
};
value: {
type: import('vue').PropType<string | number>;
default: string;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
label: string;
value: string | number;
disabled: boolean;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: {
default?(_: {}): any;
};
});
install(app: App): void;
};
export { ODropdown, ODropdownItem };
export * from './types';