-
Notifications
You must be signed in to change notification settings - Fork 129
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
feat: folderTree support to loadData #367
Conversation
Codecov Report
@@ Coverage Diff @@
## main #367 +/- ##
==========================================
+ Coverage 59.48% 59.90% +0.42%
==========================================
Files 173 173
Lines 4650 4664 +14
Branches 1021 1021
==========================================
+ Hits 2766 2794 +28
+ Misses 1864 1850 -14
Partials 20 20
Continue to review full report at Codecov.
|
folderTreeService 的测试用例还没补全,可以先 merge cc @wewoor |
src/components/tree/index.tsx
Outdated
import { FileTypes } from 'mo/model'; | ||
import type { LoadEventDaata } from 'mo/controller'; |
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.
import type { LoadEventDaata } from 'mo/controller'; | |
import type { LoadEventData } from 'mo/controller'; |
@@ -16,6 +16,11 @@ import { | |||
FileType, | |||
} from 'mo/model'; | |||
import { FolderTreeService, IFolderTreeService } from 'mo/services'; | |||
import type { EventDataNode } from 'rc-tree/lib/interface'; | |||
|
|||
export interface LoadEventDaata extends EventDataNode { |
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.
LGTM
简介
onLoadData
实现异步加载数据主要变更