ant-design-vue/types/card.d.ts

106 lines
2.3 KiB
TypeScript
Raw Normal View History

// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
2020-08-21 02:46:56 +00:00
import { VNodeChild, CSSProperties } from 'vue';
2020-08-31 06:59:56 +00:00
import { AntdComponent, AntdProps } from './component';
2019-01-12 03:33:27 +00:00
import { Meta } from './meta';
2019-09-10 10:57:08 +00:00
export type CardSize = 'default' | 'small';
export declare class Card extends AntdComponent {
static Grid: any;
static Meta: typeof Meta;
2020-08-31 06:59:56 +00:00
$props: AntdProps & {
tabBarExtraContent?: VNodeChild | JSX.Element;
2020-09-24 01:50:33 +00:00
2020-08-21 02:46:56 +00:00
/**
* The action list, shows at the bottom of the Card.
* @type any (slots)
*/
actions?: VNodeChild[] | JSX.Element[];
2020-08-21 02:46:56 +00:00
/**
* Current TabPane's key
* @type string
*/
activeTabKey?: string;
/**
* Inline style to apply to the card head
* @type object
*/
headStyle?: CSSProperties;
/**
* Inline style to apply to the card content
* @type object
*/
bodyStyle?: CSSProperties;
/**
* Toggles rendering of the border around the card
* @default true
* @type boolean
*/
bordered?: boolean;
/**
* Card cover
* @type any (slot)
*/
cover?: VNodeChild | JSX.Element;
/**
* Initial active TabPane's key, if activeTabKey is not set.
* @type string
*/
defaultActiveTabKey?: string;
/**
* Content to render in the top-right corner of the card
* @type any (string | slot)
*/
extra?: VNodeChild | JSX.Element;
/**
* Lift up when hovering card
* @default false
* @type boolean
*/
hoverable?: boolean;
/**
* Shows a loading indicator while the contents of the card are being fetched
* @default false
* @type boolean
*/
loading?: boolean;
/**
* List of TabPane's head, Custom tabs can be created with the scopedSlots property
* @type Array<{key: string, tab: any, scopedSlots: {tab: string}}>
*/
2020-08-22 02:21:34 +00:00
tabList?: Array<{ key: string; tab: any; slots: { tab: string } }>;
2020-08-21 02:46:56 +00:00
/**
* Card title
* @type any (string | slot)
*/
title?: VNodeChild | JSX.Element;
/**
* Card style type, can be set to inner or not set
* @type string
*/
type?: 'inner';
2020-08-21 02:46:56 +00:00
/**
* Size of card
* @type string
*/
size?: CardSize;
};
}