mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Progress: add text status (#13198)
* add: text status in progress circle component * Progress: update Chinse and Spanish docs and minor improvements * update progress
This commit is contained in:
@@ -33,6 +33,7 @@ describe('Progress', () => {
|
||||
<el-progress ref="lineException" :percentage="0" status="exception"></el-progress>
|
||||
<el-progress type="circle" ref="circleSuccess" :percentage="100" status="success"></el-progress>
|
||||
<el-progress type="circle" ref="circleException" :percentage="0" status="exception"></el-progress>
|
||||
<el-progress type="circle" ref="textException" :percentage="100" status="text">Done</el-progress>
|
||||
</div>
|
||||
`
|
||||
}, true);
|
||||
@@ -45,6 +46,7 @@ describe('Progress', () => {
|
||||
expect(vm.$refs.circleSuccess.$el.querySelector('.el-progress__text .el-icon-check')).to.be.exist;
|
||||
expect(vm.$refs.circleException.$el.classList.contains('is-exception')).to.be.true;
|
||||
expect(vm.$refs.circleException.$el.querySelector('.el-progress__text .el-icon-close')).to.be.exist;
|
||||
expect(vm.$refs.textException.$el.querySelector('.el-progress__text').innerText).to.be.equal('Done');
|
||||
});
|
||||
it('text inside', () => {
|
||||
vm = createVue({
|
||||
|
||||
Reference in New Issue
Block a user