31 lines
614 B
Vue
31 lines
614 B
Vue
<template>
|
||
<button class="fab-plus" @click="$emit('click')">+</button>
|
||
</template>
|
||
<script setup>
|
||
defineEmits(['click']);
|
||
</script>
|
||
<style scoped lang="scss">
|
||
.fab-plus {
|
||
position: fixed;
|
||
bottom: 240rpx;
|
||
right: 48rpx;
|
||
width: 96rpx;
|
||
height: 96rpx;
|
||
border-radius: 50%;
|
||
background: rgba(40, 133, 255, 0.6);
|
||
color: #fff;
|
||
box-shadow: 0 6rpx 32rpx 0 #90c3fa;
|
||
font-size: 52rpx;
|
||
z-index: 9;
|
||
border: none;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: box-shadow .3s;
|
||
}
|
||
.fab-plus:active {
|
||
box-shadow: 0 2rpx 12rpx 0 #b1d8fc;
|
||
background:#0D5ECD;
|
||
}
|
||
</style>
|