fix: renaming import
This commit is contained in:
parent
380ffe756b
commit
746bcde87a
|
|
@ -13,7 +13,7 @@ const props = withDefaults(defineProps<{
|
|||
|
||||
const Component = defineAsyncComponent({
|
||||
loadingComponent: Spinner,
|
||||
loader: () => import(`../../../src/lib/registry/default/examples/${props.name}.vue`),
|
||||
loader: () => import(`../../../src/lib/registry/default/example/${props.name}.vue`),
|
||||
timeout: 5000,
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default function (md: MarkdownRenderer) {
|
|||
|
||||
const { name, attrs } = props
|
||||
const pluginPath = dirname(__dirname)
|
||||
const srcPath = resolve(pluginPath, '../../src/lib/registry/default/examples/', `${name}.vue`).replace(/\\/g, '/')
|
||||
const srcPath = resolve(pluginPath, '../../src/lib/registry/default/example/', `${name}.vue`).replace(/\\/g, '/')
|
||||
|
||||
if (!fs.existsSync(srcPath)) {
|
||||
console.error(`rendering ${path}: ${srcPath} does not exist`)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import DatePickerWithRange from '@/lib/registry/default/examples/DatePickerWithRange.vue'
|
||||
import DatePickerWithRange from '@/lib/registry/default/example/DatePickerWithRange.vue'
|
||||
import { Card, CardContent } from '@/lib/registry/default/ui/card'
|
||||
import { Label } from '@/lib/registry/default/ui/label'
|
||||
</script>
|
||||
|
|
@ -16,3 +16,4 @@ import { Label } from '@/lib/registry/default/ui/label'
|
|||
</CardContent>
|
||||
</Card>
|
||||
</template>
|
||||
@/lib/registry/default/example/DatePickerWithRange.vue
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user