From 5a6a165a8dffa736586289ca1bc5dd54b01ae34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 11 Dec 2024 12:43:48 +0100 Subject: [PATCH] docs(ComponentExample): add overflow hidden and props as search params --- docs/app/components/content/ComponentExample.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue index b9f4691a..a03664fa 100644 --- a/docs/app/components/content/ComponentExample.vue +++ b/docs/app/components/content/ComponentExample.vue @@ -47,6 +47,10 @@ const props = withDefaults(defineProps<{ * A list of line numbers to highlight in the code block */ highlights?: number[] + /** + * Whether to add overflow-hidden to wrapper + */ + overflowHidden?: boolean }>(), { preview: true, source: true @@ -119,13 +123,13 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { return acc }, {} as Record) || {}) -const urlSearchParams = computed(() => new URLSearchParams(optionsValues.value).toString()) +const urlSearchParams = computed(() => new URLSearchParams({ ...optionsValues.value, ...componentProps }).toString())