@gingkoo/pandora-explorer 0.0.1-alpha.83 → 0.0.1-alpha.84
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 +11 -12
- package/lib/es/index.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.84
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -7090,26 +7090,27 @@ const SelectBox = props => {
|
|
|
7090
7090
|
if (cur?.current?.length && isDrag) {
|
|
7091
7091
|
cur.current?.map((v, i) => {
|
|
7092
7092
|
let data = v.getBoundingClientRect();
|
|
7093
|
+
let is = store?.menutype == 'column';
|
|
7093
7094
|
if (action == 'stack') {
|
|
7094
7095
|
v.style.cssText = `
|
|
7095
7096
|
position: absolute;
|
|
7096
|
-
width:${data.width}px;
|
|
7097
7097
|
transition: ${showDragAnimation.current ? '.2s' : 'none'} ;
|
|
7098
7098
|
top:${y + 25 + i * 3}px;
|
|
7099
7099
|
left:${x + i * 3 + 10}px;
|
|
7100
7100
|
opacity:1;
|
|
7101
7101
|
z-index:-${i};
|
|
7102
|
+
width:${is ? data.width : null}px;
|
|
7102
7103
|
`;
|
|
7103
7104
|
} else {
|
|
7104
7105
|
v.style.cssText = `
|
|
7105
7106
|
position: absolute;
|
|
7106
|
-
width:${data.width}px;
|
|
7107
7107
|
transition: ${showDragAnimation.current ? '.2s' : 'none'} ;
|
|
7108
7108
|
top:${y + 25}px;
|
|
7109
7109
|
left:${x + 10}px;
|
|
7110
7110
|
z-index:-${i};
|
|
7111
7111
|
opacity:1;
|
|
7112
7112
|
transform: rotate(${4 * (i % 2 ? i * -1 : i)}deg);
|
|
7113
|
+
width:${is ? data.width : null}px;
|
|
7113
7114
|
`;
|
|
7114
7115
|
}
|
|
7115
7116
|
});
|
|
@@ -7422,23 +7423,21 @@ const SelectBox = props => {
|
|
|
7422
7423
|
startkey: curColumnkey
|
|
7423
7424
|
});
|
|
7424
7425
|
if (!isDrag && checkMode == 'check') {
|
|
7425
|
-
|
|
7426
|
+
if (!checks.includes(type?.[0])) {
|
|
7427
|
+
let arr = [...selects, ...type];
|
|
7428
|
+
setSelect(arr);
|
|
7429
|
+
onChange(arr);
|
|
7430
|
+
} else {
|
|
7426
7431
|
let arr = checks.filter(v => v !== type?.[0]);
|
|
7427
7432
|
setSelect(arr);
|
|
7428
7433
|
onChange(arr);
|
|
7429
|
-
}
|
|
7434
|
+
}
|
|
7430
7435
|
}
|
|
7431
7436
|
if (checks?.length > 1) return;
|
|
7432
7437
|
}
|
|
7433
7438
|
//在区域未选中
|
|
7434
7439
|
if (Array.isArray(type)) {
|
|
7435
|
-
if (checkMode
|
|
7436
|
-
if (!checks.includes(type?.[0])) {
|
|
7437
|
-
let arr = [...selects, ...type];
|
|
7438
|
-
setSelect(arr);
|
|
7439
|
-
onChange(arr);
|
|
7440
|
-
}
|
|
7441
|
-
} else {
|
|
7440
|
+
if (checkMode != 'check') {
|
|
7442
7441
|
setSelect(type);
|
|
7443
7442
|
onChange(type);
|
|
7444
7443
|
}
|