<template>
  <view class="tile-grid">
    <view class="tile-item" v-for="(item, index) in tileCount" :key="index">
      <image :src="tileImage" mode="aspectFit" class="tile-image"></image>
    </view>
  </view>
</template>

<script>
export default {
  name: 'TileGrid',
  props: {
    // 瓦片数量
    tileCount: {
      type: Number,
      default: 10
    },
    // 瓦片图片URL
    tileImage: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.tile-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.tile-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tile-image {
  width: 75rpx;
  height: 48rpx;
}
</style> 