From 1e9851a8c358aff2648d279d46e56da1a6cc9e7a Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 12 May 2022 15:14:26 +0200 Subject: [PATCH] fix vue implicit render function --- app/vue/src/client/preview/config.ts | 2 +- app/vue/src/client/preview/render.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vue/src/client/preview/config.ts b/app/vue/src/client/preview/config.ts index 964f711b2d7..036f51eba18 100644 --- a/app/vue/src/client/preview/config.ts +++ b/app/vue/src/client/preview/config.ts @@ -1,4 +1,4 @@ -export { renderToDOM } from './render'; +export { render, renderToDOM } from './render'; export { decorateStory } from './decorateStory'; export const parameters = { framework: 'vue' }; diff --git a/app/vue/src/client/preview/render.ts b/app/vue/src/client/preview/render.ts index 293d5e423af..86eeb400161 100644 --- a/app/vue/src/client/preview/render.ts +++ b/app/vue/src/client/preview/render.ts @@ -49,7 +49,7 @@ export const render: ArgsStoryFn = (props, context) => { } return { - props: component.props, + props, components: { [componentName]: component }, template: `<${componentName} v-bind="$props" />`, };