From 46566d05cb156d40323078133191595d2a2f11c4 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 10 十月 2024 17:27:04 +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