run prettier
This commit is contained in:
@@ -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 }
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user