You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
657 B
34 lines
657 B
<template>
|
|
<div class="questionBox">
|
|
<p class="text">{{question}}</p>
|
|
<textbtn text="yes" @click.native="callback(true)"/>
|
|
<textbtn text="no" @click.native="callback(false)"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import textbtn from '@/components/textbtn';
|
|
export default {
|
|
name: 'popupQuestion',
|
|
components: {textbtn},
|
|
props:{
|
|
question: String,
|
|
callback: Function
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.questionBox{
|
|
position: absolute;
|
|
width: auto;
|
|
background-color: #1d1d1d;
|
|
box-shadow: 6px 6px 10px #111;
|
|
border-radius: 1.5rem;
|
|
.text{
|
|
position: relative;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style> |