Skip to content

Commit c5e24cd

Browse files
committed
fix: corrigem passagem do nome do componente do PreviewBuilder para o PlaygroundBuilder
1 parent 038c37e commit c5e24cd

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

docs/docgen/PreviewBuilder.vue

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
<template>
2-
<PreviewContainer :withBackground>
2+
<PreviewContainer :with-background>
33
<component
4-
v-if="!$slots.container && !withTrigger"
54
:is="component"
6-
v-on="internalEvents"
5+
v-if="!$slots.container && !withTrigger"
76
v-bind="{...$attrs, ...(model || {}) }"
7+
v-on="internalEvents"
88
>
9-
<template v-for="(_, slotName) in $slots" #[slotName]="slotProps">
10-
<slot v-if="slotProps" :name="slotName" v-bind="slotProps" />
9+
<template
10+
v-for="(_, slotName) in $slots"
11+
#[slotName]="slotProps"
12+
>
13+
<slot
14+
v-if="slotProps"
15+
:name="slotName"
16+
v-bind="slotProps"
17+
/>
1118
</template>
1219
</component>
1320

@@ -21,21 +28,31 @@
2128

2229
<component
2330
:is="component"
24-
v-on="internalEvents"
2531
v-bind="{...$attrs, ...(model || {}) }"
32+
v-on="internalEvents"
2633
>
27-
<template v-for="(_, slotName) in $slots" #[slotName]="slotProps">
28-
<slot v-if="slotProps" :name="slotName" v-bind="slotProps" />
34+
<template
35+
v-for="(_, slotName) in $slots"
36+
#[slotName]="slotProps"
37+
>
38+
<slot
39+
v-if="slotProps"
40+
:name="slotName"
41+
v-bind="slotProps"
42+
/>
2943
</template>
3044
</component>
3145
</div>
3246

33-
<LogBuilder ref="logBuilderRef" :events />
47+
<LogBuilder
48+
ref="logBuilderRef"
49+
:events
50+
/>
3451
</PreviewContainer>
3552

3653
<PlaygroundBuilder
3754
v-if="!static"
38-
:component="component"
55+
:component
3956
:args="model"
4057
/>
4158
</template>
@@ -45,7 +62,6 @@ import {
4562
ref,
4663
useTemplateRef,
4764
onMounted,
48-
type Component
4965
} from 'vue';
5066
import PlaygroundBuilder from './PlaygroundBuilder.vue';
5167
import PreviewContainer from './PreviewContainer.vue';
@@ -77,5 +93,5 @@ onMounted(() => {
7793
}
7894
});
7995
80-
export type PreviewBuilderType = typeof import("./PreviewBuilder.vue")["default"];
96+
export type PreviewBuilderType = typeof import('./PreviewBuilder.vue')['default'];
8197
</script>

0 commit comments

Comments
 (0)