@newview/file-ui 1.1.49 → 1.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.1.50
2
+ 1、文件上传组件文件名长度限制修改
3
+
1
4
  ## 1.1.47
2
5
  1、UploadFile优化doBeforeUpload,增加对应'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx'格式文件的文件名长度检测,
3
6
 
package/dist/file-ui.js CHANGED
@@ -359,8 +359,8 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
359
359
  const ext = temp[temp.length - 1].toLowerCase();
360
360
  if (allowedExtensions.includes(ext)) {
361
361
  const fileNameWithoutExt = fileName.slice(0, -(ext.length + 1));
362
- if (fileNameWithoutExt.length > 20) {
363
- this.message.warning("文件名长度不能超过20个字符");
362
+ if (fileNameWithoutExt.length > 100) {
363
+ this.message.warning("文件名长度不能超过100个字符");
364
364
  flag = false;
365
365
  return reject();
366
366
  }