Revert "docs(ComponentCode/ComponentExample): use relative imports"

This reverts commit d75f47419d.
This commit is contained in:
Benjamin Canac
2024-11-19 15:54:51 +01:00
parent fa9f0a7e2a
commit 5deadc7096
2 changed files with 3 additions and 9 deletions

View File

@@ -43,8 +43,7 @@ const { $prettier } = useNuxtApp()
const camelName = camelCase(props.slug ?? route.params.slug?.[route.params.slug.length - 1] ?? '')
const name = `U${upperFirst(camelName)}`
const component = defineAsyncComponent(() => import(`../../../../src/runtime/components/${upperFirst(camelName)}.vue`))
const component = defineAsyncComponent(() => import(`#ui/components/${upperFirst(camelName)}.vue`))
const componentProps = reactive({ ...(props.props || {}) })
const componentEvents = reactive({