Skip to content

Commit

Permalink
Updated demo test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenashpole committed May 12, 2021
1 parent 4db4f6d commit 65d7327
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 16 additions & 14 deletions demo/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
<template>
<div id="app">
<h1>vue-inner-image-zoom Demo</h1>
<div style="margin-bottom: 30px;">
<h2>Spacer Example</h2>
<inner-image-zoom
src="/assets/unsplash3.jpg"
zoomSrc="/assets/unsplash3-large.jpg"
:fullscreenOnMobile="true"
:width="750"
:height="500"
:hasSpacer="true"
:zoomScale="0.9"
/>
</div>
<div style="margin-bottom: 30px;">
<h2>Pan Example</h2>
<inner-image-zoom
src="/assets/unsplash.jpg"
zoomSrc="/assets/unsplash-large.jpg"
:src="srcs[0]"
:fullscreenOnMobile="true"
:hideCloseButton="true"
:hideHint="true"
Expand All @@ -30,6 +18,19 @@
zoomSrc="/assets/unsplash2-large.jpg"
moveType="drag"
:fullscreenOnMobile="true"
:width="750"
:height="500"
:hasSpacer="true"
/>
</div>
<div style="margin-bottom: 30px;">
<h2>Zoom on Hover Example</h2>
<inner-image-zoom
src="/assets/unsplash3.jpg"
zoomSrc="/assets/unsplash3-large.jpg"
zoomType="hover"
:fullscreenOnMobile="true"
:zoomScale="0.9"
/>
</div>
</div>
Expand All @@ -42,6 +43,7 @@ export default {
name: 'App',
components: {
InnerImageZoom
}
},
props: ['srcs']
};
</script>
2 changes: 1 addition & 1 deletion demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import App from './App.vue';
Vue.config.productionTip = false;

new Vue({
render: (h) => h(App)
render: (h) => h(App, { props: { srcs: ['/assets/unsplash.jpg'] } })
}).$mount('#app');

0 comments on commit 65d7327

Please sign in to comment.