From c277603160a7a17685dc532304b9a0c2444db959 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 9 Dec 2020 16:01:46 +0800 Subject: [PATCH] fix(Stepper): disabled not work --- src/stepper/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stepper/index.tsx b/src/stepper/index.tsx index 97b4819d2..38d184e70 100644 --- a/src/stepper/index.tsx +++ b/src/stepper/index.tsx @@ -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; }