2018-03-09 05:26:34 +00:00
## API
### Card
| Property | Description | Type | Default |
2019-09-28 12:45:07 +00:00
| --- | --- | --- | --- |
2018-09-05 13:28:54 +00: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 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 | - |
2018-09-05 13:28:54 +00:00
| defaultActiveTabKey | Initial active TabPane's key, if `activeTabKey` is not set. | string | - |
2018-07-17 13:27:06 +00:00
| 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 |
2018-07-17 14:04:32 +00:00
| tabList | List of TabPane's head, Custom tabs can be created with the scopedSlots property | Array< {key: string, tab: any, scopedSlots: {tab: 'XXX'}}> | - |
2019-03-13 13:32:14 +00:00
| size | Size of card | `default` \| `small` | `default` |
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 | - |
2018-07-27 07:30:24 +00:00
### events
2019-09-28 12:45:07 +00:00
| Events Name | Description | Arguments |
| ----------- | ----------------------------- | ------------- |
| tabChange | Callback when tab is switched | (key) => void | - |
2018-03-09 05:26:34 +00:00
2018-07-27 07:30:24 +00:00
### Card.Grid
2018-03-09 05:26:34 +00:00
### Card.Meta
2019-09-28 12:45:07 +00:00
| Property | Description | Type | Default |
| ----------- | ------------------- | ------------ | ------- |
| avatar | avatar or icon | slot | - |
| description | description content | string\|slot | - |
| title | title content | string\|slot | - |