feat(theme): export VPImage (#2814)

pull/2818/head
Kleis Auke Wolthuizen 1 year ago committed by GitHub
parent 41ab96a269
commit f242140c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,7 @@ import Layout from './Layout.vue'
// Note: if we add more optional components here, i.e. components that are not // 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 // used in the theme by default unless the user imports them, make sure to update
// the `lazyDefaultThemeComponentsRE` regex in src/node/build/bundle.ts. // 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 VPButton } from './components/VPButton.vue'
export { default as VPHomeHero } from './components/VPHomeHero.vue' export { default as VPHomeHero } from './components/VPHomeHero.vue'
export { default as VPHomeFeatures } from './components/VPHomeFeatures.vue' export { default as VPHomeFeatures } from './components/VPHomeFeatures.vue'

1
theme.d.ts vendored

@ -3,6 +3,7 @@ import type { DefineComponent } from 'vue'
import { EnhanceAppContext } from './dist/client/index.js' import { EnhanceAppContext } from './dist/client/index.js'
// TODO: add props for these // TODO: add props for these
export const VPImage: DefineComponent
export const VPButton: DefineComponent export const VPButton: DefineComponent
export const VPHomeHero: DefineComponent export const VPHomeHero: DefineComponent
export const VPHomeFeatures: DefineComponent export const VPHomeFeatures: DefineComponent

Loading…
Cancel
Save