mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +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
52
layouts/doc/DocComponent.vue
Normal file
52
layouts/doc/DocComponent.vue
Normal file
|
@ -0,0 +1,52 @@
|
|||
<template>
|
||||
<div :class="['doc-component', className]">
|
||||
<Head>
|
||||
<Title>{{ title }}</Title>
|
||||
<Meta name="description" :content="description" />
|
||||
</Head>
|
||||
|
||||
<ul class="doc-tabmenu">
|
||||
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
|
||||
<button type="button" @click="tab = 0">COMPONENT</button>
|
||||
</li>
|
||||
<li :class="{ 'doc-tabmenu-active': tab === 1 }">
|
||||
<button type="button" @click="tab = 1">API</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="doc-tabpanels">
|
||||
<template v-if="tab === 0">
|
||||
<div class="doc-tabpanel">
|
||||
<div class="doc-main">
|
||||
<div class="doc-intro">
|
||||
<h1>{{ header }}</h1>
|
||||
<p>{{ description }}</p>
|
||||
</div>
|
||||
<DocSections :docs="componentDocs" />
|
||||
</div>
|
||||
<DocSectionNav :docs="componentDocs" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="tab === 1">
|
||||
<div class="doc-tabpanel">
|
||||
<DocApiSection :doc="apiDocs" :header="header" />
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['title', 'header', 'description', 'componentDocs', 'apiDocs', 'className'],
|
||||
data() {
|
||||
return {
|
||||
tab: 0
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.tab = this.$route.hash.includes('api') ? 1 : 0;
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue