fan-standard-comp 1.1.12 → 1.1.13

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.
@@ -199,7 +199,7 @@ var Uploader = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
199
199
  var isLtSize = file.size < size;
200
200
 
201
201
  if (!isLtSize) {
202
- _message2["default"].error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(Math.round(size / 1024 * 100) / 100, "MB!"));
202
+ _message2["default"].error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(Math.round(size / 1024 / 1024 * 100) / 100, "MB!"));
203
203
 
204
204
  return false;
205
205
  }
@@ -199,7 +199,7 @@ var Uploader = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
199
199
  var isLtSize = file.size < size;
200
200
 
201
201
  if (!isLtSize) {
202
- _message2["default"].error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(Math.round(size / 1024 * 100) / 100, "MB!"));
202
+ _message2["default"].error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(Math.round(size / 1024 / 1024 * 100) / 100, "MB!"));
203
203
 
204
204
  return false;
205
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fan-standard-comp",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "FZ standard-comp,basic of antd or other comp",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",