From e390000c9beaf0f730f04978a9533a91382479a9 Mon Sep 17 00:00:00 2001 From: my_ong <429426262@qq.com> Date: Wed, 18 Dec 2024 17:17:53 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E4=B8=8B=E6=8B=89=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stock/component/apply-form.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/stock/component/apply-form.vue b/src/views/stock/component/apply-form.vue index 85ffbd7..8cc1d55 100644 --- a/src/views/stock/component/apply-form.vue +++ b/src/views/stock/component/apply-form.vue @@ -25,6 +25,7 @@ style="width: 40%" show-search :options="options" + :filter-option="filterOption" @deselect="removeEvent($event)" @select="insertEvent($event)" > @@ -175,6 +176,10 @@ } } } + // 过滤选项 + const filterOption = (input: string, option: { label: string; value: number }) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + } // 取消选中时,删除table中的行 const removeEvent = (value: Insert) => {