From 32eedf2857255cf29985ffc0cc73e75eccda39bf Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期六, 20 九月 2025 22:18:15 +0800 Subject: [PATCH] 2025.9.20 完成现场巡查基础数据产品和月度巡查简报的中间数据产品 --- src/components/search-option/FYSearchBar.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/search-option/FYSearchBar.vue b/src/components/search-option/FYSearchBar.vue index eaca995..fb3eab6 100644 --- a/src/components/search-option/FYSearchBar.vue +++ b/src/components/search-option/FYSearchBar.vue @@ -1,8 +1,15 @@ <template> <el-form :inline="true" :size="size"> <slot name="options"></slot> - <el-form-item> - <el-button icon="Search" type="primary" :loading="loading" @click="search">{{ btnText }}</el-button> + <el-form-item v-if="$slots.options"> + <el-button + icon="Search" + type="primary" + :loading="loading" + @click="search" + @kekeyup.enter="search" + >{{ btnText }}</el-button + > <slot name="buttons"></slot> </el-form-item> </el-form> -- Gitblit v1.9.3