|
@@ -185,9 +185,9 @@ export default {
|
|
|
|
|
|
### Shadow
|
|
### Shadow
|
|
|
|
|
|
-Set the conditions that appear for shadow.
|
|
|
|
|
|
+You can define when to show the card shadows
|
|
|
|
|
|
-:::demo Use attribute `shadow` to set shadow with `always`, `hover` or `never`.
|
|
|
|
|
|
+:::demo The `shadow` attribute determines when the card shadows are displayed. It can be `always`, `hover` or `never`.
|
|
```html
|
|
```html
|
|
<el-row :gutter="12">
|
|
<el-row :gutter="12">
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -203,6 +203,7 @@ Set the conditions that appear for shadow.
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-card shadow="never">
|
|
<el-card shadow="never">
|
|
Never
|
|
Never
|
|
|
|
+ </el-card>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
```
|
|
```
|
|
@@ -211,6 +212,6 @@ Set the conditions that appear for shadow.
|
|
### Attributes
|
|
### Attributes
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
|---------- |-------- |---------- |------------- |-------- |
|
|
|---------- |-------- |---------- |------------- |-------- |
|
|
-| header | Title of the card. Also accepts a DOM passed by `slot#header` | string| — | — |
|
|
|
|
|
|
+| header | title of the card. Also accepts a DOM passed by `slot#header` | string| — | — |
|
|
| body-style | CSS style of body | object| — | { padding: '20px' } |
|
|
| body-style | CSS style of body | object| — | { padding: '20px' } |
|
|
-| shadow | Status of shadow | string | always/hover/never | always |
|
|
|
|
|
|
+| shadow | when to show card shadows | string | always / hover / never | always |
|