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.js
CHANGED
|
@@ -17881,7 +17881,7 @@ const useDirectoryTree = _ref => {
|
|
|
17881
17881
|
createFolder,
|
|
17882
17882
|
removeFolderFile,
|
|
17883
17883
|
renameFolderFile,
|
|
17884
|
-
mediaType
|
|
17884
|
+
mediaType,
|
|
17885
17885
|
isEditable = true,
|
|
17886
17886
|
batchOperations = true,
|
|
17887
17887
|
withRootNode = true,
|
|
@@ -17897,7 +17897,11 @@ const useDirectoryTree = _ref => {
|
|
|
17897
17897
|
// Tree 组件样式
|
|
17898
17898
|
wrapperStyle = {
|
|
17899
17899
|
paddingTop: 16
|
|
17900
|
-
}
|
|
17900
|
+
},
|
|
17901
|
+
// 包装器样式
|
|
17902
|
+
showIcon = true,
|
|
17903
|
+
// 新增:是否显示展开/折叠图标
|
|
17904
|
+
expandable = true // 新增:是否允许展开/折叠
|
|
17901
17905
|
} = _ref;
|
|
17902
17906
|
const [treeState, setTreeState] = react.useState({
|
|
17903
17907
|
data: [],
|
|
@@ -18116,11 +18120,12 @@ const useDirectoryTree = _ref => {
|
|
|
18116
18120
|
theme: theme,
|
|
18117
18121
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tree, {
|
|
18118
18122
|
blockNode: true,
|
|
18119
|
-
showIcon:
|
|
18123
|
+
showIcon: showIcon,
|
|
18120
18124
|
selectedKeys: treeState.selectedKeys,
|
|
18121
18125
|
expandedKeys: treeState.expandedKeys,
|
|
18122
18126
|
onSelect: onSelect,
|
|
18123
|
-
onExpand: onExpand
|
|
18127
|
+
onExpand: expandable ? onExpand : undefined // 不允许展开时不绑定事件
|
|
18128
|
+
,
|
|
18124
18129
|
treeData: treeState.data,
|
|
18125
18130
|
titleRender: nodeData => /*#__PURE__*/jsxRuntime.jsx(TreeTitle$1, {
|
|
18126
18131
|
title: nodeData.title,
|