[new feature] Stepper: add input-width prop (#3076)

This commit is contained in:
neverland
2019-04-01 19:22:10 +08:00
committed by GitHub
parent 93e2dd8ffe
commit 89ccdfe63b
5 changed files with 15 additions and 0 deletions
+2
View File
@@ -7,6 +7,7 @@ export default sfc({
value: null,
integer: Boolean,
disabled: Boolean,
inputWidth: String,
asyncChange: Boolean,
disableInput: Boolean,
min: {
@@ -138,6 +139,7 @@ export default sfc({
class={bem('input')}
value={this.currentValue}
disabled={this.disabled || this.disableInput}
style={{ width: this.inputWidth }}
onInput={this.onInput}
onFocus={this.onFocus}
onBlur={this.onBlur}