Last active
April 19, 2022 14:27
-
-
Save GoodNew5/fd287b8a9c25d96cbae7f93f7b84204f to your computer and use it in GitHub Desktop.
open modal
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> | |
<btn @click="openCustomModal">btn</btn> | |
</div> | |
</template> | |
<script> | |
import Btn from '@/common-components/btn' | |
import { mapActions } from 'vuex' | |
export default { | |
name: 'bonuses-cashback', | |
components: { | |
Btn | |
}, | |
methods: { | |
...mapActions('modal', { openModal: 'open' }), | |
openCustomModal() { | |
this.openModal({ | |
name: 'bonuses-modal', | |
props: {}, | |
component: () => import(/* webpackChunkName: "bonuses-modal" */ '@/components/kek') | |
}) | |
} | |
} | |
} | |
</script> | |
<style src="./style.scss" lang="scss" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment