<template>
  <div class="service_tab-specification" v-if="data">
    <el-table class="specification_table" :data="tableData" :border="false">
      <el-table-column width="30"></el-table-column>
      <el-table-column prop="name" label="规格" width="360"></el-table-column>
      <el-table-column prop="descript" label="规格说明"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import typeGroup from "@/components/type-group";

export default {
  components: {
    typeGroup,
  },
  props: {
    data: {
      type: Object,
      required: true,
    },
  },
  data: () => ({
    type: 1,
  }),
  computed: {
    tableData() {
      return this.data.filter(
        (item) => item.type === this.type || item.type === 3
      );
    },
  },
};
</script>

<style scoped>
.specification_header > p {
  font-size: 14px;
  color: #8890a7;
  line-height: 25px;
  margin-bottom: 10px;
}
.specification_table {
  width: 100%;
  margin-top: 20px;
}
</style>
