hrsass-components 1.7.51 → 1.7.52

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "1.7.51";
68
+ var version = "1.7.52";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -14235,7 +14235,7 @@ var index$h = {
14235
14235
  this.fileList = [].concat(_toConsumableArray(this.fileList), [file]);
14236
14236
  return new Promise( /*#__PURE__*/function () {
14237
14237
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
14238
- var name, size, types, result, _num, _num2;
14238
+ var name, size, types, result, num, _num;
14239
14239
  return _regeneratorRuntime.wrap(function _callee$(_context) {
14240
14240
  while (1) switch (_context.prev = _context.next) {
14241
14241
  case 0:
@@ -14259,24 +14259,26 @@ var index$h = {
14259
14259
  } else {
14260
14260
  if (_this2.fileSizeLimit > 0 || _this2.fileSizeZipLimit > 0) {
14261
14261
  if (_this2.fileSizeLimit * 1024 < size && !_this2.fileTypes.includes('.zip')) {
14262
+ num = _this2.fileSizeLimit / 1024;
14262
14263
  result = false;
14263
- _num = _this2.fileSizeLimit / 1024;
14264
- if (_num > 0) {
14265
- _num = "".concat(Number(_num.toFixed(2)), "MB");
14264
+ if (num > 0) {
14265
+ num = "".concat(Number(num.toFixed(2)), "MB");
14266
14266
  } else {
14267
- _num = "".concat(_this2.fileSizeLimit, "KB");
14267
+ num = "".concat(_this2.fileSizeLimit, "KB");
14268
14268
  }
14269
+ _this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(num, ")"));
14270
+ _this2.errorFileList.push(name);
14269
14271
  } else if (_this2.fileSizeZipLimit * 1024 < size && _this2.fileTypes.includes('.zip')) {
14270
14272
  result = false;
14271
- _num2 = _this2.fileSizeZipLimit / 1024;
14272
- if (_num2 > 0) {
14273
- _num2 = "".concat(Number(_num2.toFixed(2)), "MB");
14273
+ _num = _this2.fileSizeZipLimit / 1024;
14274
+ if (_num > 0) {
14275
+ _num = "".concat(Number(_num.toFixed(2)), "MB");
14274
14276
  } else {
14275
- _num2 = "".concat(_this2.fileSizeZipLimit, "KB");
14277
+ _num = "".concat(_this2.fileSizeZipLimit, "KB");
14276
14278
  }
14279
+ _this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(_num, ")"));
14280
+ _this2.errorFileList.push(name);
14277
14281
  }
14278
- _this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(num, ")"));
14279
- _this2.errorFileList.push(name);
14280
14282
  }
14281
14283
  }
14282
14284
  if (!_this2.customBeforeUpload) {