From f9a22595be51813a8451526ff53bce4c3658613b Mon Sep 17 00:00:00 2001 From: ITLDG Date: Thu, 10 Apr 2025 16:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=90=8E=E9=87=8D=E6=96=B0=E8=B0=83=E6=95=B4?= =?UTF-8?q?uTools=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quickcommandUI/SelectList.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/quickcommandUI/SelectList.vue b/src/components/quickcommandUI/SelectList.vue index 27dd9d3..c662f2e 100644 --- a/src/components/quickcommandUI/SelectList.vue +++ b/src/components/quickcommandUI/SelectList.vue @@ -114,9 +114,13 @@ export default { return this.items.filter((x) => { if (this.is.json) { - const titleMatch = window.pinyinMatch.match(x.title, this.searchWords); + const titleMatch = window.pinyinMatch.match( + x.title, + this.searchWords + ); const descMatch = - x.description && window.pinyinMatch.match(x.description, this.searchWords); + x.description && + window.pinyinMatch.match(x.description, this.searchWords); return titleMatch || descMatch; } else { return window.pinyinMatch.match(x, this.searchWords); @@ -212,6 +216,7 @@ export default { this.searchWords = text; if (this.matchedItems.length < this.currentIndex + 1) this.currentIndex = 0; + this.setUtoolsHeight(this.itemHeight * this.matchedItemsSize); }, this.options.options.placeholder); },