From f09a3cea0ecd8fc25cc8097320d64b9f44699d37 Mon Sep 17 00:00:00 2001 From: snepsnepy Date: Wed, 16 Jul 2025 16:12:54 +0300 Subject: [PATCH] Added defineModel support for PreviewSwitch component and fixed small bug in ScrollRevealDemo component. --- src/components/common/PreviewSwitch.vue | 11 +-- src/demo/Animations/AnimatedContentDemo.vue | 54 ++----------- src/demo/Animations/FadeContentDemo.vue | 40 +++------- src/demo/Animations/MagnetDemo.vue | 21 +----- src/demo/Animations/MetaBallsDemo.vue | 53 ++----------- src/demo/Backgrounds/IridescenceDemo.vue | 14 +--- src/demo/Backgrounds/LetterGlitchDemo.vue | 29 +------ src/demo/Backgrounds/ParticlesDemo.vue | 18 +---- src/demo/Components/CardSwapDemo.vue | 2 +- src/demo/Components/CarouselDemo.vue | 22 +++--- src/demo/Components/MasonryDemo.vue | 15 +++- src/demo/Components/ProfileCardDemo.vue | 6 +- src/demo/Components/StackDemo.vue | 28 ++----- src/demo/TextAnimations/BlurTextDemo.vue | 26 +------ src/demo/TextAnimations/CurvedLoopDemo.vue | 28 +------ src/demo/TextAnimations/DecryptedTextDemo.vue | 13 +++- src/demo/TextAnimations/FuzzyTextDemo.vue | 29 +------ src/demo/TextAnimations/ScrollRevealDemo.vue | 26 +++---- src/demo/TextAnimations/SplitTextDemo.vue | 11 ++- src/demo/TextAnimations/TextCursorDemo.vue | 10 +-- src/demo/TextAnimations/TextPressureDemo.vue | 75 ++++--------------- src/demo/TextAnimations/TrueFocusDemo.vue | 4 +- 22 files changed, 133 insertions(+), 402 deletions(-) diff --git a/src/components/common/PreviewSwitch.vue b/src/components/common/PreviewSwitch.vue index 2f2fb13..6b97b92 100644 --- a/src/components/common/PreviewSwitch.vue +++ b/src/components/common/PreviewSwitch.vue @@ -2,11 +2,7 @@
{{ title }} - +
@@ -15,13 +11,10 @@ import ToggleSwitch from 'primevue/toggleswitch'; defineProps<{ title: string; - modelValue: boolean; disabled?: boolean; }>(); -defineEmits<{ - 'update:modelValue': [value: boolean]; -}>(); +const model = defineModel();