-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(upload): add abstract
prop, separate upload-file-list
and upload-trigger
components
#1193
Conversation
…pload-trigger` components (tusen-ai#1102)
# Conflicts: # CHANGELOG.en-US.md # CHANGELOG.zh-CN.md # src/upload/tests/Upload.spec.ts
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/8Eretaf9er81ZUoqypwTiuQWRvYV |
Codecov Report
@@ Coverage Diff @@
## main #1193 +/- ##
==========================================
+ Coverage 49.71% 49.93% +0.21%
==========================================
Files 514 516 +2
Lines 12761 12789 +28
Branches 3617 3628 +11
==========================================
+ Hits 6344 6386 +42
+ Misses 5334 5316 -18
- Partials 1083 1087 +4
Continue to review full report at Codecov.
|
src/upload/src/UploadFileList.tsx
Outdated
</NFadeInExpandTransition> | ||
) | ||
const createUploadFileList = ( | ||
isImageCardTypeRef: ComputedRef<boolean> |
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.
好的 明天改
This pull request introduces 1 alert when merging ae0761a into dbee08e - view on LGTM.com new alerts:
|
@@ -5,6 +5,7 @@ | |||
### Breaking Changes | |||
|
|||
- `n-layout-sider`'s `arrow-circle` trigger is changed into new style. | |||
- `n-upload` add `abstract` prop, add `n-upload-trigger` 和 `n-upload-file-list` component, closes [#1102](https://github.com/TuSimple/naive-ui/issues/1102). |
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.
这个不算 breaking change,因为用户已经写好的代码不会崩
openFileDialog, | ||
draggerInsideRef, | ||
handleFileAddition, | ||
fileListStyle: props.fileListStyle, |
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.
这个地方也需要的是 toRef
#1102