search.vue 730 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="w-full min-h-0 bg-white dark:bg-regal-dark pl-5 pt-5 pr-5 rounded-lg">
  3. <el-form :inline="true">
  4. <slot name="body" />
  5. <el-form-item>
  6. <el-button type="primary" @click="search()">
  7. <Icon name="magnifying-glass" className="w-4 h-4 mr-1 -ml-1" />
  8. 搜索
  9. </el-button>
  10. <el-button @click="reset()">
  11. <Icon name="arrow-path" className="w-4 h-4 mr-1 -ml-1" />
  12. 重置
  13. </el-button>
  14. </el-form-item>
  15. </el-form>
  16. </div>
  17. </template>
  18. <script lang="ts" setup>
  19. defineProps({
  20. search: {
  21. type: Function,
  22. required: true,
  23. },
  24. reset: {
  25. type: Function,
  26. required: true,
  27. },
  28. })
  29. </script>
  30. <style scoped></style>