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