See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
<script setup> | |
defineProps({ | |
show: Boolean | |
}); | |
</script> | |
<template> | |
<div v-if="show" class="modal-mask"> | |
<div class="modal-container"> | |
<div> |
import { unrefElement, useEventListener } from '@vueuse/core' | |
const defaultWindow = typeof window !== 'undefined' ? window : undefined | |
/** | |
* Listen for clicks outside of an element. | |
* | |
* @see https://vueuse.org/onClickOutside | |
* @param target | |
* @param handler |