<template>
  <div style="margin-top:1px;">
    <el-button type="success" plain icon="el-icon-fa-file-excel-o" @click="handleExport('excel','page')">本页</el-button>
    <el-button type="success" plain icon="el-icon-fa-file-excel-o" @click="handleExport('excel','full')">全部</el-button>
    <el-button type="danger" plain icon="el-icon-fa-file-pdf-o" @click="handleExport('excel','page')">本页</el-button>
    <el-button type="danger" plain icon="el-icon-fa-file-pdf-o" @click="handleExport('excel','full')">全部</el-button>
  </div>
</template>

<script>
export default {
  name: "export-ctrl",
  props: {},
  methods: {
    handleExport(type, mode) {
      this.$emit("export", { type, mode });
    }
  }
};
</script>

<style>
</style>
