From 3716e7f74cde6e1aa2753074eecfc37715214277 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Thu, 11 Apr 2024 17:11:48 +0800 Subject: [PATCH] fix: expose toggleContent for it was a method --- packages/client/src/components/MkContainer.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/MkContainer.vue b/packages/client/src/components/MkContainer.vue index dfc5ec26ba..e933b02dbf 100644 --- a/packages/client/src/components/MkContainer.vue +++ b/packages/client/src/components/MkContainer.vue @@ -94,7 +94,6 @@ const el = ref(null); const header = ref(null); const content = ref(null); -// FIXME: This function is not used, why? function toggleContent(show: boolean) { if (!props.foldable) return; showBody.value = show; @@ -158,6 +157,14 @@ onMounted(() => { calcOmit(); }).observe(content.value!); }); + +defineExpose({ + toggleContent, + enter, + afterEnter, + leave, + afterLeave, +});