forked from vuestorefront/vue-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vuestorefront#2913 Improved Size Guide feature
- Loading branch information
1 parent
962e187
commit 56f7eaf
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
src/themes/default/components/core/blocks/Product/SizeGuide.vue
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<modal name="modal-sizeguide" :width="620"> | ||
<div slot="header"> | ||
{{ $t('Size Guide') }} | ||
</div> | ||
<div slot="content"> <SizeGuideContent /> </div> | ||
</modal> | ||
</template> | ||
|
||
<script> | ||
import { mapState } from 'vuex' | ||
import Modal from 'theme/components/core/Modal' | ||
import SizeGuideContent from 'theme/components/theme/blocks/Static/Example' | ||
export default { | ||
name: 'SizeGuide', | ||
computed: { | ||
...mapState({ | ||
activeElem: state => state.ui.authElem | ||
}) | ||
}, | ||
components: { | ||
Modal, | ||
SizeGuideContent | ||
}, | ||
methods: { | ||
close (e) { | ||
if (e) localStorage.removeItem('redirect') | ||
this.$bus.$emit('modal-hide', 'modal-sizeguide') | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.modal { | ||
font-size: 18px; | ||
} | ||
.modal-content { | ||
max-height: 80%; | ||
} | ||
</style> |
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
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