mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 03:16:35 +08:00
fix(Stepper): disabled not work
This commit is contained in:
parent
3d05e56195
commit
c277603160
@ -157,7 +157,10 @@ export default createComponent({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onChange = () => {
|
const onChange = () => {
|
||||||
if ((props as any)[`${actionType}Disabled`]) {
|
if (
|
||||||
|
(actionType === 'plus' && plusDisabled.value) ||
|
||||||
|
(actionType === 'minus' && minusDisabled.value)
|
||||||
|
) {
|
||||||
emit('overlimit', actionType);
|
emit('overlimit', actionType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user