Sprava eventu a organizaci
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
size: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 120
|
||||
},
|
||||
src: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-avatar :size="`${size}px`">
|
||||
<span :style="`width: ${size}px; height: ${size}px; background-image: url('${src}'); background-size: cover`">
|
||||
</span>
|
||||
</q-avatar>
|
||||
</template>
|
||||
@@ -0,0 +1,27 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
avatars: {
|
||||
type: Array,
|
||||
required: true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="height: 60px">
|
||||
<q-avatar
|
||||
v-for="(avatar, idx) in avatars"
|
||||
:key="idx"
|
||||
class="overlapping"
|
||||
:style="`left: ${(idx+1) * 20}px`"
|
||||
>
|
||||
<img :src="avatar"/>
|
||||
</q-avatar>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<style lang="sass" scoped>
|
||||
.overlapping
|
||||
position: absolute
|
||||
</style>
|
||||
Reference in New Issue
Block a user