@gingkoo/pandora-explorer 0.0.1-alpha.43 → 0.0.1-alpha.44
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/lib/es/index.js +9 -3
- package/lib/es/index.js.map +1 -1
- package/lib/es/types.d.ts +2 -2
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-explorer v0.0.1-alpha.
|
|
2
|
+
* @gingkoo/pandora-explorer v0.0.1-alpha.44
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -5968,7 +5968,7 @@ const ExplorerMenu = props => {
|
|
|
5968
5968
|
expandedKeys,
|
|
5969
5969
|
onMenuClick,
|
|
5970
5970
|
onChange,
|
|
5971
|
-
onRename
|
|
5971
|
+
onRename: _onRename
|
|
5972
5972
|
} = props;
|
|
5973
5973
|
const store = useContext(ExampleContext);
|
|
5974
5974
|
const [eventKey, setEventKey] = useState([]);
|
|
@@ -5981,6 +5981,9 @@ const ExplorerMenu = props => {
|
|
|
5981
5981
|
setSelect(store.curInfo?.key);
|
|
5982
5982
|
}
|
|
5983
5983
|
}, [store.curInfo?.key]);
|
|
5984
|
+
function onRename(key, value, info) {
|
|
5985
|
+
_onRename(key, value, info, 'main');
|
|
5986
|
+
}
|
|
5984
5987
|
return jsx("div", {
|
|
5985
5988
|
className: 'frame-left',
|
|
5986
5989
|
onContextMenu: e => {
|
|
@@ -7203,7 +7206,7 @@ const Layout$1 = props => {
|
|
|
7203
7206
|
onClick,
|
|
7204
7207
|
onCheck,
|
|
7205
7208
|
onDblclick,
|
|
7206
|
-
onRename,
|
|
7209
|
+
onRename: _onRename,
|
|
7207
7210
|
onMenuClick: _onMenuClick,
|
|
7208
7211
|
onUpload
|
|
7209
7212
|
} = props;
|
|
@@ -7254,6 +7257,9 @@ const Layout$1 = props => {
|
|
|
7254
7257
|
onDblclick?.(key, info);
|
|
7255
7258
|
}
|
|
7256
7259
|
}
|
|
7260
|
+
function onRename(key, value, info) {
|
|
7261
|
+
_onRename(key, value, info, 'main');
|
|
7262
|
+
}
|
|
7257
7263
|
return jsxs("div", {
|
|
7258
7264
|
className: 'file-continer-main',
|
|
7259
7265
|
onClick: () => {
|