Skip to content

Commit

Permalink
enh(NcAppNavigationCaption): Forward listeners
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 31, 2023
1 parent 3463d0a commit 228f941
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/NcAppNavigationCaption/NcAppNavigationCaption.vue
Expand Up @@ -91,7 +91,8 @@
<!-- Actions -->
<div v-if="hasActions"
class="app-navigation-caption__actions">
<NcActions v-bind="$attrs">
<NcActions v-bind="$props"
v-on="$listeners">
<!-- @slot Slot for the actions menu -->
<slot name="actions" />
<template #icon>
Expand All @@ -111,11 +112,22 @@ export default {
components: {
NcActions,
},
props: {
// Add NcActions props to $props
...NcActions.props,
name: {
type: String,
required: true,
},
/**
* Any [NcActions](#/Components/NcActions?id=ncactions-1) prop
*/
// Not an actual prop but needed to show in vue-styleguidist docs
// eslint-disable-next-line
' ': {},
},
computed: {
Expand Down

0 comments on commit 228f941

Please sign in to comment.