ztxkui 4.2.18-97 → 4.2.18-98

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.
@@ -315,8 +315,12 @@ var Upload = function (props) {
315
315
  var MAXSIZE = maxSize ? maxSize : 1024 * 1024 * 100;
316
316
  var MAXSIZESTR = maxSizeStr ? maxSizeStr : transformFileSize(MAXSIZE);
317
317
  setMaxSizeTransStr(MAXSIZESTR);
318
- var MINSIZE = minSize ? minSize : 200 * 1024;
319
- var MINSIZSTR = minSizeStr ? minSizeStr : transformFileSize(MINSIZE);
318
+ var MINSIZE = minSize ? minSize : null;
319
+ var MINSIZSTR = minSizeStr
320
+ ? minSizeStr
321
+ : MINSIZE
322
+ ? transformFileSize(MINSIZE)
323
+ : '';
320
324
  if (!ACCEPT.includes(fileNameSuffix)) {
321
325
  message.warning(i18next.t('不支持 {{fileNameSuffix}} 文件格式!', {
322
326
  fileNameSuffix: fileNameSuffix,
@@ -331,7 +335,7 @@ var Upload = function (props) {
331
335
  message.warning(i18next.t('文件超出 {{MAXSIZESTR}}!', { MAXSIZESTR: MAXSIZESTR }));
332
336
  return AntUpload.LIST_IGNORE;
333
337
  }
334
- if (fileSize < MINSIZE) {
338
+ if (MINSIZE && fileSize < MINSIZE) {
335
339
  message.warning(i18next.t('文件小于 {{MINSIZSTR}}!', { MINSIZSTR: MINSIZSTR }));
336
340
  return AntUpload.LIST_IGNORE;
337
341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.18-97",
3
+ "version": "4.2.18-98",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",