-
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
[Feature request] disabled
or max
props for n-upload
#1237
Comments
Try controlled upload https://www.naiveui.com/en-US/os-theme/components/upload#controlled.
|
did you tried this code, when disabled is true the opacity of entire file list is BELOW 1, besides doc didnt even mentioned about disabled, however i think both disabled & max props is needed, disabled is to disabled to the upload button, while the max props is for hide the upload button. What do u think? |
Add a
|
* feat(upload): add `max` prop and fix `disabled`'s style (#1237) * feat(upload): fix CHANGELOG * feat(upload): add test * feat(upload): fix disabled * Update src/upload/src/Upload.tsx Co-authored-by: 07akioni <07akioni2@gmail.com> * feat(upload): fix `upload-dragger` mergedDisabled Co-authored-by: kev1nzh <kev1nzh@app-ark.com> Co-authored-by: 07akioni <07akioni2@gmail.com>
This function solves the problem (这个功能解决的问题)
hide the upload button when the number of file limit is reached, or disabled the upload button when the number of file limit is reached
Expected API (期望的 API)
The text was updated successfully, but these errors were encountered: