feat(Uploader): add upload-icon prop

This commit is contained in:
chenjiahan
2020-02-29 11:36:33 +08:00
parent c6791841f4
commit b3b46cde45
5 changed files with 26 additions and 1 deletions

View File

@@ -213,6 +213,16 @@ it('image-fit prop', () => {
expect(wrapper).toMatchSnapshot();
});
it('upload-icon prop', () => {
const wrapper = mount(Uploader, {
propsData: {
uploadIcon: 'add',
},
});
expect(wrapper).toMatchSnapshot();
});
it('disable preview image', async () => {
const wrapper = mount(Uploader, {
propsData: {