From 69d97607a04ab4c3f1b1b09bc914e812a7b7b711 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 10 Nov 2025 14:55:32 +0100 Subject: [PATCH 01/15] fix(CommandPalette/ContentSearch): improve performances --- src/runtime/components/CommandPalette.vue | 77 ++++++---- src/runtime/components/DashboardSearch.vue | 19 ++- .../components/content/ContentSearch.vue | 131 +++++++++++------- 3 files changed, 139 insertions(+), 88 deletions(-) diff --git a/src/runtime/components/CommandPalette.vue b/src/runtime/components/CommandPalette.vue index 11b16ff5dd..17c1fb7d10 100644 --- a/src/runtime/components/CommandPalette.vue +++ b/src/runtime/components/CommandPalette.vue @@ -155,6 +155,11 @@ export interface CommandPaletteProps = CommandP */ estimateSize?: number } + /** + * Debounce time in milliseconds for search input to improve performance with large datasets. + * @defaultValue 0 + */ + debounce?: number /** * The key used to get the label from the item. * @defaultValue 'label' @@ -196,10 +201,10 @@ export type CommandPaletteSlots = CommandPalett