DocApi description changed for typeless components
parent
8894099a0a
commit
699c2cea90
|
@ -2,7 +2,7 @@
|
||||||
<div className="doc-main">
|
<div className="doc-main">
|
||||||
<div className="doc-intro">
|
<div className="doc-intro">
|
||||||
<h1>{{ header }} API</h1>
|
<h1>{{ header }} API</h1>
|
||||||
<p>API defines helper props, events and others for the PrimeVue {{ header }} module.</p>
|
<p>{{ description }}</p>
|
||||||
</div>
|
</div>
|
||||||
<DocSections :docs="docs" />
|
<DocSections :docs="docs" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,6 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.docs = this.createDocs();
|
this.docs = this.createDocs();
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
createDocs() {
|
createDocs() {
|
||||||
const newDocs = [];
|
const newDocs = [];
|
||||||
|
@ -341,6 +340,12 @@ export default {
|
||||||
|
|
||||||
return !findMainInterface || findMainInterface.values.props.length > 0;
|
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>
|
</script>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
|
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
|
||||||
<button type="button" @click="tab = 0">COMPONENT</button>
|
<button type="button" @click="tab = 0">COMPONENT</button>
|
||||||
</li>
|
</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>
|
<button type="button" @click="tab = 1">API</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue