chore: bypass pre-commit for now
This commit is contained in:
1 parent
c4ba322e32
commit
d6b8682c68
39 files changed
+1328
-477
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
import { defineProps, defineEmits, computed } from 'vue'
|
||||
import { ImgButton } from '@/components/Button'
|
||||
|
||||
const props = defineProps<{
|
||||
positions: { top: string; left: string }[]
|
||||
displayedIcons: string[]
|
||||
sideStatus: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{ (e: 'iconClick', icon: string): void }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ImgButton
|
||||
v-for="(icon, index) in props.displayedIcons"
|
||||
:key="index"
|
||||
v-show="!props.sideStatus"
|
||||
@click="emit('iconClick', icon)"
|
||||
class="absolute z-10"
|
||||
:style="{ top: props.positions[index]?.top, left: props.positions[index]?.left }"
|
||||
:image="icon"
|
||||
/>
|
||||
</template>
|
||||
Reference in new issue
Block a user