DocApi description changed for typeless components

pull/3728/head
Bahadır Sofuoğlu 2023-03-10 13:17:35 +03:00
parent 8894099a0a
commit 699c2cea90
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div className="doc-main">
<div className="doc-intro">
<h1>{{ header }} API</h1>
<p>API defines helper props, events and others for the PrimeVue {{ header }} module.</p>
<p>{{ description }}</p>
</div>
<DocSections :docs="docs" />
</div>
@ -31,7 +31,6 @@ export default {
mounted() {
this.docs = this.createDocs();
},
methods: {
createDocs() {
const newDocs = [];
@ -341,6 +340,12 @@ export default {
return !findMainInterface || findMainInterface.values.props.length > 0;
}
},
computed: {
description() {
return this.doc && this.doc.length > 0 ? `API defines helper props, events and others for the PrimeVue ${this.header} module.` : `${this.header} is a CSS feature so does not provide a Javascript API`;
}
}
};
</script>

View File

@ -9,7 +9,7 @@
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
<button type="button" @click="tab = 0">COMPONENT</button>
</li>
<li v-if="apiDocs && apiDocs.length > 0" :class="{ 'doc-tabmenu-active': tab === 1 }">
<li :class="{ 'doc-tabmenu-active': tab === 1 }">
<button type="button" @click="tab = 1">API</button>
</li>
</ul>