mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 11:26:35 +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,
|
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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user