From 3d3e7f45086799fdd7a412e2079710a6cdf8dc2b Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 24 十月 2024 08:30:04 +0800
Subject: [PATCH] Merge branch 'lsf-dataproduct-1018'

---
 src/components/search-option/FYSearchBar.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/components/search-option/FYSearchBar.vue b/src/components/search-option/FYSearchBar.vue
index fc96c81..e968e58 100644
--- a/src/components/search-option/FYSearchBar.vue
+++ b/src/components/search-option/FYSearchBar.vue
@@ -1,8 +1,15 @@
 <template>
-  <el-form :inline="true">
+  <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-button
+        icon="Search"
+        type="primary"
+        :loading="loading"
+        @click="search"
+        @kekeyup.enter="search"
+        >{{ btnText }}</el-button
+      >
       <slot name="buttons"></slot>
     </el-form-item>
   </el-form>
@@ -11,6 +18,10 @@
 <script>
 export default {
   props: {
+    size: {
+      type: String,
+      default: 'default'
+    },
     btnText: {
       type: String,
       default: '鏌ヨ'

--
Gitblit v1.9.3