//父组件
<Category title="食品">
<template scope="scopeData">
<ol v-for="(item,index) in scopeData.foods" :key="index">
<li>{{item}}</li>
</ol>
</template>
</Category>
// 子组件
<template>
<div class="contains">
<h3>{{title}}列表</h3>
<!-- 插槽(作用域使用) -->
<slot :foods="foods"></slot>
</div>
</template>
为什么有序列表页面中展示的数字都是1呢,怎样才能显示1,2,3,4??