@gingkoo/pandora-explorer 0.0.1-alpha.3 → 0.0.1-alpha.4
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 +13 -10
- package/lib/es/index.js.map +1 -1
- package/lib/es/types.d.ts +1 -1
- package/lib/umd/index.js +13 -10
- package/lib/umd/index.js.map +1 -1
- package/lib/umd/index.min.js +1 -1
- package/lib/umd/index.min.js.map +1 -1
- package/package.json +1 -1
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.4
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -6024,7 +6024,7 @@ const SelectBox = props => {
|
|
|
6024
6024
|
cur.current = [];
|
|
6025
6025
|
}, 200);
|
|
6026
6026
|
}
|
|
6027
|
-
if (selects.length) {
|
|
6027
|
+
if (isDrag && selects.length) {
|
|
6028
6028
|
if (target.current) {
|
|
6029
6029
|
target.current.style.cssText = `
|
|
6030
6030
|
position: absolute;
|
|
@@ -6261,7 +6261,7 @@ const SelectBox = props => {
|
|
|
6261
6261
|
onMouseDown: e => {
|
|
6262
6262
|
if (e.button === 2) return;
|
|
6263
6263
|
let type = isSelectTarget(e);
|
|
6264
|
-
if (checks.includes(type[0])) {
|
|
6264
|
+
if (type && checks.includes(type[0])) {
|
|
6265
6265
|
if (!isDrag && checkMode == 'check') {
|
|
6266
6266
|
let arr = selects.filter(v => v !== type?.[0]);
|
|
6267
6267
|
setSelect(arr);
|
|
@@ -6271,7 +6271,7 @@ const SelectBox = props => {
|
|
|
6271
6271
|
isDrag && createVDom(e);
|
|
6272
6272
|
return;
|
|
6273
6273
|
}
|
|
6274
|
-
if (Array.isArray(type)) {
|
|
6274
|
+
if (type && Array.isArray(type)) {
|
|
6275
6275
|
if (checkMode == 'check') {
|
|
6276
6276
|
if (type[0] && selects.includes(type[0])) {
|
|
6277
6277
|
let arr = selects.filter(v => v !== type?.[0]);
|
|
@@ -6289,10 +6289,11 @@ const SelectBox = props => {
|
|
|
6289
6289
|
return;
|
|
6290
6290
|
}
|
|
6291
6291
|
if (selects.length) {
|
|
6292
|
-
if (checkMode
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6292
|
+
if (checkMode !== 'check') {
|
|
6293
|
+
setSelect([]);
|
|
6294
|
+
onChange([]);
|
|
6295
|
+
empty();
|
|
6296
|
+
}
|
|
6296
6297
|
}
|
|
6297
6298
|
clickRef.current = false;
|
|
6298
6299
|
isSelectBoxes && setStageClickInfo({
|
|
@@ -6948,7 +6949,10 @@ const Layout$1 = props => {
|
|
|
6948
6949
|
onRename: onRename,
|
|
6949
6950
|
onMenuClick: onMenuClick,
|
|
6950
6951
|
onDblclick: onDblclick,
|
|
6951
|
-
loadData: loadNode
|
|
6952
|
+
loadData: loadNode,
|
|
6953
|
+
onChange: v => {
|
|
6954
|
+
store.setCurList(v);
|
|
6955
|
+
}
|
|
6952
6956
|
}), store?.menutype == 'tile' && jsx(Tile, {
|
|
6953
6957
|
width: width,
|
|
6954
6958
|
height: height,
|
|
@@ -7218,7 +7222,6 @@ const Explorer = props => {
|
|
|
7218
7222
|
});
|
|
7219
7223
|
};
|
|
7220
7224
|
useEffect(() => {
|
|
7221
|
-
console.log(data, '数据改变');
|
|
7222
7225
|
setCurList(data || []);
|
|
7223
7226
|
}, [data]);
|
|
7224
7227
|
useEffect(() => {
|