dtable-ui-component 5.2.14 → 5.2.16

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.
@@ -145,7 +145,8 @@ class SelectOptionGroup extends _react.Component {
145
145
  changeIndex: this.changeIndex,
146
146
  disableHover: this.state.disableHover
147
147
  }, /*#__PURE__*/_react.default.createElement("div", {
148
- className: "option-label"
148
+ className: "option-label text-truncate",
149
+ title: option.label
149
150
  }, option.label), isSelected && /*#__PURE__*/_react.default.createElement("i", {
150
151
  className: "dtable-font dtable-icon-check-mark"
151
152
  }));
@@ -116,7 +116,14 @@ class ImagesLazyLoad extends _react.default.Component {
116
116
  }, /*#__PURE__*/_react.default.createElement(_Loading.default, null));
117
117
  }
118
118
  return loadedImages.map((image, index) => {
119
- let imageName = image.slice(image.src.lastIndexOf('/') + 1);
119
+ let imageName = '';
120
+ const imageSrc = image === null || image === void 0 ? void 0 : image.src;
121
+ try {
122
+ imageName = imageSrc ? decodeURI(imageSrc.slice(imageSrc.lastIndexOf('/') + 1)) : '';
123
+ } catch (error) {
124
+ // eslint-disable-next-line no-console
125
+ console.log(error);
126
+ }
120
127
  const imgDom = /*#__PURE__*/_react.default.createElement("img", {
121
128
  title: imageName,
122
129
  className: "image-item",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.14",
3
+ "version": "5.2.16",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",