<template>
  <div class="page">
    <el-form :model="headerForm" ref="headerForm" label-width="100px" size="mini">
      <el-form-item label="输入题名：" style="width:300px">
        <el-input v-model="headerForm.codeAndFond" placeholder="请输入题名" clearable></el-input>
      </el-form-item>
      <el-form-item label="输入档号：" style="width:300px">
        <el-input v-model="headerForm.codeAndFond" placeholder="请输入档号" clearable></el-input>
      </el-form-item>
      <el-form-item label="创建时间：" style="width:300px">
        <el-input v-model="headerForm.codeAndFond" placeholder="请输入时间" clearable></el-input>
      </el-form-item>
      <div class="btn">
        <el-button type="primary" size="mini" @click="searchClick"><i class="iconfont icon-sousuo"></i>查询</el-button>
        <el-button type="info" size="mini" @click="resetClick"><i class="iconfont icon-sousuo"></i>重置</el-button>
      </div>
    </el-form>
  </div>
</template>

<script>
  export default {
    data() {
      return {};
    },
    props: {
      headerForm: {
        type: Object,
        default: () => {},
      },
    },
    methods: {
      searchClick() {
        this.$emit("searchClick");
      },
      resetClick() {
        this.$emit("resetClick");
      }
    },
  };

</script>

<style lang="scss" scoped>
  .page {
    width: 100%;
    background-color: #fff;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;

    .el-form {
      display: flex;
      flex-wrap: wrap;

      .el-form-item {
        margin-bottom: 10px;
      }

      .btn {
        margin-left: 10px;
      }
    }
  }

</style>
