mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Refactor
This commit is contained in:
parent
c841d0fa6c
commit
a2524ed21a
12 changed files with 830 additions and 21 deletions
|
@ -3,17 +3,17 @@
|
|||
<section class="py-4">
|
||||
<template v-if="doc.children">
|
||||
<div :id="doc.id">
|
||||
<DocSectionText :id="doc.id" :label="doc.label">
|
||||
<DocSectionText :id="doc.id" :label="doc.label" :badge="doc.badge">
|
||||
<p v-if="doc.description">{{ doc.description }}</p>
|
||||
</DocSectionText>
|
||||
</div>
|
||||
<template v-for="comp of doc.children" :key="comp.label">
|
||||
<component :is="{ ...comp.component }" :id="comp.id" :label="comp.label" :data="comp.data" :description="comp.description" :level="2" />
|
||||
<component :is="{ ...comp.component }" :id="comp.id" :label="comp.label" :data="comp.data" :badge="comp.badge" :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" :data="doc.data" :description="doc.description" />
|
||||
<component :is="{ ...doc.component }" :id="doc.id" :label="doc.label" :data="doc.data" :badge="doc.badge" :description="doc.description" />
|
||||
</template>
|
||||
</section>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue