dtable-ui-component 6.0.47 → 6.0.48

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.
@@ -92,7 +92,12 @@ const FileFormatter = _ref => {
92
92
  }, value.map((item, index) => {
93
93
  const dom = /*#__PURE__*/_react.default.createElement(_FileItemFormatter.default, {
94
94
  openFile: openFile,
95
- file: item
95
+ file: item,
96
+ config: {
97
+ server,
98
+ dtableUuid,
99
+ workspaceID
100
+ }
96
101
  });
97
102
  if (renderItem) return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
98
103
  key: index
@@ -41,7 +41,7 @@ const RoleStatusEditor = _ref => {
41
41
  'hide': !isShowDropdownIcon
42
42
  })
43
43
  }))), /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
44
- positionFixed: true,
44
+ className: "position-fixed",
45
45
  modifiers: [{
46
46
  name: 'preventOverflow',
47
47
  options: {
package/lib/utils/url.js CHANGED
@@ -189,7 +189,9 @@ const getFileIconUrl = (filename, direntType) => {
189
189
  exports.getFileIconUrl = getFileIconUrl;
190
190
  const getFileThumbnailInfo = function (file) {
191
191
  let {
192
- server
192
+ server,
193
+ dtableUuid,
194
+ workspaceID
193
195
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
194
196
  const defaultIcon = _file.FILEEXT_ICON_MAP['default'];
195
197
  const defaultIconUrl = _file.FILEEXT_ICON_URL_MAP[defaultIcon];
@@ -201,7 +203,9 @@ const getFileThumbnailInfo = function (file) {
201
203
  if (isImage && server) return {
202
204
  isImage,
203
205
  fileIconUrl: getImageThumbnailUrl(file.url, {
204
- server
206
+ server,
207
+ dtableUuid,
208
+ workspaceID
205
209
  })
206
210
  };
207
211
  const iconUrl = getFileIconUrl(file.name, file.type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.47",
3
+ "version": "6.0.48",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",