@gingkoo/pandora-explorer 0.0.1-alpha.37 → 0.0.1-alpha.38
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/css.d.ts +7 -7
- package/lib/es/index.js +11 -3
- package/lib/es/index.js.map +1 -1
- package/package.json +7 -6
package/lib/es/css.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const flush: () => void, hydrate: (ids: string[]) => void, cx: (...classNames: import("@emotion/css/create-instance").ClassNamesArg[]) => string, merge: (className: string) => string, getRegisteredStyles: (registeredStyles: string[], className: string) => string, injectGlobal: {
|
|
2
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
3
|
-
(...args: import("@emotion/
|
|
2
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
|
|
3
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
|
|
4
4
|
}, keyframes: {
|
|
5
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
6
|
-
(...args: import("@emotion/
|
|
5
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
6
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
7
7
|
}, css: {
|
|
8
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
9
|
-
(...args: import("@emotion/
|
|
10
|
-
}, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/
|
|
8
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
9
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
10
|
+
}, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/css/create-instance").EmotionCache;
|
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.38
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -5239,7 +5239,6 @@ function TableItem(props) {
|
|
|
5239
5239
|
onClone
|
|
5240
5240
|
}) => {
|
|
5241
5241
|
if (!props.isOpenMenu) return;
|
|
5242
|
-
if (!props.menu) return;
|
|
5243
5242
|
let menudata = [];
|
|
5244
5243
|
if (getMenu(props.id)) {
|
|
5245
5244
|
menudata = getMenu(props.id);
|
|
@@ -5320,6 +5319,10 @@ function TableItem(props) {
|
|
|
5320
5319
|
}
|
|
5321
5320
|
},
|
|
5322
5321
|
onBlur: e => {
|
|
5322
|
+
if (props.create_file) {
|
|
5323
|
+
onRename?.(e.target.value);
|
|
5324
|
+
return;
|
|
5325
|
+
}
|
|
5323
5326
|
if (e.target.value === param[v?.key]) {
|
|
5324
5327
|
onRename?.(false);
|
|
5325
5328
|
return;
|
|
@@ -5961,6 +5964,11 @@ const ExplorerMenu = props => {
|
|
|
5961
5964
|
useEffect(() => {
|
|
5962
5965
|
setEventKey(expandedKeys);
|
|
5963
5966
|
}, [expandedKeys]);
|
|
5967
|
+
useEffect(() => {
|
|
5968
|
+
if (typeof store.curInfo?.key === 'string') {
|
|
5969
|
+
setSelect(store.curInfo?.key);
|
|
5970
|
+
}
|
|
5971
|
+
}, [store.curInfo?.key]);
|
|
5964
5972
|
return jsx("div", {
|
|
5965
5973
|
className: 'frame-left',
|
|
5966
5974
|
onContextMenu: e => {
|
|
@@ -5982,7 +5990,7 @@ const ExplorerMenu = props => {
|
|
|
5982
5990
|
onChange: onChange,
|
|
5983
5991
|
onRename: onRename,
|
|
5984
5992
|
onSelect: v => {
|
|
5985
|
-
setSelect(v.key);
|
|
5993
|
+
// setSelect(v.key);
|
|
5986
5994
|
if (v.key === store.curInfo?.key) return;
|
|
5987
5995
|
store.setPathDisplay(v?.pathDisplay);
|
|
5988
5996
|
loadData(v.key);
|