2018-03-09 13:26:34 +08:00
## API
### Card
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
2018-09-05 21:28:54 +08:00
| actions | The action list, shows at the bottom of the Card. | slots | - |
| activeTabKey | Current TabPane's key | string | - |
| headStyle | Inline style to apply to the card head | object | - |
2018-03-09 13:26:34 +08: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 21:27:06 +08:00
| cover | Card cover | slot | - |
2018-09-05 21:28:54 +08:00
| defaultActiveTabKey | Initial active TabPane's key, if `activeTabKey` is not set. | string | - |
2018-07-17 21:27:06 +08:00
| extra | Content to render in the top-right corner of the card | string\|slot | - |
2018-03-09 13:26:34 +08: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 |
2018-07-17 22:04:32 +08:00
| tabList | List of TabPane's head, Custom tabs can be created with the scopedSlots property | Array< {key: string, tab: any, scopedSlots: {tab: 'XXX'}}> | - |
2018-07-17 21:27:06 +08:00
| title | Card title | string\|slot | - |
2018-03-09 13:26:34 +08:00
| type | Card style type, can be set to `inner` or not set | string | - |
2018-07-27 15:30:24 +08:00
### events
| Events Name | Description | Arguments |
| --- | --- | --- |
| tabChange | Callback when tab is switched | (key) => void | - |
2018-03-09 13:26:34 +08:00
2018-07-27 15:30:24 +08:00
### Card.Grid
2018-03-09 13:26:34 +08:00
### Card.Meta
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
2018-07-17 21:27:06 +08:00
| avatar | avatar or icon | slot | - |
2018-07-27 15:30:24 +08:00
| description | description content | string\|slot | - |
| title | title content | string\|slot | - |