为啥获取不到!!!!!!!!!!!!!
![桥娃子](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/002/34/13/93_avatar_mid.jpg?v=1689126853)
桥娃子
- 发布:2023-07-18 12:20
- 更新:2023-07-18 12:30
- 阅读:216
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20230718/cc9898b7952e85cb9f804c68ce0eec0d.jpg)
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20230718/e89335d6769cf970c9fa5e652df84559.jpg)
![2***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/f11169be5313c8bb0c591e4104fe3ddd.png)
2***@qq.com - jianshu.com/u/b7d77a496c1b
https://uniapp.dcloud.net.cn/component/uniui/uni-list.html#%E4%BB%8B%E7%BB%8D
语法用错了吧,有的组件内直接写要teamplte slot 插槽形式。
或者:title 这种传参
<uni-list>
<uni-list-item title="自定义右侧插槽" note="列表描述信息" link>
<template v-slot:header>
<image class="slot-image" src="/static/logo.png" mode="widthFix"></image>
</template>
</uni-list-item>
<uni-list-item>
<!-- 自定义 header -->
<template v-slot:header>
<view class="slot-box"><image class="slot-image" src="/static/logo.png" mode="widthFix"></image></view>
</template>
<!-- 自定义 body -->
<template v-slot:body>
<text class="slot-box slot-text">自定义插槽</text>
</template>
<!-- 自定义 footer-->
<template v-slot:footer>
<image class="slot-image" src="/static/logo.png" mode="widthFix"></image>
</template>
</uni-list-item>
</uni-list>