hn-hlw-app/components/refresh-icon.vue

40 lines
779 B
Vue
Raw Normal View History

2026-07-27 11:26:39 +08:00
<template>
<view class="refresh-container" @click="refresh()">
<image class="refresh-icon" src="/static/refresh.svg" />
<text class="refresh-text">刷新</text>
</view>
</template>
<script setup>
const emits = defineEmits(['refresh'])
function refresh() {
emits('refresh')
}
</script>
<style lang="scss" scoped>
.refresh-container {
position: fixed;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
right: 40rpx;
bottom: 50rpx;
width: 130rpx;
height: 130rpx;
background: #fff;
border-radius: 50%;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3)
}
.refresh-icon {
width: 50rpx;
height: 50rpx;
margin-bottom: 4rpx;
}
.refresh-text{
font-size: 24rpx;
color: #7d451a;
text-align: center;
}
</style>