diff --git a/layouts/doc/DocApiSection.vue b/layouts/doc/DocApiSection.vue index 510de3c02..429fdcfda 100644 --- a/layouts/doc/DocApiSection.vue +++ b/layouts/doc/DocApiSection.vue @@ -2,7 +2,7 @@

{{ header }} API

-

API defines helper props, events and others for the PrimeVue {{ header }} module.

+

{{ description }}

@@ -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`; + } } }; diff --git a/layouts/doc/DocComponent.vue b/layouts/doc/DocComponent.vue index f65cd8e8a..4ea105424 100644 --- a/layouts/doc/DocComponent.vue +++ b/layouts/doc/DocComponent.vue @@ -9,7 +9,7 @@
  • -
  • +