@gingkoo/pandora-explorer 0.0.1-alpha.44 → 0.0.1-alpha.45

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.44
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.45
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -7756,7 +7756,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7756
7756
  return data?.fileList || [];
7757
7757
  }
7758
7758
  //创建和重名
7759
- async function onRename(key, value, info) {
7759
+ async function onRename(key, value, info, type) {
7760
7760
  if (info.create_file) {
7761
7761
  if (curInfo) {
7762
7762
  await createFile?.(value, curInfo);
@@ -7764,7 +7764,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7764
7764
  reloadNode(curInfo?.key);
7765
7765
  }
7766
7766
  } else {
7767
- await _onRename?.(key, value, info);
7767
+ await _onRename?.(key, value, info, type);
7768
7768
  curInfo?.key && loadData(curInfo?.key);
7769
7769
  updata(key, 'title', value);
7770
7770
  }