73 lines
1.2 KiB
Vue
73 lines
1.2 KiB
Vue
<template>
|
|
<div class="SimpleConfirmDialog " @click="$emit('dismiss')">
|
|
<div class="content" @click.stop="null">
|
|
<div class="item">{{ title }}</div>
|
|
<div class="footer">
|
|
<div class="cancel" @click.stop="$emit('cancel')">放弃</div>
|
|
<div class="ok" @click.stop="$emit('ok')">保存</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: "SimpleConfirmDialog",
|
|
props: {
|
|
visible: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
title: {
|
|
type: String,
|
|
default() {
|
|
return ''
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.SimpleConfirmDialog {
|
|
z-index: 10;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #000000bb;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: black;
|
|
|
|
|
|
.content {
|
|
background: white;
|
|
width: 80%;
|
|
border-radius: 2px;
|
|
box-sizing: border-box;
|
|
padding: 1.5rem 2rem;
|
|
font-size: 1.5rem;
|
|
|
|
.footer {
|
|
margin-top: 2rem;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
.cancel {
|
|
margin-right: 2.5rem;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
</style>
|