mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
feat(components): [card] add header-class and footer-class for slots (#20408)
This commit is contained in:
@@ -51,13 +51,15 @@ card/shadow
|
||||
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| -------------------- | -------------------------------------------------------------- | --------------------------------- | ------- |
|
||||
| header | title of the card. Also accepts a DOM passed by `slot#header` | ^[string] | — |
|
||||
| footer ^(2.4.3) | footer of the card. Also accepts a DOM passed by `slot#footer` | ^[string] | — |
|
||||
| body-style | CSS style of card body | ^[object]`CSSProperties` | — |
|
||||
| body-class ^(2.3.10) | custom class name of card body | ^[string] | — |
|
||||
| shadow | when to show card shadows | ^[enum]`always \| never \| hover` | always |
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | -------------------------------------------------------------- | --------------------------------- | ------- |
|
||||
| header | title of the card. Also accepts a DOM passed by `slot#header` | ^[string] | — |
|
||||
| footer ^(2.4.3) | footer of the card. Also accepts a DOM passed by `slot#footer` | ^[string] | — |
|
||||
| body-style | CSS style of card body | ^[object]`CSSProperties` | — |
|
||||
| header-class ^(2.9.8) | custom class name of card header | ^[string] | — |
|
||||
| body-class ^(2.3.10) | custom class name of card body | ^[string] | — |
|
||||
| footer-class ^(2.9.8) | custom class name of card footer | ^[string] | — |
|
||||
| shadow | when to show card shadows | ^[enum]`always \| never \| hover` | always |
|
||||
|
||||
### Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user