前端初始化
This commit is contained in:
+97
@@ -0,0 +1,97 @@
|
||||
import { IconPropType } from "../../../utils/vue/icon.js";
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { ClassValue } from "../../../utils/typescript.js";
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/dialog/src/dialog-content.d.ts
|
||||
/**
|
||||
* @description dialog-content component props
|
||||
*/
|
||||
interface DialogContentProps {
|
||||
/**
|
||||
* @description whether to align the header and footer in center
|
||||
*/
|
||||
center?: boolean;
|
||||
/**
|
||||
* @description whether to align the dialog both horizontally and vertically
|
||||
*/
|
||||
alignCenter?: boolean;
|
||||
/**
|
||||
* @description custom close icon, default is Close
|
||||
*/
|
||||
closeIcon?: IconPropType;
|
||||
/**
|
||||
* @description enable dragging feature for Dialog
|
||||
*/
|
||||
draggable?: boolean;
|
||||
/**
|
||||
* @description draggable Dialog can overflow the viewport
|
||||
*/
|
||||
overflow?: boolean;
|
||||
/**
|
||||
* @description whether the Dialog takes up full screen
|
||||
*/
|
||||
fullscreen?: boolean;
|
||||
/**
|
||||
* @description custom class names for header wrapper
|
||||
*/
|
||||
headerClass?: ClassValue;
|
||||
/**
|
||||
* @description custom class names for body wrapper
|
||||
*/
|
||||
bodyClass?: ClassValue;
|
||||
/**
|
||||
* @description custom class names for footer wrapper
|
||||
*/
|
||||
footerClass?: ClassValue;
|
||||
/**
|
||||
* @description whether to show a close button
|
||||
*/
|
||||
showClose?: boolean;
|
||||
/**
|
||||
* @description title of Dialog. Can also be passed with a named slot (see the following table)
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* @description header's aria-level attribute
|
||||
*/
|
||||
ariaLevel?: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `DialogContentProps` instead.
|
||||
*/
|
||||
declare const dialogContentProps: {
|
||||
readonly center: BooleanConstructor;
|
||||
readonly alignCenter: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly closeIcon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly draggable: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly overflow: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
||||
readonly fullscreen: BooleanConstructor;
|
||||
readonly headerClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly bodyClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly footerClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly ariaLevel: EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
||||
};
|
||||
declare const dialogContentEmits: {
|
||||
close: () => boolean;
|
||||
};
|
||||
declare const dialogContentPropsDefaults: {
|
||||
readonly alignCenter: undefined;
|
||||
readonly draggable: undefined;
|
||||
readonly overflow: undefined;
|
||||
readonly showClose: true;
|
||||
readonly title: "";
|
||||
readonly ariaLevel: "2";
|
||||
readonly headerClass: undefined;
|
||||
readonly bodyClass: undefined;
|
||||
readonly footerClass: undefined;
|
||||
};
|
||||
//#endregion
|
||||
export { DialogContentProps, dialogContentEmits, dialogContentProps, dialogContentPropsDefaults };
|
||||
Reference in New Issue
Block a user