<template>
    <table>
      <thead>
        <tr>
          <th>GameObject id</th>
          <th>匹配到的 WeaponTemplate</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(result, index) in matchResults" :key="index">
          <td>{{ result.goId }}</td>
          <td>{{ result.templates.length > 0 ? result.templates.join(', ') : 'None' }}</td>
        </tr>
      </tbody>
    </table>
  </template>
  
  <script setup>
  defineProps({
    matchResults: {
      type: Array,
      required: true
    }
  })
  </script>
  