mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +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 = () => {
|
||||
if ((props as any)[`${actionType}Disabled`]) {
|
||||
if (
|
||||
(actionType === 'plus' && plusDisabled.value) ||
|
||||
(actionType === 'minus' && minusDisabled.value)
|
||||
) {
|
||||
emit('overlimit', actionType);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user