mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +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"
|
type="number"
|
||||||
role="spinbutton"
|
role="spinbutton"
|
||||||
class={bem('input')}
|
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}
|
value={this.currentValue}
|
||||||
style={this.inputStyle}
|
style={this.inputStyle}
|
||||||
disabled={this.disabled}
|
disabled={this.disabled}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user