fix(Stepper): should not submit form (#5183)

This commit is contained in:
neverland
2019-12-03 19:05:05 +08:00
committed by GitHub
parent a04cb6237b
commit 4ab6ad4f0c
5 changed files with 21 additions and 23 deletions

View File

@@ -25,6 +25,8 @@ export default createComponent({
inputWidth: [Number, String],
buttonSize: [Number, String],
asyncChange: Boolean,
disablePlus: Boolean,
disableMinus: Boolean,
disableInput: Boolean,
decimalLength: Number,
name: {
@@ -54,12 +56,6 @@ export default createComponent({
showMinus: {
type: Boolean,
default: true
},
disablePlus: {
type: Boolean
},
disableMinus: {
type: Boolean
}
},
@@ -259,6 +255,7 @@ export default createComponent({
<div class={bem()}>
<button
vShow={this.showMinus}
type="button"
style={this.buttonStyle}
class={bem('minus', { disabled: this.minusDisabled })}
{...createListeners('minus')}
@@ -279,6 +276,7 @@ export default createComponent({
/>
<button
vShow={this.showPlus}
type="button"
style={this.buttonStyle}
class={bem('plus', { disabled: this.plusDisabled })}
{...createListeners('plus')}