49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
import type { ExtractPublicPropTypes, InjectionKey, StyleValue } from 'vue';
|
|
export interface CardProps {
|
|
/**
|
|
* @description title of the card. Also accepts a DOM passed by `slot#header`
|
|
*/
|
|
header?: string;
|
|
/**
|
|
* @description content of footer. Also accepts a DOM passed by `slot#footer`
|
|
*/
|
|
footer?: string;
|
|
/**
|
|
* @description CSS style of card body
|
|
*/
|
|
bodyStyle?: StyleValue;
|
|
/**
|
|
* @description custom class name of card header
|
|
*/
|
|
headerClass?: string;
|
|
/**
|
|
* @description custom class name of card body
|
|
*/
|
|
bodyClass?: string;
|
|
/**
|
|
* @description custom class name of card footer
|
|
*/
|
|
footerClass?: string;
|
|
/**
|
|
* @description when to show card shadows
|
|
*/
|
|
shadow?: 'always' | 'hover' | 'never';
|
|
}
|
|
/**
|
|
* @deprecated Removed after 3.0.0, Use `CardProps` instead.
|
|
*/
|
|
export declare const cardProps: {
|
|
readonly header: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
readonly footer: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
readonly bodyStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, "", boolean>;
|
|
readonly headerClass: StringConstructor;
|
|
readonly bodyClass: StringConstructor;
|
|
readonly footerClass: StringConstructor;
|
|
readonly shadow: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "always" | "never" | "hover", unknown, undefined, boolean>;
|
|
};
|
|
export type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>;
|
|
export interface CardConfigContext {
|
|
shadow?: CardProps['shadow'];
|
|
}
|
|
export declare const cardContextKey: InjectionKey<CardConfigContext>;
|