<!--搜索与重置-->
<template>
  <el-button-group class="button-group">
    <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="crud.toQuery">查询</el-button>
    <el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left" @click="resetQuery()">重置</el-button>
  </el-button-group>
</template>
<script>
import { crud } from '@crud/crud'
export default {
  mixins: [crud()],
  props: {
    itemClass: {
      type: String,
      required: false,
      default: ''
    }
  },
  methods: {
    resetQuery() {
      this.crud.resetQuery()
    }
  }
}
</script>
<style scoped>
.button-group.el-button +.el-button {
  margin-left: 10px;
}
</style>
