@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
198 lines (197 loc) • 5.8 kB
TypeScript
import type { PropType, CSSProperties, ExtractPropTypes, StyleValue } from 'vue';
import type { Arrayable, ComponentSize, JSXElement } from '../../_utils/types';
export declare const _props: {
visible: {
type: BooleanConstructor;
default: boolean;
};
title: {
type: PropType<string | JSXElement>;
};
placement: {
type: PropType<"top" | "bottom" | "left" | "right">;
default: string;
};
size: {
type: PropType<ComponentSize>;
validator: (val: string) => boolean;
};
width: {
type: PropType<string | number>;
default: string;
validator: (val: string | number) => boolean;
};
height: {
type: PropType<string | number>;
default: string;
validator: (val: string | number) => boolean;
};
level: {
type: NumberConstructor;
default: number;
};
loading: {
type: BooleanConstructor;
};
showClose: {
type: BooleanConstructor;
default: boolean;
};
showHeader: {
type: BooleanConstructor;
default: boolean;
};
showFullScreen: {
type: BooleanConstructor;
default: boolean;
};
closeOnClickModal: {
type: BooleanConstructor;
};
closeOnPressEscape: {
type: BooleanConstructor;
default: boolean;
};
destroyOnClose: {
type: BooleanConstructor;
default: boolean;
};
beforeClose: {
type: PropType<() => boolean | Promise<void>>;
};
bodyStyle: {
type: PropType<string | CSSProperties>;
};
class: {
type: PropType<string | Arrayable<Record<string, boolean>>>;
};
style: {
type: PropType<StyleValue>;
};
direction: {
readonly type: PropType<"ltr" | "rtl" | "ttb" | "btt">;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: "rtl";
};
withHeader: {
readonly type: PropType<boolean>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: true;
};
modalFade: {
readonly type: PropType<boolean>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: true;
};
headerAriaLevel: {
readonly type: PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: "2";
};
appendToBody: BooleanConstructor;
appendTo: {
readonly type: PropType<string | HTMLElement>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: "body";
};
lockScroll: {
readonly type: PropType<boolean>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: true;
};
modal: {
readonly type: PropType<boolean>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: true;
};
openDelay: {
readonly type: PropType<number>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: 0;
};
closeDelay: {
readonly type: PropType<number>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: 0;
};
top: {
readonly type: PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
modelValue: BooleanConstructor;
modalClass: StringConstructor;
headerClass: StringConstructor;
bodyClass: StringConstructor;
footerClass: StringConstructor;
zIndex: {
readonly type: PropType<number>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
trapFocus: BooleanConstructor;
center: BooleanConstructor;
alignCenter: BooleanConstructor;
closeIcon: {
readonly type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
draggable: BooleanConstructor;
overflow: BooleanConstructor;
fullscreen: BooleanConstructor;
ariaLevel: {
readonly type: PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
} & {
readonly default: "2";
};
};
export declare const _emits: {
"update:visible": (value: boolean) => boolean;
open: () => boolean;
opened: () => boolean;
close: () => boolean;
closed: () => boolean;
fullChange: (value: boolean) => boolean;
afterVisibleChange: (value: boolean) => boolean;
};
export type DrawerProps = ExtractPropTypes<typeof _props>;
export type DrawerEmits = typeof _emits;
export type DrawerInstance = {
DO_CLOSE: () => void;
START_LOADING: () => void;
STOP_LOADING: () => void;
};