From 9fb3bd3b8deabac7aa07518719623e8fd7c29bb0 Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Thu, 25 Jul 2024 15:04:32 +0700 Subject: [PATCH] Fix: warning missing component in IndexTableBase --- docs/.vitepress/theme/use/useMeta.ts | 2 -- src/components/IndexTable/IndexTableBase.vue | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/theme/use/useMeta.ts b/docs/.vitepress/theme/use/useMeta.ts index 2f55b50e..6e655392 100644 --- a/docs/.vitepress/theme/use/useMeta.ts +++ b/docs/.vitepress/theme/use/useMeta.ts @@ -85,8 +85,6 @@ export function useMeta(ignoreFetch = false) { // String if (types[0].startsWith('string')) { - console.log(types[0]); - return [types[0]]; } diff --git a/src/components/IndexTable/IndexTableBase.vue b/src/components/IndexTable/IndexTableBase.vue index f2965670..99efc219 100644 --- a/src/components/IndexTable/IndexTableBase.vue +++ b/src/components/IndexTable/IndexTableBase.vue @@ -28,11 +28,14 @@ div(:class="styles.IndexTable") ) component(:is="loadingMarkup") div(:class="styles.StickyTableHeadings", ref="stickyHeaderElement") - component( + template( v-for="heading, index in headings", :key="getHeadingKey(heading)", - :is="renderHeading(heading, index, 'div', { 'data-index-table-sticky-heading': true })", ) + component( + v-for="headingEl in renderHeading(heading, index, 'div', { 'data-index-table-sticky-heading': true })", + :is="headingEl", + ) component( v-if="!condensed",