0.2.38 • Published 5 years ago
@tiago.ethical.id/magic-sidebar v0.2.38
magic-sidebar
Usage:
<template>
<MagicSideBar
:hidden="magicSideBarHidden"
@close="handleMagicSideBarClose"
@signedIn="handleSignedIn"
@signedOut="handleSignedOut">
</MagicSideBar>
</template>
<script>
import MagicSideBar from '@tiago.ethical.id/magic-sidebar'
import '@tiago.ethical.id/magic-sidebar/dist/sidebar.css'
export default {
data: function () {
return {
magicSideBarHidden: false
}
},
components: {
MagicSideBar
},
methods: {
handleSignedIn () {
//...
},
handleSignedOut () {
// ...
},
handleMagicSideBarClose () {
this.magicSideBarHidden = true
}
}
}
</script>
##Cart
Every item added to the cart should have a choosen offering in its .offering
property.