From fa4929cd63f25a78ea1189fdfc862223de4d9363 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:31:07 +0800 Subject: [PATCH] perf: add reset handle for all content components --- frontend/src/components/content_value/ContentValueHash.vue | 6 ++++++ frontend/src/components/content_value/ContentValueList.vue | 6 ++++++ frontend/src/components/content_value/ContentValueSet.vue | 6 ++++++ .../src/components/content_value/ContentValueStream.vue | 6 ++++++ .../src/components/content_value/ContentValueWrapper.vue | 7 ++++++- frontend/src/components/content_value/ContentValueZSet.vue | 6 ++++++ 6 files changed, 36 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/content_value/ContentValueHash.vue b/frontend/src/components/content_value/ContentValueHash.vue index 06d3417..9d91a23 100644 --- a/frontend/src/components/content_value/ContentValueHash.vue +++ b/frontend/src/components/content_value/ContentValueHash.vue @@ -261,6 +261,12 @@ const onUpdateFilter = (filters, sourceColumn) => { break } } + +defineExpose({ + reset: () => { + clearFilter() + }, +})