mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
feat(Stepper): improve number keyboard
This commit is contained in:
parent
b983ac0891
commit
58e74a9e8b
@ -293,6 +293,10 @@ export default createComponent({
|
||||
type="number"
|
||||
role="spinbutton"
|
||||
class={bem('input')}
|
||||
// set keyboard in mordern browers
|
||||
inputmode={this.integer ? 'numeric' : 'decimal'}
|
||||
// set keyboard in iOS 8 ~ 12
|
||||
pattern={this.integer ? '\\d*' : null}
|
||||
value={this.currentValue}
|
||||
style={this.inputStyle}
|
||||
disabled={this.disabled}
|
||||
|
Loading…
x
Reference in New Issue
Block a user