Answer the question
In order to leave comments, you need to log in
How to make v-for in render function?
I found an example in the doc, but it doesn't really fit my case.
<render-function-playground :layers="10">
<h1>Hello</h1>
</render-function-playground>
render: function (createElement) {
return createElement(
'div',
this.$slots.default
)
},
props: {
layers: {
type: Number,
required: true
},
}
<h1>Hello</h1>
10 times inside a render function? It is inside, rather than doing a cycle in the parent.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question