@kdcloudjs/kdesign 1.8.1 → 1.8.2

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/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.8.0
3
+ * @kdcloudjs/kdesign v1.8.1
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -21404,12 +21404,12 @@ var PreviewGroup = function PreviewGroup(_ref) {
21404
21404
  onPrevious: onPrevious
21405
21405
  };
21406
21406
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](react__WEBPACK_IMPORTED_MODULE_12__["Fragment"], null, images.length > 1 ? react__WEBPACK_IMPORTED_MODULE_12__["Children"].map(children, function (image, index) {
21407
- var _image$props;
21407
+ var _image$props, _image$props2;
21408
21408
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["cloneElement"](image, {
21409
21409
  key: image.key || index,
21410
21410
  preview: false,
21411
21411
  ref: refs[index],
21412
- onClick: onPreview.bind(null, index, image === null || image === void 0 ? void 0 : (_image$props = image.props) === null || _image$props === void 0 ? void 0 : _image$props.src)
21412
+ onClick: (image === null || image === void 0 ? void 0 : (_image$props = image.props) === null || _image$props === void 0 ? void 0 : _image$props.preview) !== false ? onPreview.bind(null, index, image === null || image === void 0 ? void 0 : (_image$props2 = image.props) === null || _image$props2 === void 0 ? void 0 : _image$props2.src) : undefined
21413
21413
  });
21414
21414
  }) : children, exit && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_preview__WEBPACK_IMPORTED_MODULE_13__["default"], previewProps));
21415
21415
  };