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.
- package/lib/hrsass-components.js +14 -12
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +15552 -0
package/lib/hrsass-components.js
CHANGED
|
@@ -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.
|
|
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,
|
|
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
|
-
|
|
14264
|
-
|
|
14265
|
-
_num = "".concat(Number(_num.toFixed(2)), "MB");
|
|
14264
|
+
if (num > 0) {
|
|
14265
|
+
num = "".concat(Number(num.toFixed(2)), "MB");
|
|
14266
14266
|
} else {
|
|
14267
|
-
|
|
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
|
-
|
|
14272
|
-
if (
|
|
14273
|
-
|
|
14273
|
+
_num = _this2.fileSizeZipLimit / 1024;
|
|
14274
|
+
if (_num > 0) {
|
|
14275
|
+
_num = "".concat(Number(_num.toFixed(2)), "MB");
|
|
14274
14276
|
} else {
|
|
14275
|
-
|
|
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) {
|