mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Apidoc emit-prop type navigate completed
This commit is contained in:
parent
22077da98c
commit
df4d30c4cd
5 changed files with 89 additions and 27 deletions
|
@ -4,7 +4,7 @@
|
|||
<h1>{{ header }} API</h1>
|
||||
<p>API defines helper props, events and others for the PrimeVue {{ header }} module.</p>
|
||||
</div>
|
||||
<DocSections :docs="docs" />
|
||||
<DocSections :docs="docs" :header="header" />
|
||||
</div>
|
||||
<DocSectionNav :docs="docs" />
|
||||
</template>
|
||||
|
@ -152,15 +152,18 @@ export default {
|
|||
const data = [];
|
||||
|
||||
for (const emit of emits) {
|
||||
const parameters = emit.parameters.reduce((acc, param) => {
|
||||
/* const parameters = emit.parameters.reduce((acc, param) => {
|
||||
acc.push(`${param.name}: ${param.type}`);
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
}, []); */
|
||||
|
||||
data.push({
|
||||
name: emit.name,
|
||||
parameters: parameters.join(', '),
|
||||
parameters: {
|
||||
name: emit.parameters[0]?.name,
|
||||
type: emit.parameters[0]?.type
|
||||
},
|
||||
returnType: emit.returnType,
|
||||
description: emit.description
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue