mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-21 14:55:00 +00:00
Delete everything except the starter stuff
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
<template>
|
||||
<div class="modal">
|
||||
<div class="overlay" @click="closeModal"></div>
|
||||
<div class="modal-card">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useKeydown } from '../composition/useKeydown';
|
||||
|
||||
export default {
|
||||
setup({closeModal}){
|
||||
useKeydown([{key: 'Escape', fn: closeModal}])
|
||||
},
|
||||
props: {
|
||||
closeModal: {
|
||||
type: Function,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user