ztxkui 4.2.18-94 → 4.2.18-95

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.
@@ -299,7 +299,7 @@ var Upload = function (props) {
299
299
  return AntUpload.LIST_IGNORE;
300
300
  }
301
301
  // 如果是图片,获取文件分辨率
302
- if (file.type.startsWith('image/')) {
302
+ if (file.type.startsWith('image/') && (maxResolution || minResolution)) {
303
303
  return getImageDimensions(file)
304
304
  .then(function (dimensions) {
305
305
  currentResolutionRef.current = dimensions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.18-94",
3
+ "version": "4.2.18-95",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",