Skip to content

Commit

Permalink
docs: Fix the Stepper event callback parameter (#5778)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed May 14, 2024
1 parent 443e78d commit 1787952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/stepper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ Page({
value: 1,
},

onChange(value) {
onChange(event) {
Toast.loading({ forbidClick: true });

setTimeout(() => {
Toast.clear();
this.setData({ value });
this.setData({ value: event.detail });
}, 500);
},
});
Expand Down Expand Up @@ -137,7 +137,7 @@ Page({
| disable-plus | 是否禁用增加按钮 | _boolean_ | - |
| disable-minus | 是否禁用减少按钮 | _boolean_ | - |
| 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

Expand Down

0 comments on commit 1787952

Please sign in to comment.