<template>
  <div>
    <el-form-item label-width="0">
      <el-divider class="custom-divider">明细导出设置</el-divider>
    </el-form-item>
    <el-form-item label="导出文件名称">
      <el-input v-model="optionModel.exportFileName"></el-input>
    </el-form-item>
    <el-form-item label="表格唯一名称">
      <el-input v-model="optionModel.tableRef"></el-input>
    </el-form-item>
    <el-form-item label="导出列表显示图片">
      <el-switch v-model="optionModel.showImageAtTable" @change="changeShowImageAtTable"></el-switch>
    </el-form-item>
    <!-- <el-form-item label="导出参数" label-width="150px">
      <a href="javascript:void(0);" class="a-link link-oneLind"
         @click="editEventHandler('tableExportParam', eventParams)">
        <span>{{ optionModel.tableExportParam }}</span>
        <i class="el-icon-edit"></i>
      </a>
    </el-form-item> -->
  </div>
</template>

<script>
import i18n from "../../../../utils/i18n";
import eventMixin
  from "../event-handler/eventMixin";

export default {
  name: "select-export-button-editor",
  mixins: [i18n, eventMixin],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
  },
  data() {
    return {
      eventParams: [],
    };
  },
  methods: {
    changeShowImageAtTable(val) {
      if (val) {
        let exportPageSize = this.optionModel.exportPageSize || 0;
        if (exportPageSize > 150) {
          this.optionModel.exportPageSize = 150
        }
      }
    }
  }
};
</script>

<style scoped></style>
