vxe-table 3.15.45 → 3.15.46
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/es/style.css +1 -1
- package/es/table/module/custom/panel.js +12 -12
- package/es/table/src/methods.js +9 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +26 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +13 -13
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/methods.js +11 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/module/custom/panel.ts +12 -12
- package/packages/table/src/methods.ts +11 -2
- /package/es/{iconfont.1750641764687.ttf → iconfont.1750651550655.ttf} +0 -0
- /package/es/{iconfont.1750641764687.woff → iconfont.1750651550655.woff} +0 -0
- /package/es/{iconfont.1750641764687.woff2 → iconfont.1750651550655.woff2} +0 -0
- /package/lib/{iconfont.1750641764687.ttf → iconfont.1750651550655.ttf} +0 -0
- /package/lib/{iconfont.1750641764687.woff → iconfont.1750651550655.woff} +0 -0
- /package/lib/{iconfont.1750641764687.woff2 → iconfont.1750651550655.woff2} +0 -0
|
@@ -851,12 +851,12 @@ export default {
|
|
|
851
851
|
data() {
|
|
852
852
|
const reactData = {
|
|
853
853
|
dragCol: null,
|
|
854
|
-
dragGroup: null,
|
|
855
|
-
dragValues: null,
|
|
856
854
|
dragTipText: ''
|
|
857
855
|
};
|
|
858
856
|
const internalData = {
|
|
859
857
|
// prevDragCol: undefined,
|
|
858
|
+
// prevDragGroup: undefined,
|
|
859
|
+
// prevDragValues: undefined,
|
|
860
860
|
// prevDragToChild: false,
|
|
861
861
|
// prevDragPos: null
|
|
862
862
|
};
|
|
@@ -1133,12 +1133,12 @@ export default {
|
|
|
1133
1133
|
},
|
|
1134
1134
|
sortDragstartEvent(evnt) {
|
|
1135
1135
|
const $xeTableCustomPanel = this;
|
|
1136
|
-
const
|
|
1136
|
+
const customPanelInternalData = $xeTableCustomPanel.internalData;
|
|
1137
1137
|
if (evnt.dataTransfer) {
|
|
1138
1138
|
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0);
|
|
1139
1139
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1140
|
+
customPanelInternalData.prevDragGroup = null;
|
|
1141
|
+
customPanelInternalData.prevDragValues = null;
|
|
1142
1142
|
},
|
|
1143
1143
|
sortDragendEvent(evnt) {
|
|
1144
1144
|
const $xeTableCustomPanel = this;
|
|
@@ -1156,10 +1156,10 @@ export default {
|
|
|
1156
1156
|
const trEl = evnt.currentTarget;
|
|
1157
1157
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
1158
1158
|
const { isCrossDrag, isSelfToChildDrag, isToChildDrag, dragEndMethod } = columnDragOpts;
|
|
1159
|
-
const { dragCol
|
|
1160
|
-
const { prevDragCol, prevDragPos, prevDragToChild } = customPanelInternalData;
|
|
1159
|
+
const { dragCol } = customPanelReactData;
|
|
1160
|
+
const { prevDragCol, prevDragGroup, prevDragValues, prevDragPos, prevDragToChild } = customPanelInternalData;
|
|
1161
1161
|
const dragOffsetIndex = prevDragPos === 'bottom' ? 1 : 0;
|
|
1162
|
-
if (
|
|
1162
|
+
if (prevDragGroup || prevDragValues) {
|
|
1163
1163
|
if ($xeTable.handlePivotTableAggregatePanelDragendEvent) {
|
|
1164
1164
|
$xeTable.handlePivotTableAggregatePanelDragendEvent(evnt);
|
|
1165
1165
|
}
|
|
@@ -1318,8 +1318,8 @@ export default {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
hideDropTip($xeTableCustomPanel);
|
|
1320
1320
|
customPanelReactData.dragCol = null;
|
|
1321
|
-
|
|
1322
|
-
|
|
1321
|
+
customPanelInternalData.prevDragGroup = null;
|
|
1322
|
+
customPanelInternalData.prevDragValues = null;
|
|
1323
1323
|
trEl.draggable = false;
|
|
1324
1324
|
trEl.removeAttribute('drag-pos');
|
|
1325
1325
|
removeClass(trEl, 'active--drag-target');
|
|
@@ -1339,8 +1339,8 @@ export default {
|
|
|
1339
1339
|
const isControlKey = hasControlKey(evnt);
|
|
1340
1340
|
const colid = optEl.getAttribute('colid');
|
|
1341
1341
|
const column = $xeTable.getColumnById(colid);
|
|
1342
|
-
|
|
1343
|
-
|
|
1342
|
+
customPanelInternalData.prevDragGroup = null;
|
|
1343
|
+
customPanelInternalData.prevDragValues = null;
|
|
1344
1344
|
// 是否移入有效列
|
|
1345
1345
|
if (column && (isCrossDrag || column.level === 1)) {
|
|
1346
1346
|
evnt.preventDefault();
|
package/es/table/src/methods.js
CHANGED
|
@@ -6850,7 +6850,15 @@ const Methods = {
|
|
|
6850
6850
|
}
|
|
6851
6851
|
vLen++;
|
|
6852
6852
|
});
|
|
6853
|
-
|
|
6853
|
+
let isSelected = (sLen >= vLen && (vLen >= 1 || hLen >= 1));
|
|
6854
|
+
if (checkMethod) {
|
|
6855
|
+
if (checkMethod({ $table: $xeTable, row })) {
|
|
6856
|
+
isSelected = sLen >= vLen;
|
|
6857
|
+
}
|
|
6858
|
+
else {
|
|
6859
|
+
isSelected = selectCheckboxMaps[rowid];
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6854
6862
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
6855
6863
|
if (checkField) {
|
|
6856
6864
|
XEUtils.set(row, checkField, isSelected);
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.15.
|
|
2005
|
+
const version = "3.15.46";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2662,7 +2662,7 @@ function isNodeElement(elem) {
|
|
|
2662
2662
|
const {
|
|
2663
2663
|
log: log_log
|
|
2664
2664
|
} = core_.VxeUI;
|
|
2665
|
-
const log_version = `table v${"3.15.
|
|
2665
|
+
const log_version = `table v${"3.15.46"}`;
|
|
2666
2666
|
const warnLog = log_log.create('warn', log_version);
|
|
2667
2667
|
const errLog = log_log.create('error', log_version);
|
|
2668
2668
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -13143,7 +13143,17 @@ const Methods = {
|
|
|
13143
13143
|
}
|
|
13144
13144
|
vLen++;
|
|
13145
13145
|
});
|
|
13146
|
-
|
|
13146
|
+
let isSelected = sLen >= vLen && (vLen >= 1 || hLen >= 1);
|
|
13147
|
+
if (checkMethod) {
|
|
13148
|
+
if (checkMethod({
|
|
13149
|
+
$table: $xeTable,
|
|
13150
|
+
row
|
|
13151
|
+
})) {
|
|
13152
|
+
isSelected = sLen >= vLen;
|
|
13153
|
+
} else {
|
|
13154
|
+
isSelected = selectCheckboxMaps[rowid];
|
|
13155
|
+
}
|
|
13156
|
+
}
|
|
13147
13157
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
|
|
13148
13158
|
if (checkField) {
|
|
13149
13159
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, checkField, isSelected);
|
|
@@ -20191,12 +20201,12 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20191
20201
|
data() {
|
|
20192
20202
|
const reactData = {
|
|
20193
20203
|
dragCol: null,
|
|
20194
|
-
dragGroup: null,
|
|
20195
|
-
dragValues: null,
|
|
20196
20204
|
dragTipText: ''
|
|
20197
20205
|
};
|
|
20198
20206
|
const internalData = {
|
|
20199
20207
|
// prevDragCol: undefined,
|
|
20208
|
+
// prevDragGroup: undefined,
|
|
20209
|
+
// prevDragValues: undefined,
|
|
20200
20210
|
// prevDragToChild: false,
|
|
20201
20211
|
// prevDragPos: null
|
|
20202
20212
|
};
|
|
@@ -20499,12 +20509,12 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20499
20509
|
},
|
|
20500
20510
|
sortDragstartEvent(evnt) {
|
|
20501
20511
|
const $xeTableCustomPanel = this;
|
|
20502
|
-
const
|
|
20512
|
+
const customPanelInternalData = $xeTableCustomPanel.internalData;
|
|
20503
20513
|
if (evnt.dataTransfer) {
|
|
20504
20514
|
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0);
|
|
20505
20515
|
}
|
|
20506
|
-
|
|
20507
|
-
|
|
20516
|
+
customPanelInternalData.prevDragGroup = null;
|
|
20517
|
+
customPanelInternalData.prevDragValues = null;
|
|
20508
20518
|
},
|
|
20509
20519
|
sortDragendEvent(evnt) {
|
|
20510
20520
|
const $xeTableCustomPanel = this;
|
|
@@ -20536,17 +20546,17 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20536
20546
|
dragEndMethod
|
|
20537
20547
|
} = columnDragOpts;
|
|
20538
20548
|
const {
|
|
20539
|
-
dragCol
|
|
20540
|
-
dragGroup,
|
|
20541
|
-
dragValues
|
|
20549
|
+
dragCol
|
|
20542
20550
|
} = customPanelReactData;
|
|
20543
20551
|
const {
|
|
20544
20552
|
prevDragCol,
|
|
20553
|
+
prevDragGroup,
|
|
20554
|
+
prevDragValues,
|
|
20545
20555
|
prevDragPos,
|
|
20546
20556
|
prevDragToChild
|
|
20547
20557
|
} = customPanelInternalData;
|
|
20548
20558
|
const dragOffsetIndex = prevDragPos === 'bottom' ? 1 : 0;
|
|
20549
|
-
if (
|
|
20559
|
+
if (prevDragGroup || prevDragValues) {
|
|
20550
20560
|
if ($xeTable.handlePivotTableAggregatePanelDragendEvent) {
|
|
20551
20561
|
$xeTable.handlePivotTableAggregatePanelDragendEvent(evnt);
|
|
20552
20562
|
}
|
|
@@ -20706,8 +20716,8 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20706
20716
|
}
|
|
20707
20717
|
panel_hideDropTip($xeTableCustomPanel);
|
|
20708
20718
|
customPanelReactData.dragCol = null;
|
|
20709
|
-
|
|
20710
|
-
|
|
20719
|
+
customPanelInternalData.prevDragGroup = null;
|
|
20720
|
+
customPanelInternalData.prevDragValues = null;
|
|
20711
20721
|
trEl.draggable = false;
|
|
20712
20722
|
trEl.removeAttribute('drag-pos');
|
|
20713
20723
|
removeClass(trEl, 'active--drag-target');
|
|
@@ -20734,8 +20744,8 @@ const renderPopupPanel = (h, $xeTableCustomPanel) => {
|
|
|
20734
20744
|
const isControlKey = hasControlKey(evnt);
|
|
20735
20745
|
const colid = optEl.getAttribute('colid');
|
|
20736
20746
|
const column = $xeTable.getColumnById(colid);
|
|
20737
|
-
|
|
20738
|
-
|
|
20747
|
+
customPanelInternalData.prevDragGroup = null;
|
|
20748
|
+
customPanelInternalData.prevDragValues = null;
|
|
20739
20749
|
// 是否移入有效列
|
|
20740
20750
|
if (column && (isCrossDrag || column.level === 1)) {
|
|
20741
20751
|
evnt.preventDefault();
|