Skip to content

Commit

Permalink
multiple fragments should have a root node
Browse files Browse the repository at this point in the history
render a single root node the class prop will be automatically inherited
  • Loading branch information
bobby169 authored Jun 27, 2023
1 parent 3181538 commit a0e1fa2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/runtime/components/Prose/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ export default defineComponent({
meta: {
type: String,
default: null
},
class: {
type: String,
default: "",
}
}
})
</script>

<template>
<div :class="class">
<div>
<slot />
</div>
</template>
Expand Down

0 comments on commit a0e1fa2

Please sign in to comment.