<template>
  <div>
    <el-button :type="position == 'detail' ? 'primary' : 'text'" :size="size || 'mini'" @click="drawer=true">报 表</el-button>
    <el-drawer
    :visible.sync="drawer"
    :with-header="false"
    direction="rtl"
    size="50%"
    append-to-body>
    <div class="detail__panel container">
      <p class="normal-title" style="margin-bottom:16px">报表数据</p>
      <el-table
        :data="data"
        height="250"
        border
        style="width: 100%">
        <el-table-column
          prop="name"
          label="报表名称">
        </el-table-column>
        <el-table-column
          prop="operation"
          label="操作"
          width="150px">
          <template slot-scope="scope">
            <slot name="print" :data="scope.row"></slot>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </el-drawer>
  </div>
</template>

<script>
export default {
  props:['data','position','size'],
  name: '',
  data() {
    return {
      drawer:false,
    };
  },
  created () {

  },
  computed:{
  },
  watch:{
  },
  methods: {},
};
</script>

<style scoped>

</style>
