[new feature] Uploader: add preview-size prop

This commit is contained in:
陈嘉涵
2019-06-05 09:44:27 +08:00
parent af4dea96ed
commit 5dee1eb22f
6 changed files with 50 additions and 4 deletions

View File

@@ -150,3 +150,17 @@ it('max-count prop', async () => {
expect(wrapper).toMatchSnapshot();
});
it('preview-size prop', async () => {
const wrapper = mount(Uploader, {
propsData: {
preview: true,
previewSize: 30
}
});
wrapper.vm.onChange(file);
await later();
expect(wrapper).toMatchSnapshot();
});