From d1831e7428e12b6c9968145978d627bd0c148601 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Wed, 17 Sep 2025 21:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E9=80=89=E4=B8=8D=E6=94=B6?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../materialsStation/toolsLease/codeOut.vue | 3 ++- .../uni-data-select/uni-data-select.vue | 24 +++++++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/pages/materialsStation/toolsLease/codeOut.vue b/src/pages/materialsStation/toolsLease/codeOut.vue index b3b82ef..a3e841e 100644 --- a/src/pages/materialsStation/toolsLease/codeOut.vue +++ b/src/pages/materialsStation/toolsLease/codeOut.vue @@ -115,6 +115,7 @@ :localdata="codeRange" @change="changeCode" @click="handleMaCode" + :keepOpen="true" > @@ -820,4 +821,4 @@ const ocrClick = () => { } } } - + \ No newline at end of file diff --git a/src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue b/src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue index 0a450e3..90261e4 100644 --- a/src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +++ b/src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue @@ -37,7 +37,7 @@ /> - + { - if (this.showSelector) { + // 只有当keepOpen为false时才关闭下拉框 + if (this.showSelector && !this.keepOpen) { this.showInput = false this.showSelector = false } @@ -447,4 +461,4 @@ export default { display: none; } } - + \ No newline at end of file