docs(ComponentCode): handle metas for prose components

This commit is contained in:
Benjamin Canac
2025-01-09 11:02:29 +01:00
parent 30ba53e20b
commit af736b0c6a

View File

@@ -85,7 +85,7 @@ const route = useRoute()
const { $prettier } = useNuxtApp()
const camelName = camelCase(props.slug ?? route.params.slug?.[route.params.slug.length - 1] ?? '')
const name = `U${upperFirst(camelName)}`
const name = `${props.prose ? 'Prose' : 'U'}${upperFirst(camelName)}`
const component = defineAsyncComponent(() => {
if (props.pro) {
if (props.prefix) {