Skip to content

Commit

Permalink
Make VNodes component non-functional
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Feb 24, 2023
1 parent 4b9187c commit c396fbc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/components/NcVNodes/NcVNodes.vue
@@ -1,5 +1,5 @@
<!--
- @copyright Copyright (c) 2020 Raimund Schlüßler <raimund.schluessler@mailbox.org>
- @copyright Copyright (c) 2023 Raimund Schlüßler <raimund.schluessler@mailbox.org>
-
- @author Raimund Schlüßler <raimund.schluessler@mailbox.org>
-
Expand All @@ -23,16 +23,23 @@
<script>
export default {
name: 'NcVNodes',
functional: true,
props: {
/**
* The vnodes to render
*/
vnodes: {
type: [Array, Object],
default: () => [],
},
},
/**
* The render function to display the component
*
* @param {Function} h The function to create VNodes
* @param {object} context The context object of the functional component
* @return {object} The created VNode
*/
render(h, context) {
return context.props.vnodes
render(h) {
return this.vnodes
},
}
</script>

0 comments on commit c396fbc

Please sign in to comment.