mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Progress: add color attribute (#10352)
This commit is contained in:
@@ -95,4 +95,12 @@ describe('Progress', () => {
|
||||
}, true);
|
||||
expect(vm.$el.querySelector('.el-progress-bar__innerText').offsetTop).to.be.equal(12);
|
||||
});
|
||||
it('color', () => {
|
||||
vm = createVue({
|
||||
template: `
|
||||
<el-progress :percentage="50" color="rgb(0, 0, 0)"></el-progress>
|
||||
`
|
||||
}, true);
|
||||
expect(vm.$el.querySelector('.el-progress-bar__inner').style.backgroundColor).to.equal('rgb(0, 0, 0)');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user