<template>
	<view class="fs-avatar-group">
		<slot></slot>
	</view>
</template>

<script setup>
import { provide, computed } from 'vue'

const props = defineProps({
	margin: {
		type: Number,
		default: '-30'
	},
	border: Boolean,
})

const marginLeft = computed(() => -props.margin + 'rpx')
provide('avatarGroup', props)
</script>

<style lang="scss" scoped>
.fs-avatar-group{
	margin-left: v-bind(marginLeft);
}
</style>