<script setup>
import { defineEmits } from 'vue';

defineEmits(['refresh']);
</script>

<template>
  <el-tooltip class="refresh-btn shadow-md" effect="dark" content="刷新" placement="top-start">
    <el-button type="primary" icon="el-icon-refresh" circle @click="$emit('refresh')"></el-button>
  </el-tooltip>
</template>

<style scoped>
.refresh-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
}
</style>
