-
-
Notifications
You must be signed in to change notification settings - Fork 280
feat: add move operation for List #20
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
Conversation
|
This pull request is automatically deployed with Now. Latest deployment for this branch: https://rc-field-form-git-fork-hvsy-master.react-component.now.sh |
Add list-draggable example
|
CI failed. Please check. |
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
==========================================
+ Coverage 99.85% 99.86% +<.01%
==========================================
Files 13 13
Lines 698 720 +22
Branches 138 152 +14
==========================================
+ Hits 697 719 +22
Misses 1 1
Continue to review full report at Codecov.
|
remove console log for performance
|
@zombieJ after remove console log and seems to work well so far. |
rename "arrayMove" to "move". add checking for out of range. add test cases for out of range.
merge edge case check into one if.
|
@zombieJ |
|
|
||
| return ( | ||
| <DndProvider backend={HTML5Backend}> | ||
| <div> |
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.
miss 2 space as of child node.
| const { List, useForm } = Form; | ||
|
|
||
| type LabelFieldProps = Parameters<typeof LabelField>[0]; | ||
| interface DraggableProps extends LabelFieldProps{ |
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.
LabelFieldProps{ => LabelFieldProps {
Seems still missing types. Could you try to remove .git/hooks and reinstall node_modules to make father pre-commit hooks work. This will auto prettier the code when commit.
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.
Please reference to following code. The default config don't include the examples directory.
so father pre-commit don't work for it.
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.
Let me add PR for this. Thanks for notice.
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.
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.
Thanks for feedback. Add PR for this: umijs/fabric#6
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.
Updated @umi/fabric, please check.
format draggable example




@zombieJ