3.0.0-rc.10
https://codesandbox.io/s/holy-night-tcdjf?file=/src/App.vue
When I render default slot with render function, template and v-for, I found that they were not the same. Please see the test example for specific performance.
These three forms are consistent
These three forms are not consistent
These three forms are consistent
Please be more precise, what do you exactly expect to be the same?
These three forms are consistent
Please be more precise, what do you exactly expect to be the same?
Slots length is not same.
In V2, children length is same
Link: https://codesandbox.io/s/serene-bouman-mwe4y?file=/src/App.vue
in v3, v-for is compiled as a single fragment node. You will need to check the fragment's children for the list items.
@yyx990803 Why? Why I get this single fragment node when I getting slots? but in HTML I see only elements without the node