<template>
    <div style="position:relative;" class="cursor-pointer" @click="handleClick">
        <div class="num">10</div>
        <el-icon :size="30">
            <Bell />
        </el-icon>
    </div>
</template>
<script setup>
import { Bell } from '@element-plus/icons-vue'
import Notifce from './../../../../utils/Notifce.js'

const handleClick = () => {
    Notifce.info("你有新的消息")
}

</script>


<style lang="scss" scoped>
.num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    z-index: 100;
}
</style>