feat(Stepper): add show-input prop (#7812)

This commit is contained in:
neverland
2020-12-24 20:23:32 +08:00
committed by GitHub
parent 1fac5c5f4f
commit 97509a90b1
4 changed files with 17 additions and 0 deletions
+5
View File
@@ -65,6 +65,10 @@ export default createComponent({
type: Boolean,
default: true,
},
showInput: {
type: Boolean,
default: true,
},
longPress: {
type: Boolean,
default: true,
@@ -306,6 +310,7 @@ export default createComponent({
{...createListeners('minus')}
/>
<input
vShow={this.showInput}
ref="input"
type={this.integer ? 'tel' : 'text'}
role="spinbutton"