<template>
  <div class="page">
    <el-form :model="search" ref="headerForm" label-width="100px" size="mini">
      <el-form-item label="档案盒名称：" style="width:300px">
        <el-input v-model="search.boxName" 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>
      </div>
    </el-form>
  </div>
</template>

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

</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>
