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
15a44bf9
Commit
15a44bf9
authored
Dec 21, 2016
by
hisland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout: all in right, clear float fixed #1893
parent
631afa92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
packages/theme-default/src/pagination.css
packages/theme-default/src/pagination.css
+1
-0
test/unit/specs/pagination.spec.js
test/unit/specs/pagination.spec.js
+12
-0
No files found.
packages/theme-default/src/pagination.css
View file @
15a44bf9
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
padding
:
2px
5px
;
padding
:
2px
5px
;
color
:
var
(
--pagination-color
);
color
:
var
(
--pagination-color
);
@utils-clearfix;
span,
span,
button
{
button
{
...
...
test/unit/specs/pagination.spec.js
View file @
15a44bf9
...
@@ -40,6 +40,18 @@ describe('Pagination', () => {
...
@@ -40,6 +40,18 @@ describe('Pagination', () => {
expect
(
elm
.
querySelector
(
'
.el-pagination__total
'
)).
to
.
not
.
exist
;
expect
(
elm
.
querySelector
(
'
.el-pagination__total
'
)).
to
.
not
.
exist
;
});
});
it
(
'
layout: all in right, need clear float
'
,
()
=>
{
vm
=
createTest
(
Pagination
,
{
layout
:
'
->, prev, pager, next
'
,
total
:
100
},
true
);
const
elm
=
vm
.
$el
;
let
right_div
=
elm
.
querySelector
(
'
.el-pagination__rightwrapper
'
);
expect
(
elm
.
clientHeight
>
0
&&
right_div
.
clientHeight
>
0
).
to
.
equal
(
true
);
// elm 将来 padding 可能会变化, 所以使用 >= 来判定
expect
(
elm
.
clientHeight
>=
right_div
.
clientHeight
).
to
.
equal
(
true
);
});
it
(
'
custom slot
'
,
()
=>
{
it
(
'
custom slot
'
,
()
=>
{
vm
=
createVue
({
vm
=
createVue
({
template
:
`
template
:
`
...
...
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