mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs: Fix the Stepper event callback parameter (#5778)
This commit is contained in:
parent
443e78daec
commit
178795253f
@ -94,12 +94,12 @@ Page({
|
|||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
onChange(value) {
|
onChange(event) {
|
||||||
Toast.loading({ forbidClick: true });
|
Toast.loading({ forbidClick: true });
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
Toast.clear();
|
Toast.clear();
|
||||||
this.setData({ value });
|
this.setData({ value: event.detail });
|
||||||
}, 500);
|
}, 500);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -137,7 +137,7 @@ Page({
|
|||||||
| disable-plus | 是否禁用增加按钮 | _boolean_ | - |
|
| disable-plus | 是否禁用增加按钮 | _boolean_ | - |
|
||||||
| disable-minus | 是否禁用减少按钮 | _boolean_ | - |
|
| disable-minus | 是否禁用减少按钮 | _boolean_ | - |
|
||||||
| long-press | 是否开启长按手势 | _boolean_ | `true` |
|
| long-press | 是否开启长按手势 | _boolean_ | `true` |
|
||||||
| always-embed `v1.9.3` | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | _boolean_ | `false` |
|
| always-embed `v1.9.3` | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | _boolean_ | `false` |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user