Files
OpenIsle/frontend_nuxt/components/NewMessageContainer.vue
2025-09-07 23:49:28 +08:00

34 lines
629 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="new-message-container" :style="{ bottom: bottom + 'px' }" @click="$emit('click')">
{{ count }} 条新消息点击查看
</div>
</template>
<script setup>
const props = defineProps({
count: {
type: Number,
default: 0,
},
bottom: {
type: Number,
default: 0,
},
})
</script>
<style scoped>
.new-message-container {
position: absolute;
left: 50%;
transform: translateX(-50%);
background-color: var(--primary-color);
color: #fff;
padding: 6px 16px;
border-radius: 20px;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 50;
}
</style>