From 58c0f11fe2f23a1be2dec768f9ac02107301a634 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 19 九月 2025 17:30:36 +0800
Subject: [PATCH] 2025.9.19 数据产品(待完成)

---
 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