Skip to content

view 视图容器组件的用法

view 组件是一个基本的视图容器,用于包裹页面中的内容。类似 html 中的 div 标签。

组件的属性

图片

代码示例

html
<view class="box2" hover-class="box2_active">
  <view
    class="box1"
    hover-class="active"
    hover-stop-propagation
    :hover-start-time="2000"
    :hover-stay-time="2000"
  >
  </view>
</view>