vxe-table 3.19.47 → 3.19.49
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/src/methods.js +26 -14
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +7 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +26 -14
- 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 +2 -2
- package/packages/table/src/methods.ts +26 -14
- /package/es/{iconfont.1769144524604.ttf → iconfont.1770107781487.ttf} +0 -0
- /package/es/{iconfont.1769144524604.woff → iconfont.1770107781487.woff} +0 -0
- /package/es/{iconfont.1769144524604.woff2 → iconfont.1770107781487.woff2} +0 -0
- /package/lib/{iconfont.1769144524604.ttf → iconfont.1770107781487.ttf} +0 -0
- /package/lib/{iconfont.1769144524604.woff → iconfont.1770107781487.woff} +0 -0
- /package/lib/{iconfont.1769144524604.woff2 → iconfont.1770107781487.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -455,14 +455,19 @@ function cacheColumnMap($xeTable) {
|
|
|
455
455
|
} else {
|
|
456
456
|
tableFullColumn.forEach(handleFunc);
|
|
457
457
|
}
|
|
458
|
-
if (expandColumn
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
458
|
+
if (expandColumn) {
|
|
459
|
+
if (expandOpts.mode !== 'fixed' && virtualYOpts.enabled) {
|
|
460
|
+
(0, _log.warnLog)('vxe.error.notConflictProp', ['column.type="expand', 'virtual-y-config.enabled=false']);
|
|
461
|
+
}
|
|
462
|
+
if (expandOpts.mode !== 'fixed' && mouseOpts.area) {
|
|
463
|
+
(0, _log.errLog)('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
464
|
+
}
|
|
465
|
+
if (expandOpts.mode !== 'inside' && treeConfig && !treeOpts.transform) {
|
|
466
|
+
(0, _log.errLog)('vxe.error.notConflictProp', ['tree-config.transform=false', 'expand-config.mode=fixed']);
|
|
467
|
+
}
|
|
468
|
+
if (props.spanMethod) {
|
|
469
|
+
(0, _log.warnLog)('vxe.error.notSupportProp', ['column.type=expand', 'span-method', 'span-method=null']);
|
|
470
|
+
}
|
|
466
471
|
}
|
|
467
472
|
if (htmlColumn) {
|
|
468
473
|
if (!columnOpts.useKey) {
|
|
@@ -10309,11 +10314,13 @@ const tableMethods = {
|
|
|
10309
10314
|
if (isPeerDrag && !isCrossDrag) {
|
|
10310
10315
|
if (oldRest.row[parentField] !== newRest.row[parentField]) {
|
|
10311
10316
|
// 非同级
|
|
10312
|
-
|
|
10317
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10318
|
+
return Promise.resolve(errRest);
|
|
10313
10319
|
}
|
|
10314
10320
|
} else {
|
|
10315
10321
|
if (!isCrossDrag) {
|
|
10316
|
-
|
|
10322
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10323
|
+
return Promise.resolve(errRest);
|
|
10317
10324
|
}
|
|
10318
10325
|
if (oldAllMaps[newRowid]) {
|
|
10319
10326
|
isSelfToChildStatus = true;
|
|
@@ -10324,19 +10331,22 @@ const tableMethods = {
|
|
|
10324
10331
|
content: getI18n('vxe.error.treeDragChild')
|
|
10325
10332
|
});
|
|
10326
10333
|
}
|
|
10327
|
-
|
|
10334
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10335
|
+
return Promise.resolve(errRest);
|
|
10328
10336
|
}
|
|
10329
10337
|
}
|
|
10330
10338
|
}
|
|
10331
10339
|
} else if (oldLevel) {
|
|
10332
10340
|
// 子到根
|
|
10333
10341
|
if (!isCrossDrag) {
|
|
10334
|
-
|
|
10342
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10343
|
+
return Promise.resolve(errRest);
|
|
10335
10344
|
}
|
|
10336
10345
|
} else if (newLevel) {
|
|
10337
10346
|
// 根到子
|
|
10338
10347
|
if (!isCrossDrag) {
|
|
10339
|
-
|
|
10348
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10349
|
+
return Promise.resolve(errRest);
|
|
10340
10350
|
}
|
|
10341
10351
|
if (oldAllMaps[newRowid]) {
|
|
10342
10352
|
isSelfToChildStatus = true;
|
|
@@ -10347,7 +10357,8 @@ const tableMethods = {
|
|
|
10347
10357
|
content: getI18n('vxe.error.treeDragChild')
|
|
10348
10358
|
});
|
|
10349
10359
|
}
|
|
10350
|
-
|
|
10360
|
+
handleRowDragEndClearStatus($xeTable);
|
|
10361
|
+
return Promise.resolve(errRest);
|
|
10351
10362
|
}
|
|
10352
10363
|
}
|
|
10353
10364
|
} else {
|
|
@@ -10367,6 +10378,7 @@ const tableMethods = {
|
|
|
10367
10378
|
// 移出源位置
|
|
10368
10379
|
if (oldRest && newRest) {
|
|
10369
10380
|
const fullList = _xeUtils.default.toTreeArray(internalData.afterTreeFullData, {
|
|
10381
|
+
updated: false,
|
|
10370
10382
|
key: rowField,
|
|
10371
10383
|
parentKey: parentField,
|
|
10372
10384
|
children: mapChildrenField
|