2022-12-06 19:27:38 +08:00
|
|
|
<template>
|
|
|
|
<div class="w-full min-h-0 bg-white dark:bg-regal-dark pl-5 pt-5 pr-5 rounded-lg">
|
|
|
|
<el-form :inline="true">
|
|
|
|
<slot name="body" />
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" @click="search()">
|
2023-02-20 14:41:26 +08:00
|
|
|
<Icon name="magnifying-glass" className="w-4 h-4 mr-1 -ml-1" />
|
2022-12-06 19:27:38 +08:00
|
|
|
搜索
|
|
|
|
</el-button>
|
|
|
|
<el-button @click="reset()">
|
2023-02-20 14:41:26 +08:00
|
|
|
<Icon name="arrow-path" className="w-4 h-4 mr-1 -ml-1" />
|
2022-12-06 19:27:38 +08:00
|
|
|
重置
|
|
|
|
</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
defineProps({
|
|
|
|
search: {
|
|
|
|
type: Function,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
reset: {
|
|
|
|
type: Function,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|