ant-design-vue/components/card/index.en-US.md

35 lines
1.5 KiB
Markdown
Raw Normal View History

2018-03-09 05:26:34 +00:00
## API
### Card
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
2018-03-09 09:50:33 +00:00
| actions | The action list, shows at the bottom of the Card. | slot | - |
2018-03-09 05:26:34 +00:00
| bodyStyle | Inline style to apply to the card content | object | - |
| bordered | Toggles rendering of the border around the card | boolean | `true` |
2018-07-17 13:27:06 +00:00
| cover | Card cover | slot | - |
| extra | Content to render in the top-right corner of the card | string\|slot | - |
2018-03-09 05:26:34 +00:00
| 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, Custom tabs can be created with the scopedSlots property | Array<{key: string, tab: any, scopedSlots: {tab: 'XXX'}}> | - |
2018-04-06 12:56:19 +00:00
| activeTabKey | Current TabPane's key | string | - |
| defaultActiveTabKey | Initial active TabPane's key, if `activeTabKey` is not set. | string | - |
2018-07-17 13:27:06 +00:00
| title | Card title | string\|slot | - |
2018-03-09 05:26:34 +00:00
| type | Card style type, can be set to `inner` or not set | string | - |
| onTabChange | Callback when tab is switched | (key) => void | - |
### events
| Events Name | Description | Arguments |
| --- | --- | --- |
| tabChange | Callback when tab is switched | (key) => void | - |
2018-03-09 05:26:34 +00:00
### Card.Grid
2018-03-09 05:26:34 +00:00
### Card.Meta
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
2018-07-17 13:27:06 +00:00
| avatar | avatar or icon | slot | - |
| description | description content | string\|slot | - |
| title | title content | string\|slot | - |