feat(Stepper): add placeholder prop (#6519)

This commit is contained in:
neverland
2020-06-11 16:54:41 +08:00
committed by GitHub
parent febf17e546
commit 6de66e0455
7 changed files with 18 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ export default createComponent({
inputWidth: [Number, String],
buttonSize: [Number, String],
asyncChange: Boolean,
placeholder: String,
disablePlus: Boolean,
disableMinus: Boolean,
disableInput: Boolean,
@@ -298,6 +299,7 @@ export default createComponent({
readonly={this.disableInput}
// set keyboard in mordern browers
inputmode={this.integer ? 'numeric' : 'decimal'}
placeholder={this.placeholder}
aria-valuemax={this.max}
aria-valuemin={this.min}
aria-valuenow={this.currentValue}