liaomars
liaomars
  • 发布:2021-04-16 09:29
  • 更新:2021-12-29 15:25
  • 阅读:576

#插件讨论# 【 List 列表 - DCloud前端团队 】自定义插槽不显示

分类:uni-app
<uni-list>  
    <uni-list-item title="自定义右侧插槽" note="列表描述信息" link>  
        <template slot="header">  
            <image class="slot-image" src="/static/logo.png" mode="widthFix"></image>  
        </template>  
    </uni-list-item>  
    <uni-list-item>  
        <!-- 自定义 header -->  
        <view slot="header" class="slot-box"><image class="slot-image" src="/static/logo.png" mode="widthFix"></image></view>  
        <!-- 自定义 body -->  
        <text slot="body" class="slot-box slot-text">自定义插槽</text>  
        <!-- 自定义 footer-->  
        <template slot="footer">  
            <image class="slot-image" src="/static/logo.png" mode="widthFix"></image>  
        </template>  
    </uni-list-item>  
</uni-list>

按照说明文档,使用这段代码,发现插槽里的内容不显示,是不是有调整什么?

2021-04-16 09:29 负责人:无 分享
已邀请:
山川同学

山川同学

改写成 v-slot:footer

该问题目前已经被锁定, 无法添加新回复