mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Stepper): add props 'showInput' (#7785)
This commit is contained in:
parent
0b10fd3999
commit
d855521d5d
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user