Component node templates are currently based on nodeComponent property in the dataset. This proposition is to incorporate one or both of the following suggestions:
- Node template by slot (#default or #named). This can prevent some prop drilling.
<flowy :nodes="items">
<template v-slot:default="{ node }">
<flow-item v-bind="node" />
</template>
</flowy>
- Component as data property:
<flowy :nodes="items" :node-component='$options.FlowItem' />
Both suggestions are compatible with multiple block types in same collection if neccessary.
Component node templates are currently based on nodeComponent property in the dataset. This proposition is to incorporate one or both of the following suggestions:
Both suggestions are compatible with multiple block types in same collection if neccessary.