Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NumberPicker): repair numberPicker log string, close #3768 #3769

Merged

Conversation

weinianyang
Copy link
Contributor

No description provided.

@weinianyang
Copy link
Contributor Author

image

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #3769 (b4cd392) into master (21f42f9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3769   +/-   ##
=======================================
  Coverage   90.58%   90.58%           
=======================================
  Files         303      303           
  Lines       17816    17818    +2     
  Branches     5381     5382    +1     
=======================================
+ Hits        16138    16140    +2     
  Misses       1659     1659           
  Partials       19       19           
Impacted Files Coverage Δ
src/number-picker/number-picker.jsx 95.28% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21f42f9...b4cd392. Read the comment docs.

@bindoon
Copy link
Member

bindoon commented Feb 28, 2022

应该控制 onChange 的输出必须是整数

@weinianyang
Copy link
Contributor Author

numberPicker实现代码onChange有数据订正,问题所在是up down的点击

@lakerswgq lakerswgq requested a review from bindoon March 1, 2022 03:39
@@ -184,7 +184,7 @@ class NumberPicker extends React.Component {
} else {
value = defaultValue;
}
value = value === undefined || value === null ? '' : stringMode ? `${value}` : value;
value = value === undefined || value === null ? 0 : stringMode ? `${value}` : value;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是输入,我们的默认值并不是0,只是点上下按钮的时候从0开始增加。

这里应该控制 onChange 的输出必须是整数

@bindoon bindoon merged commit 1b4bfec into alibaba-fusion:master Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants