0.0.1 • Published 2 years ago
mp-scroll v0.0.1
mp-scroll
游戏
安装
npm install mp-scroll
使用
- json
{
"usingComponents": {
"mp-scroll": "mp-scroll/index"
}
}
- xaml
<view class="container">
<mp-scroll scroll-bar="{{{scrollX:false,scrollY:true,x:700,y:0,w:50,h:100,'src':'https://img.alicdn.com/imgextra/i4/555657275/O1CN01opWu8F23c05DQLjOf-555657275.png',bC:'red',bR:50}}}">
<view class="ui-scroll-wrap">
<view class="test">
<view style="width:100%;height:110rpx;background-color:aliceblue;"></view>
</view>
<view class="test" style="background-color:red;">22</view>
<view>1111</view>
</view>
</mp-scroll>
</view>
- acss
.container{
width: 750rpx;
height: 1000rpx;
background-color: blue;;
}
.test{
width: 100%;
height: 1500rpx;
background: yellow;
}
0.0.1
2 years ago