Skip to content

Commit

Permalink
Refactor #2771
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jul 13, 2022
1 parent e880a68 commit 821f1f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/components/timeline/Timeline.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ export interface TimelineSlots {
/**
* Custom connector template.
*/
connector: () => VNode[];
connector: (scope: {
/**
* Item data
*/
item: any;
/**
* Index of item
*/
index: number;
}) => VNode[];
}

export declare type TimelineEmits = {
Expand Down
3 changes: 2 additions & 1 deletion src/views/timeline/TimelineDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ export default {
</tr>
<tr>
<td>connector</td>
<td>-</td>
<td>item: Connector of the event<br />
index: Index of the event</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 821f1f8

Please sign in to comment.