From f242140c47e8a15070f689d5a4e54c7d88100f96 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Fri, 18 Aug 2023 15:57:39 +0200 Subject: [PATCH] feat(theme): export VPImage (#2814) --- src/client/theme-default/without-fonts.ts | 1 + theme.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/theme-default/without-fonts.ts b/src/client/theme-default/without-fonts.ts index 65347966e7b5..f44d72051538 100644 --- a/src/client/theme-default/without-fonts.ts +++ b/src/client/theme-default/without-fonts.ts @@ -14,6 +14,7 @@ import Layout from './Layout.vue' // Note: if we add more optional components here, i.e. components that are not // used in the theme by default unless the user imports them, make sure to update // the `lazyDefaultThemeComponentsRE` regex in src/node/build/bundle.ts. +export { default as VPImage } from './components/VPImage.vue' export { default as VPButton } from './components/VPButton.vue' export { default as VPHomeHero } from './components/VPHomeHero.vue' export { default as VPHomeFeatures } from './components/VPHomeFeatures.vue' diff --git a/theme.d.ts b/theme.d.ts index 177f5a6aa960..f11accd66497 100644 --- a/theme.d.ts +++ b/theme.d.ts @@ -3,6 +3,7 @@ import type { DefineComponent } from 'vue' import { EnhanceAppContext } from './dist/client/index.js' // TODO: add props for these +export const VPImage: DefineComponent export const VPButton: DefineComponent export const VPHomeHero: DefineComponent export const VPHomeFeatures: DefineComponent