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