<template>
  <template v-if="itemSlot.style !== '固定'">
  <tr
    v-if="itemSlot.slotIndex !== undefined"
    :key="itemSlot.slotName + indexSlot + Math.floor(Math.random() * 100000) + 1"
  >
    <td rowspan="7" colspan="2">{{ itemSlot.slotIndex }}</td>
    <td rowspan="7" colspan="2">{{ itemSlot.slotName }}</td>
  </tr>
  <tr v-else :key="itemSlot.slotName + indexSlot + Math.floor(Math.random() * 100000) + 1">
    <td :rowspan="7" colspan="4">{{ itemSlot.slotName }}</td>
  </tr>
  <template
    v-for="(itemChild, indexChild) in itemSlot.childrenList"
    :key="itemSlot.slotName + indexSlot + indexChild + Math.floor(Math.random() * 100000) + 1"
  >
    <tr v-if="indexChild <= 2">
      <td colspan="2">{{ itemChild.detailName }}</td>
      <td colspan="2">{{ itemChild.ask }}</td>
      <td colspan="3">{{ itemChild.paramValue }}</td>
    </tr>
    <tr
      v-else
      :key="itemSlot.slotName + indexSlot + indexChild + Math.floor(Math.random() * 100000) + 1"
    >
      <td colspan="2">{{ itemChild.detailName }}</td>
      <td colspan="5">{{ itemChild.paramValue }}</td>
    </tr>
  </template>
</template>
<template v-else>
  <!-- 第1行 -->
  <tr>
    <td rowspan="6"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <!-- 第2行 -->
  <tr>
    <td></td>
    <td colspan="2"></td>
    
  </tr>
  <!-- 第3行 -->
  <tr>
    <td></td>
   <td colspan="2"></td>
  </tr>
  <tr>
    <td></td>
   <td colspan="2"></td>
  </tr>
  <tr>
    <td></td>
    <td colspan="2"></td>
  </tr>
 </template>
</template>
<script>
export default {
  props: {
    itemSlot: {
      type: Object,
      default: () => {},
    },
    indexSlot: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
</style>