|
@@ -185,8 +185,34 @@ export default {
|
|
|
```
|
|
|
:::
|
|
|
|
|
|
+### Shadow
|
|
|
+
|
|
|
+Set the conditions that appear for shadow.
|
|
|
+
|
|
|
+:::demo Use attribute `shadow` to set shadow with `always`, `hover` or `never`.
|
|
|
+```html
|
|
|
+<el-row :gutter="12">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card shadow="always">
|
|
|
+ Always
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card shadow="hover">
|
|
|
+ Hover
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card shadow="never">
|
|
|
+ Never
|
|
|
+ </el-col>
|
|
|
+</el-row>
|
|
|
+```
|
|
|
+:::
|
|
|
+
|
|
|
### Atributos
|
|
|
-| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|
|
|
-| ---------- | ---------------------------------------- | ------ | ----------------- | ------------------- |
|
|
|
-| header | Titulo del card. También acepta DOM pasado por `slot#header` | string | — | — |
|
|
|
-| body-style | Estilo CSS del cuerpo | object | — | { padding: '20px' } |
|
|
|
+| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|
|
|
+| ---------- | ---------------------------------------- | ------ | ----------------- | ------------------- |
|
|
|
+| header | Titulo del card. También acepta DOM pasado por `slot#header` | string | — | — |
|
|
|
+| body-style | Estilo CSS del cuerpo | object | — | { padding: '20px' } |
|
|
|
+| shadow | Status of shadow | string | always/hover/never | always |
|