diff --git a/docs/app/components/content/ComponentCode.vue b/docs/app/components/content/ComponentCode.vue index d74853dd..880215be 100644 --- a/docs/app/components/content/ComponentCode.vue +++ b/docs/app/components/content/ComponentCode.vue @@ -101,7 +101,7 @@ const code = computed(() => { return code }) -const { data: ast } = await useAsyncData(`${name}-code-${JSON.stringify({ props: componentProps, slots: props.slots })}`, async () => { +const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringify({ props: componentProps, slots: props.slots })}`, async () => { let formatted = '' try { formatted = await $prettier.format(code.value) diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue new file mode 100644 index 00000000..e3146355 --- /dev/null +++ b/docs/app/components/content/ComponentExample.vue @@ -0,0 +1,26 @@ + + + diff --git a/docs/app/components/content/ComponentTheme.vue b/docs/app/components/content/ComponentTheme.vue index fe689429..ce05034c 100644 --- a/docs/app/components/content/ComponentTheme.vue +++ b/docs/app/components/content/ComponentTheme.vue @@ -33,7 +33,7 @@ const component = computed(() => { return stripCompoundVariants(component) }) -const { data: ast } = await useAsyncData(`${name}-theme`, () => parseMarkdown(` +const { data: ast } = await useAsyncData(`component-theme-${name}`, () => parseMarkdown(` \`\`\`yml ${json5.stringify(component.value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')} \`\`\`\ diff --git a/docs/app/components/content/HighlightInlineType.vue b/docs/app/components/content/HighlightInlineType.vue index b63e852f..cff1b634 100644 --- a/docs/app/components/content/HighlightInlineType.vue +++ b/docs/app/components/content/HighlightInlineType.vue @@ -14,7 +14,7 @@ const type = computed(() => { return props.type }) -const { data: ast } = await useAsyncData(`hightlight-inline-code-` + props.type, () => parseMarkdown(`\`${type.value}\`{lang="ts-type"}`)) +const { data: ast } = await useAsyncData(`hightlight-inline-code-${props.type}`, () => parseMarkdown(`\`${type.value}\`{lang="ts-type"}`))