aboutsummaryrefslogtreecommitdiff
path: root/src/ui/c-modal/c-modal.vue
diff options
context:
space:
mode:
authorGravatar renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-08-21 18:27:08 +0000
committerGravatar GitHub <noreply@github.com> 2023-08-21 18:27:08 +0000
commit6ff9a01cc841b9d15c9ccaea4790746b9de2cb4b (patch)
tree01aca2b6077c897f46aa0d66078c81832078738a /src/ui/c-modal/c-modal.vue
parenta2b9b157e5b8dd725afd8ed78710bca7deb7e31d (diff)
downloadit-tools-6ff9a01cc841b9d15c9ccaea4790746b9de2cb4b.tar.gz
it-tools-6ff9a01cc841b9d15c9ccaea4790746b9de2cb4b.tar.zst
it-tools-6ff9a01cc841b9d15c9ccaea4790746b9de2cb4b.zip
chore(deps): update dependency @antfu/eslint-config to ^0.40.0 (#552)
* chore(deps): update dependency @antfu/eslint-config to ^0.40.0 * chore(deps): updated eslint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
Diffstat (limited to 'src/ui/c-modal/c-modal.vue')
-rw-r--r--src/ui/c-modal/c-modal.vue10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/c-modal/c-modal.vue b/src/ui/c-modal/c-modal.vue
index af92f01..4d032bb 100644
--- a/src/ui/c-modal/c-modal.vue
+++ b/src/ui/c-modal/c-modal.vue
@@ -1,11 +1,17 @@
<script setup lang="ts">
import { useTheme } from './c-modal.theme';
+defineOptions({
+ inheritAttrs: false,
+});
+
const props = withDefaults(defineProps<{ open?: boolean; centered?: boolean }>(), {
open: false,
centered: true,
});
+
const emit = defineEmits(['update:open']);
+
const isOpen = useVModel(props, 'open', emit, { passive: true });
const { centered } = toRefs(props);
@@ -29,10 +35,6 @@ defineExpose({
isOpen,
});
-defineOptions({
- inheritAttrs: false,
-});
-
const theme = useTheme();
const modal = ref();