mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
fix(Stepper): disabled not work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user