目录

view

Represents a view container, which is equivalent to the div element in the web.

Since: 1.0.0

Properties

Name

Type

Default Value

Mandatory

Description

hover-class

string

none

No

Style class for the pressed state. hover-class="none": no pressed effect.

hover-start-time

number

50

No

Delay before the pressed state appears upon pressing, in milliseconds.

hover-stay-time

number

400

No

Retention time of the pressed state after the finger is lifted, in milliseconds.

hover-stop-propagation

boolean

false

No

Whether to disable the pressed effect of the ancestor node.

Example

<view class="container">
  <view style="color: #0000ff">
    <view>This is a title in the view element. </view>
    <view>This is the text in the view element. </view>
  </view>
</view>