Skip to content

Instantly share code, notes, and snippets.

@jahvi
Last active March 2, 2019 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahvi/dbc395fe4c554ea74868294ef6a6e8be to your computer and use it in GitHub Desktop.
Save jahvi/dbc395fe4c554ea74868294ef6a6e8be to your computer and use it in GitHub Desktop.
<template>
<div
class="product relative align-center w-100 pb20"
v-observe-visibility="visibilityChanged"
>
<wishlist-button class="wishlist-button" :product="product" />
<!-- ... -->
</div>
</template>
<script>
import rootStore from '@vue-storefront/core/store'
import { ProductTile } from '@vue-storefront/core/modules/catalog/components/ProductTile.ts'
export default {
components: {
'WishlistButton': () => import(/* webpackChunkName: "wishlistButton" */'theme/components/theme/blocks/Wishlist/AddToWishlistButton')
},
// ...
}
</script>
<style lang="scss" scoped>
// ...
.root.wishlist-button {
position: absolute;
top: 222px;
right: 12px;
z-index: 1;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment