[Improvement] Loading: add size prop (#620)

This commit is contained in:
neverland
2018-02-07 17:28:59 +08:00
committed by GitHub
parent e53f543639
commit 2a3c75bc2f
4 changed files with 25 additions and 1 deletions

View File

@@ -60,4 +60,14 @@ describe('Loading', () => {
expect(spinner.hasClass('van-loading__spinner--circle')).to.be.true;
});
it('loading size', () => {
wrapper = mount(Loading, {
propsData: {
size: '100px'
}
});
expect(wrapper.vm.$el.style.width).to.equal('100px');
expect(wrapper.vm.$el.style.height).to.equal('100px');
});
});