y-design-ssr
Version:
SSR component library of YUI with Vue3
258 lines (257 loc) • 6.27 kB
TypeScript
import { PropType, Events, ExtractPropTypes } from 'vue';
import { Horizontal } from '../../utils';
declare const _props: {
modelValue: {
type: BooleanConstructor;
default: boolean;
};
width: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
title: {
type: StringConstructor;
default: string;
};
titleAlign: {
type: PropType<Horizontal>;
default: string;
};
message: {
type: StringConstructor;
default: string;
};
messageAlign: {
type: PropType<Horizontal>;
default: string;
};
isCloseOnClickMask: {
type: BooleanConstructor;
default: boolean;
};
showCloseIcon: {
type: BooleanConstructor;
default: boolean;
};
showCancelBtn: {
type: BooleanConstructor;
default: boolean;
};
cancelButtonText: {
type: StringConstructor;
default: string;
};
showConfirmBtn: {
type: BooleanConstructor;
default: boolean;
};
confirmButtonText: {
type: StringConstructor;
default: string;
};
beforeClose: {
type: PropType<(...args: string[]) => Promise<boolean> | boolean>;
default: null;
};
callback: {
type: PropType<(actionType: string) => void>;
default: null;
};
imgSrc: {
type: StringConstructor;
default: null;
};
circleImg: {
type: BooleanConstructor;
default: boolean;
};
teleport: {
type: StringConstructor;
default: string;
};
duration: {
type: NumberConstructor;
default: number;
};
onClickMask: {
type: PropType<(event: Events) => void>;
default: null;
};
};
export type DialogPropsType = ExtractPropTypes<typeof _props>;
declare const _default: import("vue").DefineComponent<{
modelValue: {
type: BooleanConstructor;
default: boolean;
};
width: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
title: {
type: StringConstructor;
default: string;
};
titleAlign: {
type: PropType<Horizontal>;
default: string;
};
message: {
type: StringConstructor;
default: string;
};
messageAlign: {
type: PropType<Horizontal>;
default: string;
};
isCloseOnClickMask: {
type: BooleanConstructor;
default: boolean;
};
showCloseIcon: {
type: BooleanConstructor;
default: boolean;
};
showCancelBtn: {
type: BooleanConstructor;
default: boolean;
};
cancelButtonText: {
type: StringConstructor;
default: string;
};
showConfirmBtn: {
type: BooleanConstructor;
default: boolean;
};
confirmButtonText: {
type: StringConstructor;
default: string;
};
beforeClose: {
type: PropType<(...args: string[]) => boolean | Promise<boolean>>;
default: null;
};
callback: {
type: PropType<(actionType: string) => void>;
default: null;
};
imgSrc: {
type: StringConstructor;
default: null;
};
circleImg: {
type: BooleanConstructor;
default: boolean;
};
teleport: {
type: StringConstructor;
default: string;
};
duration: {
type: NumberConstructor;
default: number;
};
onClickMask: {
type: PropType<(event: Events) => void>;
default: null;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:modelValue" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
modelValue: {
type: BooleanConstructor;
default: boolean;
};
width: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
title: {
type: StringConstructor;
default: string;
};
titleAlign: {
type: PropType<Horizontal>;
default: string;
};
message: {
type: StringConstructor;
default: string;
};
messageAlign: {
type: PropType<Horizontal>;
default: string;
};
isCloseOnClickMask: {
type: BooleanConstructor;
default: boolean;
};
showCloseIcon: {
type: BooleanConstructor;
default: boolean;
};
showCancelBtn: {
type: BooleanConstructor;
default: boolean;
};
cancelButtonText: {
type: StringConstructor;
default: string;
};
showConfirmBtn: {
type: BooleanConstructor;
default: boolean;
};
confirmButtonText: {
type: StringConstructor;
default: string;
};
beforeClose: {
type: PropType<(...args: string[]) => boolean | Promise<boolean>>;
default: null;
};
callback: {
type: PropType<(actionType: string) => void>;
default: null;
};
imgSrc: {
type: StringConstructor;
default: null;
};
circleImg: {
type: BooleanConstructor;
default: boolean;
};
teleport: {
type: StringConstructor;
default: string;
};
duration: {
type: NumberConstructor;
default: number;
};
onClickMask: {
type: PropType<(event: Events) => void>;
default: null;
};
}>>, {
title: string;
duration: number;
modelValue: boolean;
message: string;
onClickMask: (event: Events) => void;
teleport: string;
isCloseOnClickMask: boolean;
width: string | number;
titleAlign: Horizontal;
messageAlign: Horizontal;
showCloseIcon: boolean;
showCancelBtn: boolean;
cancelButtonText: string;
showConfirmBtn: boolean;
confirmButtonText: string;
beforeClose: (...args: string[]) => boolean | Promise<boolean>;
callback: (actionType: string) => void;
imgSrc: string;
circleImg: boolean;
}>;
export default _default;