diff --git a/components/datatable/DataTable.d.ts b/components/datatable/DataTable.d.ts index 22a01aacd..3a17b43a5 100755 --- a/components/datatable/DataTable.d.ts +++ b/components/datatable/DataTable.d.ts @@ -171,7 +171,6 @@ export interface DataTableFilterEvent extends DataTableSortEvent { /** * Custom row click event. - * @event */ export interface DataTableRowClickEvent { /** @@ -204,7 +203,7 @@ export interface DataTableRowContextMenuEvent extends DataTableRowClickEvent {} /** * Custom row select event. - * @event + * */ export interface DataTableRowSelectEvent { /** @@ -234,7 +233,7 @@ export interface DataTableRowUnselectEvent extends DataTableRowSelectEvent {} /** * Custom row select all event. - * @event + * */ export interface DataTableRowSelectAllEvent { /** @@ -249,7 +248,7 @@ export interface DataTableRowSelectAllEvent { /** * Custom row unselect all event. - * @event + * */ export interface DataTableRowUnselectAllEvent { /** @@ -260,7 +259,7 @@ export interface DataTableRowUnselectAllEvent { /** * Custom row select all change event. - * @event + * */ export interface DataTableSelectAllChangeEvent { /** @@ -275,7 +274,7 @@ export interface DataTableSelectAllChangeEvent { /** * Custom row resize end event. - * @event + * */ export interface DataTableColumnResizeEndEvent { /** @@ -290,7 +289,7 @@ export interface DataTableColumnResizeEndEvent { /** * Custom row column reorder event. - * @event + * */ export interface DataTableColumnReorderEvent { /** @@ -309,7 +308,7 @@ export interface DataTableColumnReorderEvent { /** * Custom row reorder event. - * @event + * */ export interface DataTableRowReorderEvent { /** @@ -332,7 +331,7 @@ export interface DataTableRowReorderEvent { /** * Custom row expand event. - * @event + * */ export interface DataTableRowExpandEvent { /** @@ -354,7 +353,7 @@ export interface DataTableRowCollapseEvent extends DataTableRowExpandEvent {} /** * Custom cell edit init event. - * @event + * */ export interface DataTableCellEditInitEvent { /** @@ -378,14 +377,13 @@ export interface DataTableCellEditInitEvent { /** * Custom cell edit cancel event. * @see cell-edit-init - * @todo * @extends DataTableCellEditInitEvent */ export interface DataTableCellEditCancelEvent extends DataTableCellEditInitEvent {} /** * Custom cell edit complete event. - * @event + * */ export interface DataTableCellEditCompleteEvent { /** @@ -424,7 +422,7 @@ export interface DataTableCellEditCompleteEvent { /** * Custom row edit complete event. - * @event + * */ export interface DataTableRowEditInitEvent { /** @@ -465,7 +463,7 @@ export interface DataTableRowEditCancelEvent extends DataTableRowEditInitEvent { /** * Custom state event. - * @event + * */ export interface DataTableStateEvent { /** diff --git a/layouts/doc/DocApiSection.vue b/layouts/doc/DocApiSection.vue index 4d0945bd2..caf6c5730 100644 --- a/layouts/doc/DocApiSection.vue +++ b/layouts/doc/DocApiSection.vue @@ -4,7 +4,7 @@

{{ header }} API

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

- + @@ -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 }); diff --git a/layouts/doc/DocApiTable.vue b/layouts/doc/DocApiTable.vue index d05f0a02b..f30dfd7f1 100644 --- a/layouts/doc/DocApiTable.vue +++ b/layouts/doc/DocApiTable.vue @@ -1,7 +1,7 @@