mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
30fe88d4bd
* Add the defaultActiveTabKey property for the Card component (close #8789, #8942) * `activeTabKey` should be added * Improve * Fix large tabs font size, close #9509 * docs: Add TreeSelect[dropdownClassName] * Fix passing dropdownClassName to tree-select * build: update remark-parse requirement to ^5.0.0 (#9545) Updates the requirements on [remark-parse](https://github.com/remarkjs/remark) to permit the latest version. - [Release notes](https://github.com/remarkjs/remark/releases) - [Commits](https://github.com/remarkjs/remark/commits/remark@5.0.0) Signed-off-by: dependabot[bot] <support@dependabot.com> * add Tooltip contextMenu doc * Improve Grid and Layout type definition * fix: focus editor (#9548) * Fix test case for new jsdom (#9527) * Fix test case for new jsdom * use setTimeout as raf in jest jsdom * Fix cancelAnimationFrame * Add comment for facebook/jest#5147 * longer timeout * fix snap * upgrade antd-tools * Update typescript requirement to ~2.7.2 (#9522) Updates the requirements on [typescript](https://github.com/Microsoft/TypeScript) to permit the latest version. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits/v2.7.2) Signed-off-by: dependabot[bot] <support@dependabot.com> * Fix a ts error * build: update react-slick requirement to ~0.20.0 (#9543) Updates the requirements on [react-slick](https://github.com/akiran/react-slick) to permit the latest version. - [Changelog](https://github.com/akiran/react-slick/blob/master/CHANGELOG.md) - [Commits](https://github.com/akiran/react-slick/commits) Signed-off-by: dependabot[bot] <support@dependabot.com> * Fix test cases * site: fix intersection-observer polyfill * docs: update recommendation * Fix typo WeexPickerProps -> WeekPickerProps (#9564) * use lodash * Fixed typo on Visualization rules (#9575) Style of a navigation should conform to the its level. should be Style of a navigation should conform to its level. * Improve Radio/Checkbox type definition Close #9574 * Remove AbstractCheckboxChangeEvent, fix TS4029 error See https://github.com/Microsoft/TypeScript/issues/9944 * Update index.en-US.md (#9579) * add transitionName from message.config (#9580) * add transitionName from message.config * Update index.en-US.md (#9579) * modify doc * build: update react-virtualized requirement to ~9.18.5 (#9544) Updates the requirements on [react-virtualized](https://github.com/bvaughn/react-virtualized) to permit the latest version. - [Changelog](https://github.com/bvaughn/react-virtualized/blob/master/CHANGELOG.md) - [Commits](https://github.com/bvaughn/react-virtualized/commits/9.18.5) Signed-off-by: dependabot[bot] <support@dependabot.com> * When treeNode is disabled, its switcher is highlight and clickabled (#9539) * When treeNode is disabled, its switcher is highlight and clickabled * rc-tree@1.7.11 * Fix moment require (#9528) Fix #9502 * Update snapshot
1.9 KiB
1.9 KiB
category | type | title | cols |
---|---|---|---|
Components | Data Display | Card | 1 |
Simple rectangular container.
When To Use
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
API
<Card title="Card title">Card content</Card>
Card
Property | Description | Type | Default |
---|---|---|---|
actions | The action list, shows at the bottom of the Card. | Array | - |
bodyStyle | Inline style to apply to the card content | object | - |
bordered | Toggles rendering of the border around the card | boolean | true |
cover | Card cover | ReactNode | - |
extra | Content to render in the top-right corner of the card | string|ReactNode | - |
hoverable | Lift up when hovering card | boolean | false |
loading | Shows a loading indicator while the contents of the card are being fetched | boolean | false |
tabList | List of TabPane's head. | Array<{key: string, tab: ReactNode}> | - |
activeTabKey | Current TabPane's key | string | - |
defaultActiveTabKey | Initial active TabPane's key, if activeTabKey is not set. |
string | - |
title | Card title | string|ReactNode | - |
type | Card style type, can be set to inner or not set |
string | - |
onTabChange | Callback when tab is switched | (key) => void | - |
Card.Grid
Property | Description | Type | Default |
---|---|---|---|
className | className of container | string | - |
style | style object of container | object | - |
Card.Meta
Property | Description | Type | Default |
---|---|---|---|
avatar | avatar or icon | ReactNode | - |
className | className of container | string | - |
description | description content | ReactNode | - |
style | style object of container | object | - |
title | title content | ReactNode | - |