1234567891011121314151617181920212223242526272829 |
- <template>
- <div class="exit fun-ctrl" @click="onClick">
- <ui-icon type="close" />
- </div>
- </template>
- <script setup lang="ts">
- defineProps<{ onClick: () => void }>();
- </script>
- <style lang="scss" scoped>
- .exit {
- position: absolute;
- top: 20px;
- right: 20px;
- width: 50px;
- height: 50px;
- background-color: rgba(0, 0, 0, 0.5);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 99999;
- .icon {
- font-size: 18px;
- }
- }
- </style>
|