@gingkoo/pandora-explorer 0.0.1-alpha.58 → 0.0.1-alpha.59
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.
|
@@ -4,7 +4,7 @@ interface TileProps {
|
|
|
4
4
|
onMenuClick?: (key: string, param: any) => void;
|
|
5
5
|
onDblclick?: (key: string, param: any) => void;
|
|
6
6
|
onSelect?: (key: string, param: any) => void;
|
|
7
|
-
onRename?: (key: string, value: string, param: any) => void;
|
|
7
|
+
onRename?: (key: string, value: string | boolean, param: any) => void;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
10
|
export default function Tile(props: TileProps): import("react/jsx-runtime").JSX.Element;
|
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.59
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -5390,6 +5390,7 @@ var TreeItem = (props => {
|
|
|
5390
5390
|
setTitle(props.title);
|
|
5391
5391
|
}, [props.title]);
|
|
5392
5392
|
let menudata = [];
|
|
5393
|
+
if (props?.menu == false) return;
|
|
5393
5394
|
if (getMenu(props.id)) {
|
|
5394
5395
|
menudata = getMenu(props.id);
|
|
5395
5396
|
} else if (props.type && getMenu(props.type)) {
|
|
@@ -6286,16 +6287,15 @@ function Tile(props) {
|
|
|
6286
6287
|
onRename?.(v.key, e.target?.value, v);
|
|
6287
6288
|
return;
|
|
6288
6289
|
}
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
setRekey(null);
|
|
6290
|
+
onRename?.(v.key, e.target?.value, v);
|
|
6291
|
+
}
|
|
6292
|
+
if (e.key === 'Escape') {
|
|
6293
|
+
onRename?.(v.key, false, v);
|
|
6294
|
+
return;
|
|
6295
6295
|
}
|
|
6296
6296
|
},
|
|
6297
6297
|
onBlur: e => {
|
|
6298
|
-
if (
|
|
6298
|
+
if (v.create_file) {
|
|
6299
6299
|
onRename?.(v.key, e.target?.value, v);
|
|
6300
6300
|
return;
|
|
6301
6301
|
}
|
|
@@ -6592,6 +6592,7 @@ const SelectBox = props => {
|
|
|
6592
6592
|
if (!key) return;
|
|
6593
6593
|
typeof props.onUpload === 'function' && props?.onUpload(files, key, empty);
|
|
6594
6594
|
store.curInfo && loadData(store.curInfo?.key);
|
|
6595
|
+
store.curInfo?.key && store.reloadNode(store.curInfo.key);
|
|
6595
6596
|
}, 500);
|
|
6596
6597
|
};
|
|
6597
6598
|
function handleDragEnter(e) {
|
|
@@ -7534,7 +7535,7 @@ function ExplorerInfo(props) {
|
|
|
7534
7535
|
children: [jsx("span", {
|
|
7535
7536
|
children: typeof info?.size == 'number' ? convertBytesToSize(info?.size) : info?.size || '-'
|
|
7536
7537
|
}), jsx("span", {
|
|
7537
|
-
children: info?.fixTime || '
|
|
7538
|
+
children: info?.fixTime || ''
|
|
7538
7539
|
})]
|
|
7539
7540
|
})]
|
|
7540
7541
|
})]
|