常规的在子组件定义具名插槽
父组件插槽在vue3有变化 不支持<slot name="footer">
在template 中循环
<template v-for="(item,i) in list" #[item.key]="{ row,index }" :key="item">{{item.title}}</template>
这样可以直接使用
也有个问题
其中 #[item.key]="{ row,index }" 不知道为啥 获取不到row,index 的数据 只是展示够用了