Skip to content

Commit e1a5eb0

Browse files
committed
chore: add reproduction in playground
1 parent befd68b commit e1a5eb0

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

playground/components/mdc/Callout.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div style="border: 1px solid #ddd; padding: 1rem;">
3+
<MDCSlot unwrap="p" />
4+
</div>
5+
</template>

playground/components/mdc/List.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<MDCSlot :use="$slots.default" unwrap="ul li" />
4+
</div>
5+
</template>

playground/pages/unwrap.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ const mdList = `
33
- Hello
44
- World
55
`
6+
7+
const mdc = `
8+
::callout
9+
This is a callout
10+
::
11+
12+
::list
13+
- Hello
14+
- World
15+
::
16+
`
617
</script>
718

819
<template>
@@ -18,5 +29,7 @@ const mdList = `
1829
<MDC unwrap="ul" :value="mdList" />
1930
<div>Unwrap `ul li`:</div>
2031
<MDC unwrap="ul li" :value="mdList" />
32+
<hr />
33+
<MDC :value="mdc" />
2134
</div>
2235
</template>

0 commit comments

Comments
 (0)