seeder-resources-view 1.3.3 → 1.3.4
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 +9 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
17883
17883
|
isEditable = true,
|
|
17884
17884
|
batchOperations = true,
|
|
17885
17885
|
withRootNode = true,
|
|
@@ -17895,7 +17895,11 @@ const useDirectoryTree = _ref => {
|
|
|
17895
17895
|
// Tree 组件样式
|
|
17896
17896
|
wrapperStyle = {
|
|
17897
17897
|
paddingTop: 16
|
|
17898
|
-
}
|
|
17898
|
+
},
|
|
17899
|
+
// 包装器样式
|
|
17900
|
+
showIcon = true,
|
|
17901
|
+
// 新增:是否显示展开/折叠图标
|
|
17902
|
+
expandable = true // 新增:是否允许展开/折叠
|
|
17899
17903
|
} = _ref;
|
|
17900
17904
|
const [treeState, setTreeState] = useState({
|
|
17901
17905
|
data: [],
|
|
@@ -18114,11 +18118,12 @@ const useDirectoryTree = _ref => {
|
|
|
18114
18118
|
theme: theme,
|
|
18115
18119
|
children: /*#__PURE__*/jsx(Tree, {
|
|
18116
18120
|
blockNode: true,
|
|
18117
|
-
showIcon:
|
|
18121
|
+
showIcon: showIcon,
|
|
18118
18122
|
selectedKeys: treeState.selectedKeys,
|
|
18119
18123
|
expandedKeys: treeState.expandedKeys,
|
|
18120
18124
|
onSelect: onSelect,
|
|
18121
|
-
onExpand: onExpand
|
|
18125
|
+
onExpand: expandable ? onExpand : undefined // 不允许展开时不绑定事件
|
|
18126
|
+
,
|
|
18122
18127
|
treeData: treeState.data,
|
|
18123
18128
|
titleRender: nodeData => /*#__PURE__*/jsx(TreeTitle$1, {
|
|
18124
18129
|
title: nodeData.title,
|