Skip to content
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: 允许用户自定义处理文件大小超出size限制的逻辑 #114

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

donaldshen
Copy link
Contributor

Why

在微信浏览器环境,alert函数会被禁止。导致丢失原来的文件大小超出size限制时的报错信息。

How

  1. 新增onOversize属性,允许用户自定义文件大小超出size限制时的处理逻辑
  2. 新增on-oversize.md文档,演示这个函数的用法

Test

打开on-oversize示例,尝试上传大于1m的文件,体验效果

Docs

  1. api新增一个props:onOversize
  2. demo新增一个示例on-oversize

@auto-add-label auto-add-label bot added the enhancement New feature or request label Nov 6, 2019
@netlify
Copy link

netlify bot commented Nov 6, 2019

Deploy preview for upload-to-ali ready!

Built with commit 81f029c

https://deploy-preview-114--upload-to-ali.netlify.com

@levy9527 levy9527 merged commit b380877 into FEMessage:dev Nov 6, 2019
@donaldshen donaldshen deleted the feat/oversize branch November 6, 2019 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants