Skip to content

Commit

Permalink
fix: ProseCode class attribute warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby169 authored Jun 26, 2023
1 parent cb653b2 commit 3181538
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/runtime/components/Prose/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ export default defineComponent({
meta: {
type: String,
default: null
},
class: {
type: String,
default: "",
}
}
})
</script>

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

<style>
Expand Down

0 comments on commit 3181538

Please sign in to comment.