@fesjs/fes-design
Version:
fes-design for PC
90 lines (89 loc) • 3.4 kB
TypeScript
import type { DefineComponent, PropType, VNode, VNodeChild } from 'vue';
import type { ExtractPublicPropTypes } from '../_util/interface';
export declare const modalIconMap: {
readonly confirm: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
readonly info: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
readonly success: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
readonly error: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
readonly warning: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
};
export type ModalType = keyof typeof modalIconMap;
export declare const globalModalProps: {
readonly content: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}> | (() => VNodeChild)>;
readonly forGlobal: BooleanConstructor;
readonly cancelLoading: BooleanConstructor;
};
export declare const modalProps: {
readonly show: BooleanConstructor;
readonly displayDirective: {
readonly type: PropType<"show" | "if">;
readonly default: "show";
};
readonly closable: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly mask: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly maskClosable: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly escClosable: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly type: {
readonly type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
};
readonly title: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}> | (() => VNodeChild)>;
readonly okText: StringConstructor;
readonly okLoading: BooleanConstructor;
readonly cancelText: StringConstructor;
readonly showCancel: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly width: {
readonly type: PropType<string | number>;
readonly default: 520;
};
readonly maxHeight: {
readonly type: PropType<string | number>;
};
readonly top: {
readonly type: PropType<string | number>;
readonly default: 50;
};
readonly bottom: {
readonly type: PropType<string | number>;
readonly default: 50;
};
readonly verticalCenter: BooleanConstructor;
readonly center: BooleanConstructor;
readonly footer: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly getContainer: {
readonly type: PropType<() => HTMLElement>;
};
readonly fullScreen: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly contentClass: StringConstructor;
readonly wrapperClass: StringConstructor;
readonly useAnimation: {
readonly type: BooleanConstructor;
readonly default: true;
};
};
export type ModalProps = ExtractPublicPropTypes<typeof modalProps>;
export type ModalInnerProps = Parameters<DefineComponent<typeof modalProps>['setup']>[0];