Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
9abb1cbe
Commit
9abb1cbe
authored
Mar 29, 2018
by
杨奕
Committed by
GitHub
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Card: update docs for shadow attribute (#10451)
parent
87532aa8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
examples/docs/en-US/card.md
examples/docs/en-US/card.md
+5
-4
examples/docs/es/card.md
examples/docs/es/card.md
+4
-3
examples/docs/zh-CN/card.md
examples/docs/zh-CN/card.md
+4
-3
types/card.d.ts
types/card.d.ts
+3
-0
No files found.
examples/docs/en-US/card.md
View file @
9abb1cbe
...
@@ -185,9 +185,9 @@ export default {
...
@@ -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.
...
@@ -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.
...
@@ -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 |
T
itle of the card. Also accepts a DOM passed by
`slot#header`
| string| — | — |
| header |
t
itle 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 |
examples/docs/es/card.md
View file @
9abb1cbe
...
@@ -187,9 +187,9 @@ export default {
...
@@ -187,9 +187,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"
>
...
@@ -205,6 +205,7 @@ Set the conditions that appear for shadow.
...
@@ -205,6 +205,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>
```
```
...
@@ -215,4 +216,4 @@ Set the conditions that appear for shadow.
...
@@ -215,4 +216,4 @@ Set the conditions that appear for shadow.
| ---------- | ---------------------------------------- | ------ | ----------------- | ------------------- |
| ---------- | ---------------------------------------- | ------ | ----------------- | ------------------- |
| header | Titulo del card. También acepta DOM pasado por
`slot#header`
| string | — | — |
| header | Titulo del card. También acepta DOM pasado por
`slot#header`
| string | — | — |
| body-style | Estilo CSS del cuerpo | object | — | { padding: '20px' } |
| body-style | Estilo CSS del cuerpo | object | — | { padding: '20px' } |
| shadow |
Status of shadow | string | always/hover/never | always
|
| shadow |
when to show card shadows | string | always / hover / never | always
|
examples/docs/zh-CN/card.md
View file @
9abb1cbe
...
@@ -186,9 +186,9 @@ export default {
...
@@ -186,9 +186,9 @@ export default {
### 卡片阴影
### 卡片阴影
可对阴影的显示
情况
进行配置。
可对阴影的显示进行配置。
:::demo
`always`
、
`hover`
、
`never`
,通过设置
`shadow`
属性来配置卡片阴影
。
:::demo
通过
`shadow`
属性设置卡片阴影出现的时机:
`always`
、
`hover`
或
`never`
。
```
html
```
html
<el-row
:gutter=
"12"
>
<el-row
:gutter=
"12"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -204,6 +204,7 @@ export default {
...
@@ -204,6 +204,7 @@ export default {
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
从不显示
从不显示
</el-card>
</el-col>
</el-col>
</el-row>
</el-row>
```
```
...
@@ -214,4 +215,4 @@ export default {
...
@@ -214,4 +215,4 @@ export default {
|---------- |-------- |---------- |------------- |-------- |
|---------- |-------- |---------- |------------- |-------- |
| header | 设置 header,也可以通过
`slot#header`
传入 DOM | string| — | — |
| header | 设置 header,也可以通过
`slot#header`
传入 DOM | string| — | — |
| body-style | 设置 body 的样式| object| — | { padding: '20px' } |
| body-style | 设置 body 的样式| object| — | { padding: '20px' } |
| shadow | 设置
shadow 状态| string | always/hover/
never | always |
| shadow | 设置
阴影显示时机 | string | always / hover /
never | always |
types/card.d.ts
View file @
9abb1cbe
...
@@ -19,5 +19,8 @@ export declare class ElCard extends ElementUIComponent {
...
@@ -19,5 +19,8 @@ export declare class ElCard extends ElementUIComponent {
/** CSS style of body */
/** CSS style of body */
bodyStyle
:
object
bodyStyle
:
object
/** When to show card shadows */
shadow
:
string
$slots
:
CardSlots
$slots
:
CardSlots
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment