2 changed files with 44 additions and 4 deletions
@ -0,0 +1,38 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<a-modal |
||||
|
:footer="null" |
||||
|
:title="profile.title" |
||||
|
:visible="showProfile" |
||||
|
@cancel="handleCancel" |
||||
|
@ok="handleCancel" |
||||
|
> |
||||
|
<p>{{ profile.description }}</p> |
||||
|
</a-modal> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapState, mapMutations, mapActions } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
showProfile: { |
||||
|
type: Boolean, |
||||
|
default: false, |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
data() { |
||||
|
return { ModalText: 'Content of the modal', }; |
||||
|
}, |
||||
|
|
||||
|
computed: mapState('home', ['profile']), |
||||
|
|
||||
|
methods: { |
||||
|
handleCancel(e) { |
||||
|
this.$emit('closeProfile'); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
Loading…
Reference in new issue