1.refresh+list出现滑动冲突,检查是不是都用了 overflow: scroll,给refresh去掉,单独list使用即可
2.加载列表项目渲染失效,发现同时使用了scss和style
- <style lang="scss" scoped>
- .template {
- width: 100%;
- height: 100%;
- background-color: #fafafa;
- &-refresh {
- width: 100%;
- height: 100%;
-
- &-list {
- width: 100%;
- height: 100%;
- overflow: scroll;
- }
- }
- }
- </style>
- <div
- style="
- background-color: white;
- padding-left: 20px;
- padding-right: 20px;
- padding-top: 15px;
- padding-bottom: 15px;
- border-radius: 8px;
- margin: 20px;
- "
- v-for="(item, index) in tempList"
- :key="index"
- @click="onItemClick(item)"
- >
后面去掉在scss声明,都统一在vue里面声明style之后就不会了。