From 95fde50636e830492c83a559c703d1cfda428f42 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 4 Dec 2022 13:57:56 +0100 Subject: [PATCH] Fix jsdoc for some emitted events Signed-off-by: Ferdinand Thiessen --- src/components/NcBreadcrumb/NcBreadcrumb.vue | 4 ++-- src/components/NcBreadcrumbs/NcBreadcrumbs.vue | 3 ++- src/components/NcListItem/NcListItem.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/NcBreadcrumb/NcBreadcrumb.vue b/src/components/NcBreadcrumb/NcBreadcrumb.vue index 7fd7f20bb2..1b92263400 100644 --- a/src/components/NcBreadcrumb/NcBreadcrumb.vue +++ b/src/components/NcBreadcrumb/NcBreadcrumb.vue @@ -191,8 +191,8 @@ export default { } /** * Event emitted when something is dropped on the breadcrumb. - * - * @type {null} + * @param {Event} event The DOM drop event + * @param {[String, Object]} to The `to` prop or, if not set, the `href` prop */ this.$emit('dropped', e, this.to || this.href) this.$parent.$emit('dropped', e, this.to || this.href) diff --git a/src/components/NcBreadcrumbs/NcBreadcrumbs.vue b/src/components/NcBreadcrumbs/NcBreadcrumbs.vue index 0246c32c5b..4e5e87078e 100644 --- a/src/components/NcBreadcrumbs/NcBreadcrumbs.vue +++ b/src/components/NcBreadcrumbs/NcBreadcrumbs.vue @@ -374,7 +374,8 @@ export default { /** * Event emitted when something is dropped on the breadcrumb. * - * @type {null} + * @param {Event} e the drop DOM event + * @param {string} path The path of the breadcrumb */ this.$emit('dropped', e, path) } diff --git a/src/components/NcListItem/NcListItem.vue b/src/components/NcListItem/NcListItem.vue index b06c32bf8e..d2583d47cb 100644 --- a/src/components/NcListItem/NcListItem.vue +++ b/src/components/NcListItem/NcListItem.vue @@ -352,7 +352,7 @@ export default { }, /** - * Id for the element + * Id for the `` element */ anchorId: { type: String,