<template>
<view>
<!-- -->
<view style="width: 100%;height: 400rpx;background-color: #007AFF;"></view>
<view class="wrapperVue">
<view class="sroll">
<scroll-view scroll-y class="list-scroll">
<view>
<view class="demoa" v-for="item,index in 50">
{{item}}
</view>
</view>
</scroll-view>
</view>
</view>
<!-- -->
</view>
</template>
<script>
export default {
data() {
return {
}
},
created() {
// console.log('create----------home')
// this._created()
},
onLoad(options) {
console.log('home:onLoad');
}
}
</script>
<style lang="scss">
.wrapperVue{
width: 100%;
display: flex;
flex-direction: column;
border: 10rpx red solid;
height: 700rpx;
.sroll{
width: 100%;
overflow: hidden;
box-sizing: border-box;
.list-scroll{
width: 100%;
height: 100%;
// display: flex;
// flex-direction: column;
.demoa{
width: 100%;
height: 30rpx;
background-color: pink;
margin-top: 5rpx;
}
}
}
}
</style>