Skip to content

Instantly share code, notes, and snippets.

@GoodNew5
Last active April 19, 2022 14:27
Show Gist options
  • Save GoodNew5/fd287b8a9c25d96cbae7f93f7b84204f to your computer and use it in GitHub Desktop.
Save GoodNew5/fd287b8a9c25d96cbae7f93f7b84204f to your computer and use it in GitHub Desktop.
open modal
<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