[Doc] Field: add usage document (#519)

This commit is contained in:
neverland 2018-09-06 17:11:07 +08:00 committed by GitHub
parent 47a606416a
commit 24c964db8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,19 @@
</van-cell-group>
```
```js
Page({
data: {
value: ''
},
onChange(event) {
// event.detail 为当前输入的值
console.log(event.detail);
}
});
```
#### 自定义类型
根据`type`属性定义不同类型的输入框