fix(Stepper): disabled not work

This commit is contained in:
chenjiahan 2020-12-09 16:01:46 +08:00
parent 3d05e56195
commit c277603160

View File

@ -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;
} }