From 4fbdf4c6b13d19b9be54900b5dcff29e2ca7ef01 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 24 六月 2025 17:31:45 +0800 Subject: [PATCH] 巡查单据自动下载功能(待完成) --- 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