cartodb-4.42/lib/assets/javascripts/new-dashboard/components/Backbone/Dialog.vue
2024-04-06 05:25:13 +00:00

39 lines
714 B
Vue

<template>
<div class="Dialog is-white">
<button class="CDB-Shape Dialog-closeBtn" @click="close">
<div class="CDB-Shape-close is-blue is-huge"></div>
</button>
<div class="Dialog-contentWrapper Dialog-contentWrapper--withHeaderWrapper">
<slot />
</div>
</div>
</template>
<script>
export default {
name: 'Dialog',
methods: {
close () {
this.$emit('close');
}
},
beforeMount () {
document.body.classList.add('u-overflow-hidden');
},
beforeDestroy () {
document.body.classList.remove('u-overflow-hidden');
}
};
</script>
<style lang="scss">
.Dialog .Dialog-header {
box-sizing: content-box;
* {
box-sizing: content-box;
}
}
</style>