fix(Stepper): disabled not work
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user