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
d2f6b21b
Commit
d2f6b21b
authored
Nov 28, 2016
by
Leon Zhang
Committed by
GitHub
Nov 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from ElemeFE/dev
merge
parents
640ac48e
84efedcc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
14 deletions
+26
-14
examples/components/header.vue
examples/components/header.vue
+1
-1
examples/docs/en-US/pagination.md
examples/docs/en-US/pagination.md
+12
-6
examples/docs/zh-CN/pagination.md
examples/docs/zh-CN/pagination.md
+12
-6
packages/theme-default/src/pagination.css
packages/theme-default/src/pagination.css
+1
-1
No files found.
examples/components/header.vue
View file @
d2f6b21b
...
...
@@ -228,7 +228,7 @@
},
watch
:
{
'
$route.path
'
()
{
this
.
isHome
=
this
.
$route
.
name
===
'
home
'
;
this
.
isHome
=
/^home/
.
test
(
this
.
$route
.
name
)
;
this
.
headerStyle
.
backgroundColor
=
`rgba(32, 160, 255,
${
this
.
isHome
?
'
0
'
:
'
1
'
}
)`
;
}
},
...
...
examples/docs/en-US/pagination.md
View file @
d2f6b21b
...
...
@@ -51,7 +51,7 @@ Add more modules based on your scenario.
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
1
"
:page-size=
"100"
layout=
"total, prev, pager, next"
:total=
"1000"
>
...
...
@@ -62,7 +62,7 @@ Add more modules based on your scenario.
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
2
"
:page-sizes=
"[100, 200, 300, 400]"
:page-size=
"100"
layout=
"sizes, prev, pager, next"
...
...
@@ -74,7 +74,7 @@ Add more modules based on your scenario.
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
3
"
:page-size=
"100"
layout=
"prev, pager, next, jumper"
:total=
"1000"
>
...
...
@@ -85,7 +85,7 @@ Add more modules based on your scenario.
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
4
"
:page-sizes=
"[100, 200, 300, 400]"
:page-size=
"100"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -106,7 +106,10 @@ Add more modules based on your scenario.
},
data
()
{
return
{
currentPage
:
5
currentPage1
:
5
,
currentPage2
:
5
,
currentPage3
:
5
,
currentPage4
:
5
};
}
}
...
...
@@ -117,7 +120,10 @@ Add more modules based on your scenario.
export default {
data() {
return {
currentPage: 5
currentPage1: 5,
currentPage2: 5,
currentPage3: 5,
currentPage4: 5
};
},
methods: {
...
...
examples/docs/zh-CN/pagination.md
View file @
d2f6b21b
...
...
@@ -51,7 +51,7 @@
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
1
"
:page-size=
"100"
layout=
"total, prev, pager, next"
:total=
"1000"
>
...
...
@@ -62,7 +62,7 @@
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
2
"
:page-sizes=
"[100, 200, 300, 400]"
:page-size=
"100"
layout=
"sizes, prev, pager, next"
...
...
@@ -74,7 +74,7 @@
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
3
"
:page-size=
"100"
layout=
"prev, pager, next, jumper"
:total=
"1000"
>
...
...
@@ -85,7 +85,7 @@
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:current-page=
"currentPage
4
"
:page-sizes=
"[100, 200, 300, 400]"
:page-size=
"100"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -106,7 +106,10 @@
},
data
()
{
return
{
currentPage
:
5
currentPage1
:
5
,
currentPage2
:
5
,
currentPage3
:
5
,
currentPage4
:
5
};
}
}
...
...
@@ -127,7 +130,10 @@
},
data() {
return {
currentPage: 5
currentPage1: 5,
currentPage2: 5,
currentPage3: 5,
currentPage4: 5
};
},
mounted() {
...
...
packages/theme-default/src/pagination.css
View file @
d2f6b21b
...
...
@@ -6,7 +6,6 @@
@b
pagination
{
white-space
:
nowrap
;
padding
:
2px
5px
;
background
:
var
(
--pagination-fill
);
color
:
var
(
--pagination-color
);
span,
...
...
@@ -51,6 +50,7 @@
.btn-next
{
background
:
center
center
no-repeat
;
background-size
:
16px
;
background-color
:
var
(
--pagination-fill
);
border
:
1px
solid
var
(
--pagination-border-color
);
cursor
:
pointer
;
margin
:
0
;
...
...
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