Last active
March 2, 2019 13:40
-
-
Save jahvi/dbc395fe4c554ea74868294ef6a6e8be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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