<template>
  <AppCard :title="title">
    <template #header-aside><nuxt-link :to="baseUrl" v-if="baseUrl">查看更多+</nuxt-link></template>
    <div class="project-list">
      <div class="project-item" v-for="(item, index) in list" :key="index">
        <AppLink :data="item"><img :src="item.imgUrl"/></AppLink>
      </div>
    </div>
  </AppCard>
</template>
<script>
import AppCard from '@/components/Card.vue'
import AppLink from '@/components/Link.vue'

export default {
  name: 'ProjectCard',
  props: { list: { type: Array, default: () => [] }, title: String, baseUrl: String },
  components: { AppCard, AppLink },
  data() {
    return {}
  }
}
</script>

<style lang="scss">
.project-item {
  margin-top: 0.1rem;
  img {
    width: 100%;
  }
}
</style>
