feat(Stepper): improve disable-input behavior

This commit is contained in:
陈嘉涵
2020-01-15 20:00:24 +08:00
parent 2f3ec6a3d4
commit 959eca136c
6 changed files with 34 additions and 6 deletions

View File

@@ -289,11 +289,12 @@ export default createComponent({
role="spinbutton"
class={bem('input')}
value={this.currentValue}
style={this.inputStyle}
disabled={this.disabled}
readonly={this.disableInput}
aria-valuemax={this.max}
aria-valuemin={this.min}
aria-valuenow={this.currentValue}
disabled={this.disabled || this.disableInput}
style={this.inputStyle}
onInput={this.onInput}
onFocus={this.onFocus}
onBlur={this.onBlur}