-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: changeOnWheel * chore: code optimize * chore: code opt
- Loading branch information
Showing
4 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint no-console:0 */ | ||
import InputNumber from 'rc-input-number'; | ||
import React from 'react'; | ||
import '../../assets/index.less'; | ||
|
||
export default () => { | ||
return ( | ||
<div style={{ margin: 10 }}> | ||
<InputNumber | ||
style={{ width: 100 }} | ||
defaultValue={10} | ||
changeOnBlur={false} | ||
changeOnWheel | ||
/> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,8 @@ nav: | |
|
||
<code src="./demo/small-step.tsx"></code> | ||
|
||
## wheel | ||
|
||
<code src="./demo/wheel.tsx"></code> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3742a02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
input-number – ./
input-number-react-component.vercel.app
input-number-git-master-react-component.vercel.app
input-number.vercel.app