[new feature] Button: add loading-size prop (#2854)

This commit is contained in:
neverland
2019-02-26 19:35:59 +08:00
committed by GitHub
parent c3cf74cda0
commit 5cb0edbf39
5 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import { mount } from '../../../test/utils';
import Button from '..';
test('loading size', () => {
const wrapper = mount(Button, {
propsData: {
loading: true,
loadingSize: '10px'
}
});
expect(wrapper).toMatchSnapshot();
});