mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[Doc] Field: add usage document (#519)
This commit is contained in:
parent
47a606416a
commit
24c964db8f
@ -23,6 +23,19 @@
|
||||
</van-cell-group>
|
||||
```
|
||||
|
||||
```js
|
||||
Page({
|
||||
data: {
|
||||
value: ''
|
||||
},
|
||||
|
||||
onChange(event) {
|
||||
// event.detail 为当前输入的值
|
||||
console.log(event.detail);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### 自定义类型
|
||||
根据`type`属性定义不同类型的输入框
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user