<div id="app">
<Child>
<template slot-scope="props">
<h3>{{props.item}}</h3>
</template>
</Child>
</div>
Vue.component("Child", {
template: "<ul><slot v-for='item in person' :item='item'></slot></ul>",
data() {
return {
person: ["1", "2", "3", "4"]
}
}
});