-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
Is there a way to pass props to the component that is used as value of the scrollItem property?
I have look at the code and maybe, if there is not a way I have missed, it can be possible adding a v-bind in lines 233 and 250:
<component @itemLoaded="itemLoaded(item)" :is="props.scrollItem" :itemData="item" />
Something like this:
<component @itemLoaded="itemLoaded(item)" :is="props.scrollItem" :itemData="item" v-bind="props.childProps" />
childProps would be the props the item component accepts.
Ex: child-props="{ name: '', id: '1', onClickHandler: () => {}, . . . }"
By the way, nice job!
Metadata
Metadata
Assignees
Labels
No labels