layout: all in right, clear float fixed #1893

pull/1898/head
hisland 2016-12-21 12:37:45 +08:00
parent 631afa92ca
commit 15a44bf9ee
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
white-space: nowrap;
padding: 2px 5px;
color: var(--pagination-color);
@utils-clearfix;
span,
button {

View File

@ -40,6 +40,18 @@ describe('Pagination', () => {
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', () => {
vm = createVue({
template: `