This commit is contained in:
AfonsoCMSousa
2026-01-02 00:39:39 +00:00
parent bcdf542606
commit e84dd993af
11 changed files with 539 additions and 37 deletions
+6 -2
View File
@@ -51,6 +51,10 @@ const props = defineProps({
default: 3,
validator: (value) => [3, 9].includes(value),
},
isDisabled: {
type: Boolean,
default: false,
},
})
const emit = defineEmits(['card-clicked'])
@@ -81,7 +85,7 @@ const overlapPercentage = computed(() => {
return props.maxCards === 3 ? 0.7 : 0.85
})
const cardWidth = 128
const cardWidth = 128
const getCardStyle = (index) => {
const totalCards = props.cards.length
const overlapOffset = cardWidth * (1 - overlapPercentage.value)
@@ -105,4 +109,4 @@ const getCardStyle = (index) => {
zIndex: hoveredIndex.value === index ? 50 : index + 1,
}
}
</script>
</script>