run prettier

This commit is contained in:
2023-06-02 00:04:18 +02:00
parent c984cc7a7b
commit 33f23f838d
18 changed files with 70 additions and 63 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { onClickOutside } from '@vueuse/core'
import { Haptics, ImpactStyle } from '@capacitor/haptics'
const props = withDefaults(
defineProps<{
@@ -18,7 +19,12 @@ const props = withDefaults(
const show = ref<boolean>(false)
watch(
() => props.open,
() => (show.value = props.open),
() => {
if (show.value) {
Haptics.impact({ style: ImpactStyle.Light })
}
show.value = props.open
},
{ immediate: true }
)