跳到主要内容

View

View container

Example

bxml


<view bindtouchstart="touchstart">
{{msg}}
</view>

js

Page({
data() {
return {
msg: 'view container'
}
},
touchstart() {
console.log('touchstart')
}
})

Props

NameTypeDescriptionDefault
hover-classstringSpecifies the style class to press down on. when hover-class="none" There is no click state effect"none"
hover-stop-propagationbooleanSpecifies whether to prevent this node's ancestor from clickingfalse
hover-start-timenumberHow long does it take to click, in milliseconds?50
hover-stay-timenumberClick hold time after finger release, in milliseconds400
catch-movebooleanprevent scroll event's propagationfalse

Events

NameDescription
bindtouchstartTouch start event trap