feat(Stepper): add props 'showInput' (#7785)

This commit is contained in:
晓晓晓晓晓丶vv
2020-12-21 20:17:37 +08:00
committed by GitHub
parent 0b10fd3999
commit d855521d5d
+5
View File
@@ -74,6 +74,10 @@ export default createComponent({
type: Boolean,
default: true,
},
showInput: {
type: Boolean,
default: true,
},
longPress: {
type: Boolean,
default: true,
@@ -308,6 +312,7 @@ export default createComponent({
{...createListeners('minus')}
/>
<input
v-show={props.showInput}
ref={inputRef}
type={props.integer ? 'tel' : 'text'}
role="spinbutton"