mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Progress: fix incorrect vertical align if percent is zero
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user