<template>
  <el-dialog
    title="历史版本"
    :visible.sync="dialogVisible"
    width="50%"
    :before-close="handleClose"
  >
    <template>
      <el-table
        :data="tableData"
        style="width: 100%"
        stripe
        :header-cell-style="{ background: '#F7F7F7' }"
      >
        <el-table-column prop="date" label="文件名称" width="180">
        </el-table-column>
        <el-table-column prop="name" label="链接地址" width="180">
        </el-table-column>
        <el-table-column prop="address" label="创建人"> </el-table-column>
        <el-table-column prop="address" label="创建时间"> </el-table-column>
        <el-table-column prop="address" label="操作"> </el-table-column>
      </el-table>
    </template>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="dialogVisible = false">取 消</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    }
    return {
      dialogVisible: false,
      tableData: Array(20).fill(item)
    }
  },
  methods: {
    handleClose() {
      this.dialogVisible = false
    },
    openClose() {
      this.dialogVisible = true
    }
  }
}
</script>