Skip to content

Instantly share code, notes, and snippets.

@bingliangchan
Last active August 27, 2021 05:20
Show Gist options
  • Save bingliangchan/1806120316468a152d36f44f73148b77 to your computer and use it in GitHub Desktop.
Save bingliangchan/1806120316468a152d36f44f73148b77 to your computer and use it in GitHub Desktop.
Vue Component
<template src="./MenuSideBar.html"></template>
<style src="./MenuSideBar.css"></style>
<script>
import { mapGetters, mapActions } from 'vuex';
import { isNullOruUndefined } from '../../utilities/util';
export default {
name: 'MenuSideBar',
props: {
msg: String,
},
mounted() {
this.isLoaded = true;
},
data() {
return {
isLoaded: false,
};
},
computed: {
...mapGetters({
shopinfo: 'shopinfo',
}),
},
methods: {
...mapActions(['updateCustomerAction']),
showCartBox() {
this.$root.$emit('showcart');
}
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment