文章目录
view
hover-class = “hover”
hover-start-time = “2000”
hover-stay-time = “2000”
swiper
indicator-dots="{{true}}"
indicator-color=“rgab(0,0,0,0.5)”
indicator-active-color="#ff6633"
autoplay="{{true}}"
current=“1”
interval=“1000”
duration=“500”
circular="{{true}}"
vertical="{{true}}
bindchange=“bindchange”
scroll-view滚动视图
scroll-x
scroll-y
upper-threshold
lower-threshold
scroll-top
scroll-left
scroll-into-view
scroll-with-animation
enable-back-to-top
bindscrolltoupper
bindscrolltolower
bindscroll
movable-area和movable-view
movable-view必须在movable-area组件中,并且必须时直接子节点,否则不能移动
direction
inertia
out-of-bounds
x
y
damping
friction
disabled
button
size
type
plain
loading
form-type
open-type
bindgetuserinfo
hover-class
hover-start-time
hover-stay-time
checkbox-group 和 checkbox
checkbox必须在checkbox-group组件内
checkbox-group里面有一个bindchange属性
value
checked
disabled
color
icon
type
size
color
progress
percent
show-info
activeColor
backgroundColor
active
rich-text
nodes
form
bindsubmit
bindreset
将组件内的用户输入的<switch>,<input>,<checkbox>,<slider>,<radio>,<picker>提交。
当点击<form>表单中form-type为submit的<button>组件时,会将表单组件中的value值进行提交,需要在表单中加上name来作为key。
text
selectable
space=“emsp/ensp/nbsp”
decode
注意:
1.decode可以解析的有:
<>&'  
2.各个操作系统的空格标准并不一致
input
value
disable
type
password
placeholder
placeholder-class
placeholder-style
maxlength
focus
bindinput
bindfocus
bindblur
label
for:使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。目前可以绑定的控件有:button,checkbox,radio,switch
picker-普通选择器
mode=“selector”
range
range-key
value
bindchange
picker-多列选择器
mode=“multiSelector”
range
range-key
value
bindchange
picker-时间选择器
mode=“time”
value
start
end
bindchange
picker-日期选择器
mode=“date”
value
start
end
fields
bindchange
picker-view
picker-view-column
value
style
indicator-style
indicator-class
radio
radio-group中可以放多个radio
value
checked
disabled
color
slider
min
max
step
value
activeColor
backgroundColor
show-value
bindchange
switch
type=“switch”/“checkbox”
color
checked
bindchange
chooseImage
count
sizeType
wx.chooseImage
getImageInfo
获取图片的信息,包括width,height,path
wx.getImageInfo