Open kwatman opened 1 year ago
@chakAs3 Any thoughts on this source snippet bug for Vue3? You added the feature in 7.0 right?
I have same problem
@ksarfaks87 @kwatman @shilman, I have a PR, that addresses all source snippet issues. I'm finishing it to be in next prelease !!
@ksarfaks87 @kwatman meanwhile please checkout it repo https://github.com/storybookjs/vue3-code-examples, i try add your story and check the source block, if it is ok for you. let me know
thats ok for me
thats ok for me
Cool, This was available long time ago, we had to merge some other PRs before, It will be available soon
I finally got the time to check out your repository. whenever i try to run it i get the following error:
X [ERROR] Could not resolve "./chunk-BC6D4WSH.mjs"
node_modules/@storybook/vue3/dist/index.mjs:6:7:
6 │ } from "./chunk-BC6D4WSH.mjs";
I have similar problem at 7.0.12 with vue 2 and 3
My story
export const ExampleAdvanced = {
render: (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { XTooltip, XButton },
template: `
<XTooltip v-bind="$props" >
{{$props.default}}
<template #actions>
<XButton inverted design="link">Botão link</XButton>
<XButton inverted>Botão padrão</XButton>
</template>
</XTooltip>`,
}),
args: {
advanced: true,
title: 'Texto do tÃtulo',
imageSrc: faker.image.url({ width: 280, height: 168 }),
default: faker.lorem.paragraphs(2),
},
};
What storybook show:
<template>
<XTooltip
advanced
title="Texto do tÃtulo"
image-src="https://loremflickr.com/280/168?lock=4311158372696064"
default="Ipsum in illum suscipit optio hic in. Dolorum laudantium accusamus accusantium eos quaerat quisquam. Cumque asperiores dolore molestias perferendis assumenda tempore unde rerum.
Eum dolorum doloremque quis. Vitae dolorem iure labore in officia dolore. Repellat necessitatibus non magni."
/>
</template>
What I expected:
<template>
<XTooltip
advanced
title="Texto do tÃtulo"
image-src="https://loremflickr.com/280/168?lock=4311158372696064"
default="Ipsum in illum suscipit optio hic in. Dolorum laudantium accusamus accusantium eos quaerat quisquam. Cumque asperiores dolore molestias perferendis assumenda tempore unde rerum.
Eum dolorum doloremque quis. Vitae dolorem iure labore in officia dolore. Repellat necessitatibus non magni."
>
<XButton inverted design="link">Botão link</XButton>
<XButton inverted>Botão padrão</XButton>
</XTooltip>
</template>
+1 autodocs failed to properly collect defined events and slots in vue2
Describe the bug
I have the following vue component:
For this component i created the following story
when i open the code example for the withcontent story it shows this code:
But i expected it to show this:
To Reproduce
No response
System
Additional context
No response