<template>
  <div class="page">
    <el-form :model="search" ref="headerForm" label-width="70px" size="mini">
      <el-form-item label="题名：">
        <el-input clearable v-model="search.name" placeholder="请输入内容"></el-input>
      </el-form-item>
      <!--<el-form-item label="公告时间：">
        <el-date-picker v-model="search.time" type="daterange" range-separator="至" start-placeholder="开始日期"
          end-placeholder="结束日期"   >
        </el-date-picker>
      </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>
