<template>
  <div v-if="imgType == 'large'" :style="largePos">
    <slot name="large"></slot>
  </div>
  <slot name="small"></slot>
</template>

<script setup>
import { ref, watchEffect, computed } from "vue";
const props = defineProps({
  showType: {
    type: String,
  },
  largePos: {
    type: Object,
  },
});

const imgType = ref("small");
watchEffect(() => {
  imgType.value = props.showType;
});
</script>
