<template>
  <el-table :data="table" style="width: 100%" :header-cell-style="{background:'#F6F6F6',color:'#646A73'}">
    <el-table-column prop="ProdCname" label="产品类型" align="center"/>
    <el-table-column prop="brandName" label="品牌" align="center"/>
    <el-table-column prop="Model" label="型号" align="center"/>
    <el-table-column label="管理" align="center">
      <template slot-scope="scope">
        <el-button
          type="text"
          @click="handleEdit(scope.$index,scope.row)"
        >修改
        </el-button>
        <el-button
          type="text"
          @click="handleDelete(scope.$index,scope.row)"
        >删除
        </el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
  export default {
    name: "detailTable",
    props:['table'],
    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
      }
    },
    methods: {
      handleEdit(index, row) {

      },
      handleDelete(index, row) {

      }
    }
  }
</script>

<style scoped>

</style>
