vxe-table 4.16.0-beta.6 → 4.16.0-beta.8
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +30 -0
- package/es/locale/lang/de-DE.js +30 -0
- package/es/locale/lang/en-US.js +30 -0
- package/es/locale/lang/es-ES.js +30 -0
- package/es/locale/lang/fr-FR.js +30 -0
- package/es/locale/lang/hu-HU.js +30 -0
- package/es/locale/lang/hy-AM.js +30 -0
- package/es/locale/lang/id-ID.js +30 -0
- package/es/locale/lang/it-IT.js +30 -0
- package/es/locale/lang/ja-JP.js +30 -0
- package/es/locale/lang/ko-KR.js +30 -0
- package/es/locale/lang/ms-MY.js +30 -0
- package/es/locale/lang/nb-NO.js +30 -0
- package/es/locale/lang/pt-BR.js +30 -0
- package/es/locale/lang/ru-RU.js +30 -0
- package/es/locale/lang/th-TH.js +30 -0
- package/es/locale/lang/ug-CN.js +30 -0
- package/es/locale/lang/uk-UA.js +30 -0
- package/es/locale/lang/uz-UZ.js +30 -0
- package/es/locale/lang/vi-VN.js +30 -0
- package/es/locale/lang/zh-CHT.js +30 -0
- package/es/locale/lang/zh-CN.js +32 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +119 -125
- package/es/table/src/anime.js +4 -4
- package/es/table/src/table.js +147 -71
- package/es/table/style.css +178 -163
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +178 -163
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +64 -37
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +30 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +30 -0
- package/lib/locale/lang/de-DE.js +30 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +30 -0
- package/lib/locale/lang/en-US.js +30 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +30 -0
- package/lib/locale/lang/es-ES.js +30 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +30 -0
- package/lib/locale/lang/fr-FR.js +30 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +30 -0
- package/lib/locale/lang/hu-HU.js +30 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +30 -0
- package/lib/locale/lang/hy-AM.js +30 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +30 -0
- package/lib/locale/lang/id-ID.js +30 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +30 -0
- package/lib/locale/lang/it-IT.js +30 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +30 -0
- package/lib/locale/lang/ja-JP.js +30 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +30 -0
- package/lib/locale/lang/ko-KR.js +30 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +30 -0
- package/lib/locale/lang/ms-MY.js +30 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +30 -0
- package/lib/locale/lang/nb-NO.js +30 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +30 -0
- package/lib/locale/lang/pt-BR.js +30 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +30 -0
- package/lib/locale/lang/ru-RU.js +30 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +30 -0
- package/lib/locale/lang/th-TH.js +30 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +30 -0
- package/lib/locale/lang/ug-CN.js +30 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +30 -0
- package/lib/locale/lang/uk-UA.js +30 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +30 -0
- package/lib/locale/lang/uz-UZ.js +30 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +30 -0
- package/lib/locale/lang/vi-VN.js +30 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +30 -0
- package/lib/locale/lang/zh-CHT.js +30 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +30 -0
- package/lib/locale/lang/zh-CN.js +32 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +32 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +2 -8
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/anime.js +4 -4
- package/lib/table/src/anime.min.js +1 -1
- package/lib/table/src/table.js +23 -23
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +178 -163
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +178 -163
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +3 -2
- package/packages/locale/lang/ar-EG.ts +30 -0
- package/packages/locale/lang/de-DE.ts +30 -0
- package/packages/locale/lang/en-US.ts +30 -0
- package/packages/locale/lang/es-ES.ts +30 -0
- package/packages/locale/lang/fr-FR.ts +30 -0
- package/packages/locale/lang/hu-HU.ts +30 -0
- package/packages/locale/lang/hy-AM.ts +30 -0
- package/packages/locale/lang/id-ID.ts +30 -0
- package/packages/locale/lang/it-IT.ts +30 -0
- package/packages/locale/lang/ja-JP.ts +30 -0
- package/packages/locale/lang/ko-KR.ts +30 -0
- package/packages/locale/lang/ms-MY.ts +30 -0
- package/packages/locale/lang/nb-NO.ts +30 -0
- package/packages/locale/lang/pt-BR.ts +30 -0
- package/packages/locale/lang/ru-RU.ts +30 -0
- package/packages/locale/lang/th-TH.ts +30 -0
- package/packages/locale/lang/ug-CN.ts +30 -0
- package/packages/locale/lang/uk-UA.ts +30 -0
- package/packages/locale/lang/uz-UZ.ts +30 -0
- package/packages/locale/lang/vi-VN.ts +30 -0
- package/packages/locale/lang/zh-CHT.ts +30 -0
- package/packages/locale/lang/zh-CN.ts +32 -0
- package/packages/table/module/custom/panel.ts +128 -134
- package/packages/table/src/anime.ts +4 -4
- package/packages/table/src/table.ts +150 -72
- package/styles/components/table.scss +166 -165
- /package/es/{iconfont.1755597300201.ttf → iconfont.1755775667994.ttf} +0 -0
- /package/es/{iconfont.1755597300201.woff → iconfont.1755775667994.woff} +0 -0
- /package/es/{iconfont.1755597300201.woff2 → iconfont.1755775667994.woff2} +0 -0
- /package/lib/{iconfont.1755597300201.ttf → iconfont.1755775667994.ttf} +0 -0
- /package/lib/{iconfont.1755597300201.woff → iconfont.1755775667994.woff} +0 -0
- /package/lib/{iconfont.1755597300201.woff2 → iconfont.1755775667994.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, reactive, ref, provide, inject, nextTick, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue';
|
|
1
|
+
import { h, reactive, ref, provide, inject, nextTick, Teleport, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue';
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp';
|
|
3
3
|
import XEUtils from 'xe-utils';
|
|
4
4
|
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey } from '../../ui/src/dom';
|
|
@@ -44,6 +44,9 @@ export default defineVxeComponent({
|
|
|
44
44
|
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading');
|
|
45
45
|
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip');
|
|
46
46
|
const $xeTabs = inject('$xeTabs', null);
|
|
47
|
+
const $xeGrid = inject('$xeGrid', null);
|
|
48
|
+
const $xeGantt = inject('$xeGantt', null);
|
|
49
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
47
50
|
const { computeSize } = useFns.useSize(props);
|
|
48
51
|
const reactData = reactive({
|
|
49
52
|
// 低性能的静态列
|
|
@@ -306,6 +309,7 @@ export default defineVxeComponent({
|
|
|
306
309
|
const refTableRightHeader = ref();
|
|
307
310
|
const refTableRightBody = ref();
|
|
308
311
|
const refTableRightFooter = ref();
|
|
312
|
+
const refTeleportWrapper = ref();
|
|
309
313
|
const refLeftContainer = ref();
|
|
310
314
|
const refRightContainer = ref();
|
|
311
315
|
const refColResizeBar = ref();
|
|
@@ -328,9 +332,6 @@ export default defineVxeComponent({
|
|
|
328
332
|
const refScrollYBottomCornerElem = ref();
|
|
329
333
|
const refScrollXSpaceElem = ref();
|
|
330
334
|
const refScrollYSpaceElem = ref();
|
|
331
|
-
const $xeGrid = inject('$xeGrid', null);
|
|
332
|
-
const $xeGantt = inject('$xeGantt', null);
|
|
333
|
-
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
334
335
|
let $xeToolbar;
|
|
335
336
|
const computeTableId = computed(() => {
|
|
336
337
|
const { id } = props;
|
|
@@ -447,8 +448,18 @@ export default defineVxeComponent({
|
|
|
447
448
|
});
|
|
448
449
|
const computeHeaderCellOpts = computed(() => {
|
|
449
450
|
const headerCellOpts = Object.assign({}, getConfig().table.headerCellConfig, props.headerCellConfig);
|
|
451
|
+
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
450
452
|
const cellOpts = computeCellOpts.value;
|
|
451
|
-
|
|
453
|
+
let headCellHeight = XEUtils.toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height));
|
|
454
|
+
if ($xeGantt) {
|
|
455
|
+
const { computeTaskScaleConfs } = $xeGantt.getComputeMaps();
|
|
456
|
+
const taskScaleConfs = computeTaskScaleConfs.value;
|
|
457
|
+
if (taskScaleConfs && taskScaleConfs.length > 2) {
|
|
458
|
+
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length;
|
|
459
|
+
headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
headerCellOpts.height = headCellHeight;
|
|
452
463
|
return headerCellOpts;
|
|
453
464
|
});
|
|
454
465
|
const computeFooterCellOpts = computed(() => {
|
|
@@ -7706,17 +7717,24 @@ export default defineVxeComponent({
|
|
|
7706
7717
|
reactData.dragTipText = tipContent;
|
|
7707
7718
|
};
|
|
7708
7719
|
const showDropTip = (evnt, trEl, thEl, showLine, dragPos) => {
|
|
7709
|
-
|
|
7710
|
-
if (
|
|
7720
|
+
let wrapperEl = refElem.value;
|
|
7721
|
+
if ($xeGantt && trEl) {
|
|
7722
|
+
const { refGanttContainerElem } = $xeGantt.getRefMaps();
|
|
7723
|
+
const ganttContainerElem = refGanttContainerElem.value;
|
|
7724
|
+
if (ganttContainerElem) {
|
|
7725
|
+
wrapperEl = ganttContainerElem;
|
|
7726
|
+
}
|
|
7727
|
+
}
|
|
7728
|
+
if (!wrapperEl) {
|
|
7711
7729
|
return;
|
|
7712
7730
|
}
|
|
7713
7731
|
const { overflowX, scrollbarWidth, overflowY, scrollbarHeight } = reactData;
|
|
7714
7732
|
const { prevDragToChild } = internalData;
|
|
7715
|
-
const wrapperRect =
|
|
7733
|
+
const wrapperRect = wrapperEl.getBoundingClientRect();
|
|
7716
7734
|
const osbWidth = overflowY ? scrollbarWidth : 0;
|
|
7717
7735
|
const osbHeight = overflowX ? scrollbarHeight : 0;
|
|
7718
|
-
const tableWrapperWidth =
|
|
7719
|
-
const tableWrapperHeight =
|
|
7736
|
+
const tableWrapperWidth = wrapperEl.clientWidth;
|
|
7737
|
+
const tableWrapperHeight = wrapperEl.clientHeight;
|
|
7720
7738
|
if (trEl) {
|
|
7721
7739
|
const rdLineEl = refDragRowLineElem.value;
|
|
7722
7740
|
if (rdLineEl) {
|
|
@@ -7784,8 +7802,8 @@ export default defineVxeComponent({
|
|
|
7784
7802
|
const rdTipEl = refDragTipElem.value;
|
|
7785
7803
|
if (rdTipEl) {
|
|
7786
7804
|
rdTipEl.style.display = 'block';
|
|
7787
|
-
rdTipEl.style.top = `${Math.min(
|
|
7788
|
-
rdTipEl.style.left = `${Math.min(
|
|
7805
|
+
rdTipEl.style.top = `${Math.min(wrapperEl.clientHeight - wrapperEl.scrollTop - rdTipEl.clientHeight, evnt.clientY - wrapperRect.y)}px`;
|
|
7806
|
+
rdTipEl.style.left = `${Math.min(wrapperEl.clientWidth - wrapperEl.scrollLeft - rdTipEl.clientWidth - 16, evnt.clientX - wrapperRect.x)}px`;
|
|
7789
7807
|
rdTipEl.setAttribute('drag-status', showLine ? (prevDragToChild ? 'sub' : 'normal') : 'disabled');
|
|
7790
7808
|
}
|
|
7791
7809
|
};
|
|
@@ -8159,7 +8177,7 @@ export default defineVxeComponent({
|
|
|
8159
8177
|
if (!cell) {
|
|
8160
8178
|
return;
|
|
8161
8179
|
}
|
|
8162
|
-
const cellParams = XEUtils.assign(params, { cell });
|
|
8180
|
+
const cellParams = XEUtils.assign(params, { cell, $table: $xeTable });
|
|
8163
8181
|
let dragLeft = 0;
|
|
8164
8182
|
const tableRect = tableEl.getBoundingClientRect();
|
|
8165
8183
|
const rightContainerRect = rightContainerElem ? rightContainerElem.getBoundingClientRect() : null;
|
|
@@ -8286,7 +8304,7 @@ export default defineVxeComponent({
|
|
|
8286
8304
|
const colRest = fullColumnIdData[colid];
|
|
8287
8305
|
const dragBtnElem = evnt.target;
|
|
8288
8306
|
const cell = dragBtnElem.parentNode;
|
|
8289
|
-
const cellParams = Object.assign(params, { cell });
|
|
8307
|
+
const cellParams = Object.assign(params, { cell, $table: $xeTable });
|
|
8290
8308
|
const colMinWidth = getColReMinWidth(cellParams);
|
|
8291
8309
|
el.setAttribute('data-calc-col', 'Y');
|
|
8292
8310
|
let resizeWidth = calcColumnAutoWidth(resizeColumn, el);
|
|
@@ -8320,7 +8338,14 @@ export default defineVxeComponent({
|
|
|
8320
8338
|
const resizableOpts = computeResizableOpts.value;
|
|
8321
8339
|
const rowOpts = computeRowOpts.value;
|
|
8322
8340
|
const cellOpts = computeCellOpts.value;
|
|
8323
|
-
|
|
8341
|
+
let tableEl = refElem.value;
|
|
8342
|
+
if ($xeGantt) {
|
|
8343
|
+
const { refGanttContainerElem } = $xeGantt.getRefMaps();
|
|
8344
|
+
const ganttContainerElem = refGanttContainerElem.value;
|
|
8345
|
+
if (ganttContainerElem) {
|
|
8346
|
+
tableEl = ganttContainerElem;
|
|
8347
|
+
}
|
|
8348
|
+
}
|
|
8324
8349
|
const resizeBarElem = refRowResizeBar.value;
|
|
8325
8350
|
if (!resizeBarElem) {
|
|
8326
8351
|
return;
|
|
@@ -9570,6 +9595,7 @@ export default defineVxeComponent({
|
|
|
9570
9595
|
const { treeConfig, dragConfig } = props;
|
|
9571
9596
|
const rowDragOpts = computeRowDragOpts.value;
|
|
9572
9597
|
const { afterFullData, tableFullData, fullAllDataRowIdData } = internalData;
|
|
9598
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
9573
9599
|
const { animation, isPeerDrag, isCrossDrag, isSelfToChildDrag, dragEndMethod, dragToChildMethod } = rowDragOpts;
|
|
9574
9600
|
const treeOpts = computeTreeOpts.value;
|
|
9575
9601
|
const cellOpts = computeCellOpts.value;
|
|
@@ -9756,6 +9782,14 @@ export default defineVxeComponent({
|
|
|
9756
9782
|
const _newRowIndex = dragRowRest._index;
|
|
9757
9783
|
const firstRow = tableData[0];
|
|
9758
9784
|
const firstRowRest = fullAllDataRowIdData[getRowid($xeTable, firstRow)];
|
|
9785
|
+
let wrapperEl = el;
|
|
9786
|
+
if ($xeGantt && $xeGanttView) {
|
|
9787
|
+
const { refGanttContainerElem } = $xeGantt.getRefMaps();
|
|
9788
|
+
const ganttContainerElem = refGanttContainerElem.value;
|
|
9789
|
+
if (ganttContainerElem) {
|
|
9790
|
+
wrapperEl = ganttContainerElem;
|
|
9791
|
+
}
|
|
9792
|
+
}
|
|
9759
9793
|
if (firstRowRest) {
|
|
9760
9794
|
const _firstRowIndex = firstRowRest._index;
|
|
9761
9795
|
const _lastRowIndex = _firstRowIndex + tableData.length;
|
|
@@ -9789,14 +9823,26 @@ export default defineVxeComponent({
|
|
|
9789
9823
|
}
|
|
9790
9824
|
const dragRangeList = tableData.slice(rsIndex, reIndex);
|
|
9791
9825
|
if (dragRangeList.length) {
|
|
9792
|
-
const
|
|
9826
|
+
const dtClss = [];
|
|
9827
|
+
dragRangeList.forEach(row => {
|
|
9828
|
+
const rowid = getRowid($xeTable, row);
|
|
9829
|
+
dtClss.push(`.vxe-body--row[rowid="${rowid}"]`);
|
|
9830
|
+
if ($xeGantt) {
|
|
9831
|
+
dtClss.push(`.vxe-gantt-view--body-row[rowid="${rowid}"]`, `.vxe-gantt-view--chart-row[rowid="${rowid}"]`);
|
|
9832
|
+
}
|
|
9833
|
+
});
|
|
9834
|
+
const dtTrList = wrapperEl.querySelectorAll(dtClss.join(','));
|
|
9793
9835
|
moveRowAnimateToTb(dtTrList, offsetRate * dragRowHeight);
|
|
9794
9836
|
}
|
|
9795
9837
|
}
|
|
9796
|
-
const
|
|
9797
|
-
|
|
9838
|
+
const drClss = [`.vxe-body--row[rowid="${dragRowid}"]`];
|
|
9839
|
+
if ($xeGantt) {
|
|
9840
|
+
drClss.push(`.vxe-gantt-view--body-row[rowid="${dragRowid}"]`, `.vxe-gantt-view--chart-row[rowid="${dragRowid}"]`);
|
|
9841
|
+
}
|
|
9842
|
+
const newDtTrList = wrapperEl.querySelectorAll(drClss.join(','));
|
|
9843
|
+
const newTrEl = newDtTrList[0];
|
|
9798
9844
|
if (dragOffsetTop > -1 && newTrEl) {
|
|
9799
|
-
moveRowAnimateToTb(
|
|
9845
|
+
moveRowAnimateToTb(newDtTrList, dragOffsetTop - newTrEl.offsetTop);
|
|
9800
9846
|
}
|
|
9801
9847
|
}
|
|
9802
9848
|
updateRowOffsetTop();
|
|
@@ -9822,7 +9868,7 @@ export default defineVxeComponent({
|
|
|
9822
9868
|
const { lazy } = treeOpts;
|
|
9823
9869
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
9824
9870
|
const { prevDragRow, prevDragPos } = internalData;
|
|
9825
|
-
|
|
9871
|
+
let wrapperEl = refElem.value;
|
|
9826
9872
|
if (treeConfig && lazy && prevDragToChild) {
|
|
9827
9873
|
// 懒加载
|
|
9828
9874
|
const newRowid = getRowid($xeTable, prevDragRow);
|
|
@@ -9839,9 +9885,18 @@ export default defineVxeComponent({
|
|
|
9839
9885
|
else {
|
|
9840
9886
|
$xeTable.handleRowDragSwapEvent(evnt, true, dragRow, prevDragRow, prevDragPos, prevDragToChild);
|
|
9841
9887
|
}
|
|
9888
|
+
const dtClss = ['.vxe-body--row'];
|
|
9889
|
+
if ($xeGantt) {
|
|
9890
|
+
const { refGanttContainerElem } = $xeGantt.getRefMaps();
|
|
9891
|
+
const ganttContainerElem = refGanttContainerElem.value;
|
|
9892
|
+
if (ganttContainerElem) {
|
|
9893
|
+
wrapperEl = ganttContainerElem;
|
|
9894
|
+
}
|
|
9895
|
+
dtClss.push('.vxe-gantt-view--body-row', '.vxe-gantt-view--chart-row');
|
|
9896
|
+
}
|
|
9842
9897
|
hideDropTip();
|
|
9843
9898
|
clearRowDropOrigin();
|
|
9844
|
-
clearRowAnimate(
|
|
9899
|
+
clearRowAnimate(wrapperEl, dtClss);
|
|
9845
9900
|
internalData.prevDragToChild = false;
|
|
9846
9901
|
reactData.dragRow = null;
|
|
9847
9902
|
reactData.dragCol = null;
|
|
@@ -10214,7 +10269,7 @@ export default defineVxeComponent({
|
|
|
10214
10269
|
$xeTable.handleColDragSwapEvent(evnt, true, dragCol, prevDragCol, prevDragPos, prevDragToChild);
|
|
10215
10270
|
hideDropTip();
|
|
10216
10271
|
clearColDropOrigin();
|
|
10217
|
-
clearColAnimate(el);
|
|
10272
|
+
clearColAnimate(el, ['.vxe-table--column']);
|
|
10218
10273
|
internalData.prevDragToChild = false;
|
|
10219
10274
|
reactData.dragRow = null;
|
|
10220
10275
|
reactData.dragCol = null;
|
|
@@ -11485,6 +11540,7 @@ export default defineVxeComponent({
|
|
|
11485
11540
|
const renderVN = () => {
|
|
11486
11541
|
const { loading, stripe, showHeader, height, treeConfig, mouseConfig, showFooter, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, editRules } = props;
|
|
11487
11542
|
const { isGroup, overflowX, overflowY, scrollXLoad, scrollYLoad, tableData, initStore, isRowGroupStatus, columnStore, filterStore, customStore } = reactData;
|
|
11543
|
+
const { teleportToWrapperElem } = internalData;
|
|
11488
11544
|
const { leftList, rightList } = columnStore;
|
|
11489
11545
|
const loadingSlot = slots.loading;
|
|
11490
11546
|
const tableTipConfig = computeTableTipConfig.value;
|
|
@@ -11610,52 +11666,69 @@ export default defineVxeComponent({
|
|
|
11610
11666
|
})
|
|
11611
11667
|
]
|
|
11612
11668
|
: []),
|
|
11613
|
-
/**
|
|
11614
|
-
* 行高线
|
|
11615
|
-
*/
|
|
11616
11669
|
h('div', {
|
|
11617
|
-
key: '
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11670
|
+
key: 'ttw'
|
|
11671
|
+
}, [
|
|
11672
|
+
h(Teleport, {
|
|
11673
|
+
to: teleportToWrapperElem,
|
|
11674
|
+
disabled: !($xeGantt && teleportToWrapperElem)
|
|
11675
|
+
}, [
|
|
11622
11676
|
h('div', {
|
|
11623
|
-
|
|
11624
|
-
}
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11677
|
+
ref: refTeleportWrapper
|
|
11678
|
+
}, [
|
|
11679
|
+
/**
|
|
11680
|
+
* 行高线
|
|
11681
|
+
*/
|
|
11682
|
+
h('div', {
|
|
11683
|
+
key: 'trl',
|
|
11684
|
+
ref: refRowResizeBar,
|
|
11685
|
+
class: 'vxe-table--resizable-row-bar'
|
|
11686
|
+
}, resizableOpts.showDragTip
|
|
11687
|
+
? [
|
|
11688
|
+
h('div', {
|
|
11689
|
+
class: 'vxe-table--resizable-number-tip'
|
|
11690
|
+
})
|
|
11691
|
+
]
|
|
11692
|
+
: []),
|
|
11693
|
+
/**
|
|
11694
|
+
* 自定义列
|
|
11695
|
+
*/
|
|
11696
|
+
initStore.custom
|
|
11697
|
+
? h(TableCustomPanelComponent, {
|
|
11698
|
+
key: 'cs',
|
|
11699
|
+
ref: refTableCustom,
|
|
11700
|
+
customStore
|
|
11701
|
+
})
|
|
11702
|
+
: renderEmptyElement($xeTable),
|
|
11703
|
+
/**
|
|
11704
|
+
* 加载中
|
|
11705
|
+
*/
|
|
11706
|
+
VxeUILoadingComponent
|
|
11707
|
+
? h(VxeUILoadingComponent, {
|
|
11708
|
+
key: 'lg',
|
|
11709
|
+
class: 'vxe-table--loading',
|
|
11710
|
+
modelValue: currLoading,
|
|
11711
|
+
icon: loadingOpts.icon,
|
|
11712
|
+
text: loadingOpts.text
|
|
11713
|
+
}, loadingSlot
|
|
11714
|
+
? {
|
|
11715
|
+
default: () => callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, loading: currLoading })
|
|
11716
|
+
}
|
|
11717
|
+
: {})
|
|
11718
|
+
: loadingSlot
|
|
11719
|
+
? h('div', {
|
|
11720
|
+
class: ['vxe-loading--custom-wrapper', {
|
|
11721
|
+
'is--visible': currLoading
|
|
11722
|
+
}]
|
|
11723
|
+
}, callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, loading: currLoading }))
|
|
11724
|
+
: renderEmptyElement($xeTable),
|
|
11725
|
+
/**
|
|
11726
|
+
* 拖拽排序提示
|
|
11727
|
+
*/
|
|
11728
|
+
renderDragTip()
|
|
11729
|
+
])
|
|
11730
|
+
])
|
|
11731
|
+
]),
|
|
11659
11732
|
/**
|
|
11660
11733
|
* 筛选
|
|
11661
11734
|
*/
|
|
@@ -11695,10 +11768,6 @@ export default defineVxeComponent({
|
|
|
11695
11768
|
ref: refTableMenu
|
|
11696
11769
|
})
|
|
11697
11770
|
: renderEmptyElement($xeTable),
|
|
11698
|
-
/**
|
|
11699
|
-
* 拖拽排序提示
|
|
11700
|
-
*/
|
|
11701
|
-
renderDragTip(),
|
|
11702
11771
|
/**
|
|
11703
11772
|
* 提示相关
|
|
11704
11773
|
*/
|
|
@@ -11920,7 +11989,6 @@ export default defineVxeComponent({
|
|
|
11920
11989
|
tablePrivateMethods.preventEvent(null, 'deactivated', { $table: $xeTable });
|
|
11921
11990
|
});
|
|
11922
11991
|
onMounted(() => {
|
|
11923
|
-
const $xeGantt = $xeTable.xeGantt;
|
|
11924
11992
|
const columnOpts = computeColumnOpts.value;
|
|
11925
11993
|
const rowOpts = computeRowOpts.value;
|
|
11926
11994
|
const customOpts = computeCustomOpts.value;
|
|
@@ -12094,6 +12162,14 @@ export default defineVxeComponent({
|
|
|
12094
12162
|
if (checkboxOpts.halfField) {
|
|
12095
12163
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
12096
12164
|
}
|
|
12165
|
+
if (treeConfig) {
|
|
12166
|
+
XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
|
|
12167
|
+
const val = treeOpts[key];
|
|
12168
|
+
if (val && val.indexOf('.') > -1) {
|
|
12169
|
+
errLog('vxe.error.errProp', [`${key}=${val}`, `${key}=${val.split('.')[0]}`]);
|
|
12170
|
+
}
|
|
12171
|
+
});
|
|
12172
|
+
}
|
|
12097
12173
|
if (rowOpts.currentMethod) {
|
|
12098
12174
|
warnLog('vxe.error.delProp', ['row-config.currentMethod', 'current-row-config.beforeSelectMethod']);
|
|
12099
12175
|
}
|