@gingkoo/pandora-explorer 0.1.1 → 0.1.3

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.
@@ -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?: 'done' | 'processing';
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.1
2
+ * @gingkoo/pandora-explorer v0.1.3
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,12 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9490
9492
  updateCurListNode: key => {
9491
9493
  updateCurlist(key || '');
9492
9494
  },
9493
- createFolder: createFolder
9495
+ createFolder: createFolder,
9496
+ setNavSelect: params => {
9497
+ if (params) {
9498
+ setCurInfo(params);
9499
+ }
9500
+ }
9494
9501
  }));
9495
9502
  useEffect(() => {
9496
9503
  if (filelist) {
@@ -9646,7 +9653,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9646
9653
  if (data.status == 'Err') {
9647
9654
  setTimeout(() => {
9648
9655
  closeload && setLoading(ApiStatusEnum.READY);
9649
- }, 300);
9656
+ }, 200);
9650
9657
  return null;
9651
9658
  }
9652
9659
  //清空加载过的结点记录
@@ -9700,7 +9707,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9700
9707
  let arr = addData(cloneDeep(data) || [], key, 0);
9701
9708
  if (!isfix) {
9702
9709
  //路径可能不存在, 就需要更新他的更路径
9703
- if (params) {
9710
+ if (params?.source) {
9704
9711
  arr = addData(cloneDeep(data) || [], params.source, 0);
9705
9712
  }
9706
9713
  }