前端初始化
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
import { EpPropFinalized } from "../../../utils/vue/props/types.js";
|
||||
import { ClassValue } from "../../../utils/typescript.js";
|
||||
import * as _$vue from "vue";
|
||||
import { ExtractPublicPropTypes, InjectionKey, StyleValue } from "vue";
|
||||
|
||||
//#region ../../packages/components/card/src/card.d.ts
|
||||
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?: ClassValue;
|
||||
/**
|
||||
* @description custom class name of card body
|
||||
*/
|
||||
bodyClass?: ClassValue;
|
||||
/**
|
||||
* @description custom class name of card footer
|
||||
*/
|
||||
footerClass?: ClassValue;
|
||||
/**
|
||||
* @description when to show card shadows
|
||||
*/
|
||||
shadow?: 'always' | 'hover' | 'never';
|
||||
}
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `CardProps` instead.
|
||||
*/
|
||||
declare const cardProps: {
|
||||
readonly header: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly footer: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly bodyStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
||||
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 shadow: EpPropFinalized<StringConstructor, "hover" | "always" | "never", unknown, undefined, boolean>;
|
||||
};
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `CardProps` instead.
|
||||
*/
|
||||
type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>;
|
||||
interface CardConfigContext {
|
||||
shadow?: CardProps['shadow'];
|
||||
}
|
||||
declare const cardContextKey: InjectionKey<CardConfigContext>;
|
||||
//#endregion
|
||||
export { CardConfigContext, CardProps, CardPropsPublic, cardContextKey, cardProps };
|
||||
Reference in New Issue
Block a user