@gingkoo/pandora-explorer 0.0.1-alpha.113 → 0.0.1-alpha.115

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/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+
2
+
3
+ ✨ feat: 新功能
4
+ 🐛 fix: 修复
5
+ 🌱 perf: 优化
6
+ 🎨 style: 样式调整
7
+ 🔨 refactor: 重构
8
+ 📝 docs: 文档变更
9
+ 💡 chore: 构建过程或辅助工具的变动
10
+ 🔖 wip: 发布新版本
11
+
12
+
13
+ # 0.0.1
14
+ 2024 年 4 月 xx 日
15
+
16
+ - 🔖 wip: 发布第一版版本
17
+
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.113
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.115
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -9508,27 +9508,27 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9508
9508
  if (e.altKey && e.key === '1') {
9509
9509
  setMenutype('tile');
9510
9510
  }
9511
- if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
9512
- if (!isEdit) return;
9513
- if (curSelect && dataMap?.[curSelect]) {
9514
- onCopy?.(dataMap?.[curSelect]);
9515
- } else {
9516
- onCopy?.(null);
9517
- }
9518
- }
9519
- if ((e.ctrlKey || e.metaKey) && e.key === 'x') {
9520
- if (!isEdit) return;
9521
- if (curSelect && dataMap?.[curSelect]) {
9522
- onShear?.(dataMap?.[curSelect]);
9523
- } else {
9524
- onShear?.(null);
9525
- }
9526
- }
9527
- if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
9528
- if (!isEdit || reamekey || menuRename) return;
9529
- curInfo && onPaste?.(curInfo);
9530
- curInfo && reloadNode(curInfo.key);
9531
- }
9511
+ // if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
9512
+ // if (!isEdit) return;
9513
+ // if (curSelect && dataMap?.[curSelect]) {
9514
+ // onCopy?.(dataMap?.[curSelect]);
9515
+ // } else {
9516
+ // onCopy?.(null);
9517
+ // }
9518
+ // }
9519
+ // if ((e.ctrlKey || e.metaKey) && e.key === 'x') {
9520
+ // if (!isEdit) return;
9521
+ // if (curSelect && dataMap?.[curSelect]) {
9522
+ // onShear?.(dataMap?.[curSelect]);
9523
+ // } else {
9524
+ // onShear?.(null);
9525
+ // }
9526
+ // }
9527
+ // if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
9528
+ // if (!isEdit || reamekey || menuRename) return;
9529
+ // curInfo && onPaste?.(curInfo);
9530
+ // curInfo && reloadNode(curInfo.key);
9531
+ // }
9532
9532
  if (e.key == 'Shift') {
9533
9533
  setShift(true);
9534
9534
  }
@@ -9631,7 +9631,9 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9631
9631
  let data = await props.loadData?.(key);
9632
9632
  return data?.fileList || [];
9633
9633
  }
9634
+ // 直接通过 刷新数节点 达到刷新效果
9634
9635
  const reloadNode = (key, params) => {
9636
+ if (!props.isNavtab) return;
9635
9637
  let isfix = false;
9636
9638
  const addData = (data, key) => {
9637
9639
  let arr = data;
@@ -9991,6 +9993,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9991
9993
  setLoading(ApiStatusEnum.LOADING);
9992
9994
  await createFile?.(value, param, info);
9993
9995
  await loadData?.(curInfo?.key || '', null, false);
9996
+ reloadNode(curInfo?.key || '');
9994
9997
  setCreateState(false);
9995
9998
  setLoading(ApiStatusEnum.READY);
9996
9999
  }