![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uniapp
来了就走下去
生活不止有远方,还有代码
展开
-
uniapp数组中数据位置的变更不会导致视图@click绑定的index
问题描述 有这么一个数组: twoCategoryList: [ { id: 1, name: "家纺", orderNo: 10 }, { id: 2, name: "酒类", orderNo: 20 } ], view代码: <view class="category-list"> <view v-for="(twoCategory, twoIndex) in twoCategoryList" :key="twoCategory.id" @cli原创 2021-04-13 15:48:50 · 339 阅读 · 0 评论 -
uniapp样式问题(实战经验中持续更新)
uniapp样式问题 scroll-view (1)scroll-view内部的第一个盒子添加margin-top属性会出现滚动条 <template> <view> <scroll-view :scroll-y="true" :style="{height: minHeight + 'px'}"> <view class="type-item-list"> <view class="type-item" :style="{'ma原创 2021-03-28 16:27:23 · 372 阅读 · 0 评论