From b60c033f95a5360b4d17e54d65f93c8e7946d2bc Mon Sep 17 00:00:00 2001 From: elizabeth011685 Date: Tue, 8 Oct 2024 16:38:22 -0600 Subject: [PATCH] Add defineExpose to Treeselect component Integrated defineExpose to the Treeselect component to expose the clear method. This change facilitates external access to the method, improving component flexibility and reusability. --- src/components/Treeselect.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Treeselect.vue b/src/components/Treeselect.vue index 31a2f38..add205c 100644 --- a/src/components/Treeselect.vue +++ b/src/components/Treeselect.vue @@ -1936,6 +1936,8 @@ const handleRemoteSearch = () => { }) }; +defineExpose({clear}) + /** Methods END*/ /** Watch */