dtable-ui-component 0.2.4 → 0.2.6

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.
@@ -44,6 +44,7 @@ var ImagesLazyLoad = /*#__PURE__*/function (_React$Component) {
44
44
 
45
45
  _this.setState({
46
46
  images: images,
47
+ loadedImages: [],
47
48
  loadedCount: 0
48
49
  }, function () {
49
50
  var server = _this.props.server;
@@ -33,6 +33,10 @@ var ImageFormatter = /*#__PURE__*/function (_React$Component) {
33
33
  _this.closeImagePopup = function () {
34
34
  if (!_this.props.isSupportPreview) return;
35
35
 
36
+ if (_this.props.onCloseCallback) {
37
+ _this.props.onCloseCallback();
38
+ }
39
+
36
40
  _this.setState({
37
41
  isPreviewImage: false,
38
42
  previewImageIndex: -1
@@ -33,8 +33,8 @@ function ImagePreviewerLightbox(props) {
33
33
  if (moveToPrevRowImage) {
34
34
  toolbarButtons.push( /*#__PURE__*/React.createElement("button", {
35
35
  className: "dtable-font dtable-icon-retract",
36
- onClick: function onClick() {
37
- moveToPrevRowImage();
36
+ onClick: function onClick(event) {
37
+ moveToPrevRowImage(event);
38
38
  }
39
39
  }));
40
40
  }
@@ -42,8 +42,8 @@ function ImagePreviewerLightbox(props) {
42
42
  if (moveToNextRowImage) {
43
43
  toolbarButtons.push( /*#__PURE__*/React.createElement("button", {
44
44
  className: "dtable-font dtable-icon-display",
45
- onClick: function onClick() {
46
- moveToNextRowImage();
45
+ onClick: function onClick(event) {
46
+ moveToNextRowImage(event);
47
47
  }
48
48
  }));
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",