seeder-resources-view 1.3.2 → 1.3.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.
package/dist/index.esm.js CHANGED
@@ -17879,7 +17879,7 @@ const useDirectoryTree = _ref => {
17879
17879
  createFolder,
17880
17880
  removeFolderFile,
17881
17881
  renameFolderFile,
17882
- mediaType,
17882
+ mediaType = 'VIDEO',
17883
17883
  isEditable = true,
17884
17884
  batchOperations = true,
17885
17885
  withRootNode = true,
@@ -17890,7 +17890,12 @@ const useDirectoryTree = _ref => {
17890
17890
  titleHeight: 30
17891
17891
  }
17892
17892
  }
17893
- }
17893
+ },
17894
+ treeStyle = {},
17895
+ // Tree 组件样式
17896
+ wrapperStyle = {
17897
+ paddingTop: 16
17898
+ } // 包装器样式
17894
17899
  } = _ref;
17895
17900
  const [treeState, setTreeState] = useState({
17896
17901
  data: [],
@@ -18104,9 +18109,7 @@ const useDirectoryTree = _ref => {
18104
18109
  });
18105
18110
  }
18106
18111
  return /*#__PURE__*/jsx("div", {
18107
- style: {
18108
- paddingTop: 16
18109
- },
18112
+ style: wrapperStyle,
18110
18113
  children: /*#__PURE__*/jsx(ConfigProvider, {
18111
18114
  theme: theme,
18112
18115
  children: /*#__PURE__*/jsx(Tree, {
@@ -18125,7 +18128,8 @@ const useDirectoryTree = _ref => {
18125
18128
  handleDel: handleRemove,
18126
18129
  handleAdd: handleCreate
18127
18130
  }),
18128
- height: height
18131
+ height: height,
18132
+ style: treeStyle
18129
18133
  })
18130
18134
  })
18131
18135
  }, "folder-directory");
@@ -18314,7 +18318,6 @@ const ResourcesView = _ref => {
18314
18318
  const calculateTotalSize = files => Array.from(files).reduce((sum, file) => sum + file.size, 0);
18315
18319
 
18316
18320
  // 上传单个文件
18317
- // 待改正:需要对folder replaceRoot
18318
18321
  const uploadSingleFile = (file, folder, previousLoadedMap, onProgress) => {
18319
18322
  const formData = new FormData();
18320
18323
  formData.append('file', file);