<view v-for="(item,index) in 3" :key="index">
<slot :name="'title'+index" :content="{name:'标题'+index}">标题{{index}}</slot>
</view>
<template title0="{ content }">
{{content}}
</template>
报如下错误:
15:44:28.954 (Emitted value instead of an instance of Error)
15:44:28.955 Errors compiling template:
15:44:28.955 v-slot 不支持动态插槽名
1 个回复
DCloud_UNI_WZF
vue2 配置 manifest.json-> mp-weixin-> "scopedSlotsCompiler":"augmented" 文档