dtable-ui-component 0.2.2 → 0.2.3
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.
|
@@ -136,7 +136,9 @@ var ImageFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
136
136
|
downloadImage: this.downloadImage,
|
|
137
137
|
onRotateImage: readOnly ? null : this.onRotateImage,
|
|
138
138
|
readOnly: readOnly,
|
|
139
|
-
server: server
|
|
139
|
+
server: server,
|
|
140
|
+
moveToPrevRowImage: this.props.moveToPrevRowImage,
|
|
141
|
+
moveToNextRowImage: this.props.moveToNextRowImage
|
|
140
142
|
}));
|
|
141
143
|
}
|
|
142
144
|
}]);
|
|
@@ -13,7 +13,9 @@ function ImagePreviewerLightbox(props) {
|
|
|
13
13
|
downloadImage = props.downloadImage,
|
|
14
14
|
onRotateImage = props.onRotateImage,
|
|
15
15
|
readOnly = props.readOnly,
|
|
16
|
-
server = props.server
|
|
16
|
+
server = props.server,
|
|
17
|
+
moveToPrevRowImage = props.moveToPrevRowImage,
|
|
18
|
+
moveToNextRowImage = props.moveToNextRowImage;
|
|
17
19
|
var imageItemsLength = imageItems.length;
|
|
18
20
|
var URL = imageItems[imageIndex];
|
|
19
21
|
var imageTitle = URL ? decodeURI(URL.slice(URL.lastIndexOf('/') + 1)) : ''; // svg image is vectorgraph and can't rotate, external image can't rotate
|
|
@@ -28,6 +30,24 @@ function ImagePreviewerLightbox(props) {
|
|
|
28
30
|
}, "(", imageIndex + 1, "/", imageItemsLength, ")"));
|
|
29
31
|
var toolbarButtons = [];
|
|
30
32
|
|
|
33
|
+
if (moveToPrevRowImage) {
|
|
34
|
+
toolbarButtons.push( /*#__PURE__*/React.createElement("button", {
|
|
35
|
+
className: "dtable-font dtable-icon-retract",
|
|
36
|
+
onClick: function onClick() {
|
|
37
|
+
moveToPrevRowImage();
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (moveToNextRowImage) {
|
|
43
|
+
toolbarButtons.push( /*#__PURE__*/React.createElement("button", {
|
|
44
|
+
className: "dtable-font dtable-icon-display",
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
moveToNextRowImage();
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
if (!readOnly && deleteImage) {
|
|
32
52
|
toolbarButtons.push( /*#__PURE__*/React.createElement("button", {
|
|
33
53
|
className: "dtable-font dtable-icon-delete",
|