@pit-front-end/components
Version:
湖南创智艾泰克科技有限公司
45 lines (44 loc) • 1.31 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
type DoneFn = (cancel?: boolean) => void;
export type DialogBeforeCloseFn = (done: DoneFn) => void;
export declare const dialogProps: {
readonly modelValue: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly title: {
readonly type: StringConstructor;
readonly default: "标题";
};
readonly width: {
readonly type: [NumberConstructor, StringConstructor];
readonly default: "35%";
};
readonly fullscreen: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly beforeClose: {
readonly type: PropType<DialogBeforeCloseFn>;
};
readonly draggable: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly modalClass: {
readonly type: StringConstructor;
readonly default: "form-base-dialog";
};
readonly zIndex: {
readonly type: NumberConstructor;
};
readonly top: {
readonly type: StringConstructor;
};
};
export type DialogProps = ExtractPropTypes<typeof dialogProps>;
export declare const dialogEmits: {
'update:modelValue': (value: boolean) => boolean;
};
export type DialogEmits = typeof dialogEmits;
export {};