From 70d433e59a8eab5f7ae783f62477f92585615f8a Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 6 Sep 2024 00:37:53 +0200 Subject: [PATCH] docs: use defineProps deconstruction --- docs/.vitepress/components/Banner.vue | 2 +- .../components/api-docs/method-parameters.vue | 17 +++--- .../.vitepress/components/api-docs/method.vue | 57 +++++++++++-------- 3 files changed, 44 insertions(+), 32 deletions(-) diff --git a/docs/.vitepress/components/Banner.vue b/docs/.vitepress/components/Banner.vue index 9eea81c9c8f..903682ef620 100644 --- a/docs/.vitepress/components/Banner.vue +++ b/docs/.vitepress/components/Banner.vue @@ -2,7 +2,7 @@ import { useElementSize } from '@vueuse/core'; import { ref, watchEffect } from 'vue'; -defineProps<{ +const { version } = defineProps<{ version: string; }>(); diff --git a/docs/.vitepress/components/api-docs/method-parameters.vue b/docs/.vitepress/components/api-docs/method-parameters.vue index 7b14133d1f5..ebee96d5ed7 100644 --- a/docs/.vitepress/components/api-docs/method-parameters.vue +++ b/docs/.vitepress/components/api-docs/method-parameters.vue @@ -1,7 +1,7 @@