From c6aa0cf84f9471d6ae84186388527c756030fc0e Mon Sep 17 00:00:00 2001 From: rarnu Date: Sat, 9 May 2026 15:51:13 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8D=20ORDER=20BY=20watch=20?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=95=B0=E7=BB=84=202.=20WHERE=20/=20ORDER?= =?UTF-8?q?=20BY=20=E8=BE=93=E5=85=A5=E6=A1=86=20@blur=20=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/grid/DataGrid.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index 941e392022..17072dc0cd 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -512,7 +512,7 @@ watch(orderByInput, (val) => { const trimmed = val.trim(); if (trimmed.length === 0) return; const lastToken = trimmed.split(/[\s,()]+/).pop() || ""; - if (lastToken.length > 0 && !["asc", "desc", "asc", "desc"].includes(lastToken.toLowerCase())) { + if (lastToken.length > 0 && !["asc", "desc"].includes(lastToken.toLowerCase())) { const tl = lastToken.toLowerCase(); orderBySuggestions.value = props.tableMeta.columns .map((c) => c.name) @@ -1725,6 +1725,7 @@ defineExpose({ placeholder="id > 100" @keydown="onWhereFilterKeydown" @click="updateWhereSuggestionPosition" + @blur="dismissWhereSuggestions" />