Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NcVNodes component non-functional #3816

Merged
merged 1 commit into from Feb 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>