seeder-resources-view 1.3.4 → 1.3.5
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
|
@@ -17899,9 +17899,9 @@ const useDirectoryTree = _ref => {
|
|
|
17899
17899
|
paddingTop: 16
|
|
17900
17900
|
},
|
|
17901
17901
|
// 包装器样式
|
|
17902
|
-
|
|
17903
|
-
//
|
|
17904
|
-
|
|
17902
|
+
expandable = true,
|
|
17903
|
+
// 新增:是否允许展开/折叠
|
|
17904
|
+
onSelectDir
|
|
17905
17905
|
} = _ref;
|
|
17906
17906
|
const [treeState, setTreeState] = react.useState({
|
|
17907
17907
|
data: [],
|
|
@@ -18061,6 +18061,11 @@ const useDirectoryTree = _ref => {
|
|
|
18061
18061
|
currentPath: info.node.path,
|
|
18062
18062
|
loading: true
|
|
18063
18063
|
});
|
|
18064
|
+
|
|
18065
|
+
// 触发 onSelectDir 回调(如果存在)
|
|
18066
|
+
if (onSelectDir) {
|
|
18067
|
+
onSelectDir(info.node.rawData);
|
|
18068
|
+
}
|
|
18064
18069
|
try {
|
|
18065
18070
|
// 模拟延迟加载
|
|
18066
18071
|
// eslint-disable-next-line no-promise-executor-return
|
|
@@ -18120,7 +18125,7 @@ const useDirectoryTree = _ref => {
|
|
|
18120
18125
|
theme: theme,
|
|
18121
18126
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tree, {
|
|
18122
18127
|
blockNode: true,
|
|
18123
|
-
showIcon:
|
|
18128
|
+
showIcon: true,
|
|
18124
18129
|
selectedKeys: treeState.selectedKeys,
|
|
18125
18130
|
expandedKeys: treeState.expandedKeys,
|
|
18126
18131
|
onSelect: onSelect,
|