Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Stepper): add always-embed prop #4678

Merged
merged 1 commit into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/stepper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ Page({
| disable-plus | 是否禁用增加按钮 | _boolean_ | - |
| disable-minus | 是否禁用减少按钮 | _boolean_ | - |
| long-press | 是否开启长按手势 | _boolean_ | `true` |
| always-embed `v1.9.3` | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | _boolean_ | `false` |

### Events

Expand Down
1 change: 1 addition & 0 deletions packages/stepper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ VantComponent({
value: true,
},
theme: String,
alwaysEmbed: Boolean,
},

data: {
Expand Down
1 change: 1 addition & 0 deletions packages/stepper/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
value="{{ currentValue }}"
focus="{{ focus }}"
disabled="{{ disabled || disableInput }}"
always-embed="{{ alwaysEmbed }}"
bindinput="onInput"
bind:focus="onFocus"
bind:blur="onBlur"
Expand Down