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
533a14f0
Commit
533a14f0
authored
Dec 22, 2016
by
Leopoldthecoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Carousel: update docs
parent
9e958e60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
2 deletions
+146
-2
examples/docs/en-US/carousel.md
examples/docs/en-US/carousel.md
+72
-0
examples/docs/zh-CN/carousel.md
examples/docs/zh-CN/carousel.md
+72
-0
packages/carousel/src/main.vue
packages/carousel/src/main.vue
+2
-2
No files found.
examples/docs/en-US/carousel.md
View file @
533a14f0
...
...
@@ -36,6 +36,24 @@ Loop a series of images or texts in a limited space
</el-carousel>
</div>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
14px
;
opacity
:
0.75
;
line-height
:
150px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -52,6 +70,24 @@ Indicators can be displayed outside the carousel
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
18px
;
opacity
:
0.75
;
line-height
:
300px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -68,6 +104,24 @@ You can define when arrows are displayed
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
18px
;
opacity
:
0.75
;
line-height
:
300px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -84,6 +138,24 @@ When a page is wide enough but has limited height, you can activate card mode fo
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
14px
;
opacity
:
0.75
;
line-height
:
200px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
examples/docs/zh-CN/carousel.md
View file @
533a14f0
...
...
@@ -88,6 +88,24 @@
</el-carousel>
</div>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
14px
;
opacity
:
0.75
;
line-height
:
150px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -104,6 +122,24 @@
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
18px
;
opacity
:
0.75
;
line-height
:
300px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -119,6 +155,24 @@
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
18px
;
opacity
:
0.75
;
line-height
:
300px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
@@ -134,6 +188,24 @@
</el-carousel-item>
</el-carousel>
</template>
<style>
.el-carousel__item
h3
{
color
:
#475669
;
font-size
:
14px
;
opacity
:
0.75
;
line-height
:
200px
;
margin
:
0
;
}
.el-carousel__item
:nth-child
(
2n
)
{
background-color
:
#99a9bf
;
}
.el-carousel__item
:nth-child
(
2n
+
1
)
{
background-color
:
#d3dce6
;
}
</style>
```
:::
...
...
packages/carousel/src/main.vue
View file @
533a14f0
...
...
@@ -15,7 +15,7 @@
height: `${ arrowSize }px`,
width: `${ arrowSize }px`
}"
@click="throttledArrowClick(activeIndex - 1)"
@click
.stop
="throttledArrowClick(activeIndex - 1)"
class="el-carousel__arrow is-left">
<i
class=
"el-icon-arrow-left"
></i>
</button>
...
...
@@ -28,7 +28,7 @@
height: `${ arrowSize }px`,
width: `${ arrowSize }px`
}"
@click="throttledArrowClick(activeIndex + 1)"
@click
.stop
="throttledArrowClick(activeIndex + 1)"
class="el-carousel__arrow is-right">
<i
class=
"el-icon-arrow-right"
></i>
</button>
...
...
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