[new feature] Loading: size prop support number type

This commit is contained in:
陈嘉涵
2019-04-30 17:54:32 +08:00
parent 0a7ca2fb6e
commit e64dd9b121
6 changed files with 25 additions and 11 deletions

View File

@@ -1,6 +1,16 @@
import { mount } from '../../../test/utils';
import Loading from '..';
test('size prop', () => {
const wrapper = mount(Loading, {
propsData: {
size: 20
}
});
expect(wrapper).toMatchSnapshot();
});
test('text-size prop', () => {
const wrapper = mount(Loading, {
propsData: {