mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
27
layouts/doc/DocSections.vue
Normal file
27
layouts/doc/DocSections.vue
Normal file
|
@ -0,0 +1,27 @@
|
|||
<template>
|
||||
<template v-for="(doc, i) of docs" :key="doc.label + '_' + i">
|
||||
<section class="py-3">
|
||||
<template v-if="doc.children">
|
||||
<div :id="doc.id">
|
||||
<DocSectionText :id="doc.id" :label="doc.label">
|
||||
{{ doc.description || null }}
|
||||
</DocSectionText>
|
||||
</div>
|
||||
<template v-for="comp of doc.children" :key="comp.label">
|
||||
{{ comp.relatedProp }}
|
||||
<component :is="{ ...comp.component }" :id="comp.id" :label="comp.label" :data="comp.data" :description="comp.description" :level="2" />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-else-if="!doc.children && doc.component">
|
||||
<component :is="{ ...doc.component }" :id="doc.id" :label="doc.label" />
|
||||
</template>
|
||||
</section>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['docs']
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue