@gingkoo/pandora-explorer 0.1.1 → 0.1.2
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/components/icons/index.d.ts +1 -1
- package/lib/es/index.js +13 -4
- package/lib/es/index.js.map +1 -1
- package/lib/es/types.d.ts +4 -4
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export declare function NullDataSvg(): import("react/jsx-runtime").JSX.Element;
|
|
|
31
31
|
export declare function SuffixIcon({ className, suffix, status, }: {
|
|
32
32
|
className: string;
|
|
33
33
|
suffix: string;
|
|
34
|
-
status?:
|
|
34
|
+
status?: string | React.ReactNode;
|
|
35
35
|
}): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export declare function StatusIcon({ status }: {
|
|
37
37
|
status: string | React.ReactNode;
|
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-explorer v0.1.
|
|
2
|
+
* @gingkoo/pandora-explorer v0.1.2
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -5588,6 +5588,7 @@ function TableItem(props) {
|
|
|
5588
5588
|
x = e.nativeEvent.clientX + 5;
|
|
5589
5589
|
y = e.nativeEvent.clientY + 5;
|
|
5590
5590
|
if (!props.isOpenMenu) return;
|
|
5591
|
+
if (props?.menu === false) return;
|
|
5591
5592
|
let menudata = [];
|
|
5592
5593
|
if (getMenu(props.id)) {
|
|
5593
5594
|
menudata = getMenu(props.id);
|
|
@@ -6676,6 +6677,7 @@ const Tile = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6676
6677
|
let y = 0;
|
|
6677
6678
|
x = e.nativeEvent.clientX + 5;
|
|
6678
6679
|
y = e.nativeEvent.clientY + 5;
|
|
6680
|
+
if (props?.menu == false) return;
|
|
6679
6681
|
props.openMenu({
|
|
6680
6682
|
x: x,
|
|
6681
6683
|
y: y,
|
|
@@ -9490,7 +9492,14 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9490
9492
|
updateCurListNode: key => {
|
|
9491
9493
|
updateCurlist(key || '');
|
|
9492
9494
|
},
|
|
9493
|
-
createFolder: createFolder
|
|
9495
|
+
createFolder: createFolder,
|
|
9496
|
+
setNavSelect: key => {
|
|
9497
|
+
if (key) {
|
|
9498
|
+
setCurInfo({
|
|
9499
|
+
key
|
|
9500
|
+
});
|
|
9501
|
+
}
|
|
9502
|
+
}
|
|
9494
9503
|
}));
|
|
9495
9504
|
useEffect(() => {
|
|
9496
9505
|
if (filelist) {
|
|
@@ -9646,7 +9655,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9646
9655
|
if (data.status == 'Err') {
|
|
9647
9656
|
setTimeout(() => {
|
|
9648
9657
|
closeload && setLoading(ApiStatusEnum.READY);
|
|
9649
|
-
},
|
|
9658
|
+
}, 200);
|
|
9650
9659
|
return null;
|
|
9651
9660
|
}
|
|
9652
9661
|
//清空加载过的结点记录
|
|
@@ -9700,7 +9709,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9700
9709
|
let arr = addData(cloneDeep(data) || [], key, 0);
|
|
9701
9710
|
if (!isfix) {
|
|
9702
9711
|
//路径可能不存在, 就需要更新他的更路径
|
|
9703
|
-
if (params) {
|
|
9712
|
+
if (params?.source) {
|
|
9704
9713
|
arr = addData(cloneDeep(data) || [], params.source, 0);
|
|
9705
9714
|
}
|
|
9706
9715
|
}
|