<!--搜索与重置-->
<template>
  <span>
    <!-- <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="crud.toQuery">搜索</el-button>
    <el-button v-if="crud.optShow.reset" class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left" @click="crud.resetQuery()">重置</el-button>
    -->
    <el-dropdown split-button type="primary" class="filter-item" @click="crud.toQuery">
      <i class="el-icon-search el-icon--left" />{{ $t('common.Query') }}
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item icon="el-icon-zoom-out" @click.native="crud.resetQuery()">{{ $t('common.Reset') }}</el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>

  </span>
</template>
<script>
import { crud } from '@crud/crud'
export default {
  mixins: [crud()],
  props: {
    itemClass: {
      type: String,
      required: false,
      default: ''
    }
  }
}
</script>
