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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,10 @@ export default createComponent({
type: Boolean, type: Boolean,
default: true, default: true,
}, },
showInput: {
type: Boolean,
default: true,
},
longPress: { longPress: {
type: Boolean, type: Boolean,
default: true, default: true,
@ -308,6 +312,7 @@ export default createComponent({
{...createListeners('minus')} {...createListeners('minus')}
/> />
<input <input
v-show={props.showInput}
ref={inputRef} ref={inputRef}
type={props.integer ? 'tel' : 'text'} type={props.integer ? 'tel' : 'text'}
role="spinbutton" role="spinbutton"