liveh5-nuxt/app/components/floatingBubble/index.vue

29 lines
432 B
Vue
Raw Normal View History

<script setup>
const props=defineProps({
onClick:{
type:Function,
}
})
2025-02-20 10:53:53 +00:00
const route = useRoute()
</script>
<template>
<van-floating-bubble
2025-02-20 10:53:53 +00:00
v-if="route.path!=='/'"
axis="xy"
magnetic="x"
:offset="{ x: 300, y: 50 }"
@click="onClick"
>
回到直播
</van-floating-bubble>
</template>
<style>
.van-floating-bubble{
width: 70px;
height: 70px;
border-radius: 5px!important;
}
</style>