Skip to content

Commit

Permalink
fix: fix rebase mistake in vue play (SSENSE#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysimpson authored and quinnlangille committed Apr 2, 2019
1 parent e81bf99 commit 7c8e213
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions play/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,56 +248,6 @@ play("Carousel", module)
},
}
})
.add("With local event on pageChange", {
.add("navigation-click event", {
template:
`<div style="width: 100%; display: flex; justify-content: center; margin-top: 40px;">
<carousel style="width: 500px;" @navigation-click="onNavigationClick" navigationEnabled :paginationEnabled="false">
<slide v-for="slide in slides" :key="slide">
<img style="width: 100%;" :src="slide" />
</slide>
</carousel>
</div>`,
components: {
Carousel,
Slide
},
data() {
return {
slides: images
}
},
methods: {
onNavigationClick(direction) {
this.$log(`Captured [navigation-click] event. Current direction is ${direction}`)
},
}
})
.add("pagination-click event", {
template:
`<div style="width: 100%; display: flex; justify-content: center; margin-top: 40px;">
<carousel style="width: 500px;" @pagination-click="onPaginationClick">
<slide v-for="slide in slides" :key="slide">
<img style="width: 100%;" :src="slide" />
</slide>
</carousel>
</div>`,
components: {
Carousel,
Slide
},
data() {
return {
slides: images
}
},
methods: {
onPaginationClick (currentPage) {
this.$log(`Captured [pagination-click] event. Current page is ${currentPage}`)
},
}
})
.add("With local event on pageChange", {
.add("pageChange event", {
template:
`<div style="width: 100%; display: flex; justify-content: center; margin-top: 40px;">
Expand Down

0 comments on commit 7c8e213

Please sign in to comment.