Commit e647bc99 authored by kingwl's avatar kingwl Committed by 杨奕

Progress: fix incorrect vertical align if percent is zero

parent 8e942878
......@@ -96,6 +96,7 @@
text-align: right;
border-radius: 100px;
line-height: 1;
white-space: nowrap;
@utils-vertical-center;
}
......
......@@ -87,4 +87,12 @@ describe('Progress', () => {
expect(vm.$el.querySelector('.el-progress-circle').style.height).to.be.equal('120px');
expect(vm.$el.querySelector('.el-progress-circle').style.width).to.be.equal('120px');
});
it('should work with stroke-width', () => {
vm = createVue({
template: `
<el-progress :text-inside="true" :stroke-width="36" :percentage="0"></el-progress>
`
}, true);
expect(vm.$el.querySelector('.el-progress-bar__innerText').offsetTop).to.be.equal(12);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment