dtable-ui-component 6.0.107-opl.1 → 6.0.107-opl.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.
@@ -17,7 +17,6 @@
17
17
 
18
18
  .ril__outer .ril__toolbarItem button {
19
19
  background-size: 20px;
20
- opacity: 1 !important;
21
20
  width: 100%;
22
21
  }
23
22
 
@@ -39,7 +39,10 @@ function ImagePreviewerLightbox(props) {
39
39
  partUrl: src
40
40
  });
41
41
  }
42
- return src;
42
+ return {
43
+ name: URL ? decodeURI(URL.slice(URL.lastIndexOf('/') + 1)) : '',
44
+ thumbnail: src
45
+ };
43
46
  });
44
47
  const imagesLength = imageSrcList.length;
45
48
  const [currentImageIndex, setCurrentImageIndex] = _react.default.useState(imageIndex || 0);
@@ -76,6 +79,7 @@ function ImagePreviewerLightbox(props) {
76
79
  children: ["(", currentImageIndex + 1, "/", imagesLength, ")"]
77
80
  })]
78
81
  });
82
+ console.log('imageSrcList', imageSrcList);
79
83
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageLightbox.default, {
80
84
  imageItems: imageSrcList,
81
85
  currentIndex: currentImageIndex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.107opl.1",
3
+ "version": "6.0.107opl.3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",