效果:可移动的视图容器
属性
wxml
<movable-area class="area">
<movable-view class="view" direction="all" inertia out-of-bounds>
</movable-view>
</movable-area>
wxss
.area {
width: 100vw;
height: 50vh;
background-color: #ccc;
}
.view {
width: 100rpx;
height: 100rpx;
background-color: blue;
}
--- CEZLZ ---