[improvement] Stepper: improve accessibility

This commit is contained in:
陈嘉涵
2019-05-24 15:09:36 +08:00
parent 78fa587575
commit b6e89016b3
4 changed files with 15 additions and 7 deletions

View File

@@ -136,8 +136,12 @@ export default sfc({
/>
<input
type="number"
role="spinbutton"
class={bem('input')}
value={this.currentValue}
aria-valuemax={this.max}
aria-valuemin={this.min}
aria-valuenow={this.currentValue}
disabled={this.disabled || this.disableInput}
style={{ width: this.inputWidth }}
onInput={this.onInput}