feat(ImagePreview): add image loading tip (#4378)

This commit is contained in:
neverland
2019-09-05 17:48:08 +08:00
committed by GitHub
parent b9c1dca67c
commit 3f8ffccb36
7 changed files with 138 additions and 94 deletions
+11
View File
@@ -136,6 +136,17 @@ test('zoom', async () => {
Element.prototype.getBoundingClientRect = getBoundingClientRect;
});
test('set show-index prop to false', () => {
const wrapper = mount(ImagePreviewVue, {
propsData: {
value: true,
showIndex: false
}
});
expect(wrapper).toMatchSnapshot();
});
test('index slot', () => {
const wrapper = mount({
template: `