From 3090f5aed443e42f8422e6247eb530b93bfd7b89 Mon Sep 17 00:00:00 2001 From: Yahtnif Date: Sun, 23 Dec 2018 15:01:25 +0800 Subject: [PATCH 1/2] Fix: 'v-bind' directives don't support the modifier 'number'. --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d4c8de4..2de43da 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Demo -

+

Demo gif

@@ -24,19 +24,19 @@ ```vue - + - + ``` This component is heavily based on this library : @@ -107,7 +107,7 @@ When we call the `previous` method while currently showing the first image, it w The images are displayed as we would use `background-size:cover` in CSS. -## Contributing +## Contributing Contributions are welcome ! Follow the instructions in the [contributing file](./CONTRIBUTING.md) From 1752c73c374b03aa580c3a2d074aaff71933810d Mon Sep 17 00:00:00 2001 From: Yahtnif Date: Sun, 23 Dec 2018 15:40:58 +0800 Subject: [PATCH 2/2] Remove unused codes --- src/VueDisplacementSlideshow.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/VueDisplacementSlideshow.vue b/src/VueDisplacementSlideshow.vue index 052487a..6a2baca 100644 --- a/src/VueDisplacementSlideshow.vue +++ b/src/VueDisplacementSlideshow.vue @@ -20,7 +20,6 @@ import { mod } from './utils.js'; import TweenMax from 'gsap/TweenMaxBase'; - import Easing from 'gsap/EasePack'; export default { name: "vue-displacement-slideshow", @@ -235,7 +234,7 @@ insertImage(path, index = this.textures.length) { const loader = new TextureLoader(); loader.crossOrigin = ''; - return new Promise((resolve, reject) => { + return new Promise((resolve) => { let texture = loader.load(path, () => { this.render(); resolve();