vxe-table 3.10.6 → 3.10.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/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +31 -8
- package/es/table/module/validator/mixin.js +1 -1
- package/es/table/src/body.js +14 -8
- package/es/table/src/cell.js +7 -3
- package/es/table/src/header.js +2 -2
- package/es/table/src/methods.js +67 -17
- package/es/table/src/table.js +10 -3
- package/es/table/style.css +25 -15
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +25 -15
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.umd.js +136 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +31 -5
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/validator/mixin.js +1 -1
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/src/body.js +5 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +10 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/methods.js +70 -16
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +13 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +25 -15
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -2
- 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 +25 -15
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/custom/panel.ts +34 -8
- package/packages/table/module/validator/mixin.ts +6 -1
- package/packages/table/src/body.ts +14 -8
- package/packages/table/src/cell.ts +9 -5
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/methods.ts +68 -17
- package/packages/table/src/table.ts +10 -3
- package/packages/ui/index.ts +2 -1
- package/styles/components/table-module/custom.scss +2 -1
- package/styles/components/table.scss +36 -26
- /package/es/{iconfont.1730978752470.ttf → iconfont.1731060585164.ttf} +0 -0
- /package/es/{iconfont.1730978752470.woff → iconfont.1731060585164.woff} +0 -0
- /package/es/{iconfont.1730978752470.woff2 → iconfont.1731060585164.woff2} +0 -0
- /package/lib/{iconfont.1730978752470.ttf → iconfont.1731060585164.ttf} +0 -0
- /package/lib/{iconfont.1730978752470.woff → iconfont.1731060585164.woff} +0 -0
- /package/lib/{iconfont.1730978752470.woff2 → iconfont.1731060585164.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.10.
|
|
2223
|
+
const version = "3.10.8";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2272,7 +2272,8 @@ core_.VxeUI.setConfig({
|
|
|
2272
2272
|
autoClear: true,
|
|
2273
2273
|
autoPos: true,
|
|
2274
2274
|
message: 'inline',
|
|
2275
|
-
msgMode: 'single'
|
|
2275
|
+
msgMode: 'single',
|
|
2276
|
+
theme: 'normal'
|
|
2276
2277
|
},
|
|
2277
2278
|
columnConfig: {
|
|
2278
2279
|
maxFixedSize: 4
|
|
@@ -2768,7 +2769,7 @@ function isNodeElement(elem) {
|
|
|
2768
2769
|
const {
|
|
2769
2770
|
log: log_log
|
|
2770
2771
|
} = core_.VxeUI;
|
|
2771
|
-
const log_version = `table v${"3.10.
|
|
2772
|
+
const log_version = `table v${"3.10.8"}`;
|
|
2772
2773
|
const warnLog = log_log.create('warn', log_version);
|
|
2773
2774
|
const errLog = log_log.create('error', log_version);
|
|
2774
2775
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3544,23 +3545,30 @@ function renderCellBaseVNs(h, params, content) {
|
|
|
3544
3545
|
const {
|
|
3545
3546
|
$table,
|
|
3546
3547
|
column,
|
|
3547
|
-
row
|
|
3548
|
+
row,
|
|
3549
|
+
level
|
|
3548
3550
|
} = params;
|
|
3549
3551
|
const {
|
|
3550
3552
|
dragSort
|
|
3551
3553
|
} = column;
|
|
3552
|
-
const
|
|
3554
|
+
const tableProps = $table;
|
|
3555
|
+
const {
|
|
3556
|
+
treeConfig
|
|
3557
|
+
} = tableProps;
|
|
3553
3558
|
const rowOpts = $table.computeRowOpts;
|
|
3554
3559
|
const dragOpts = $table.computeDragOpts;
|
|
3555
3560
|
const {
|
|
3556
3561
|
showRowIcon,
|
|
3557
3562
|
rowVisibleMethod
|
|
3558
3563
|
} = dragOpts;
|
|
3564
|
+
const vns = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(content) ? content : [content];
|
|
3559
3565
|
if (dragSort && rowOpts.drag && showRowIcon && (!rowVisibleMethod || rowVisibleMethod({
|
|
3560
3566
|
row,
|
|
3561
3567
|
column
|
|
3562
3568
|
}))) {
|
|
3563
|
-
|
|
3569
|
+
if (!treeConfig || !level) {
|
|
3570
|
+
vns.unshift(renderCellDragIcon(h, params));
|
|
3571
|
+
}
|
|
3564
3572
|
}
|
|
3565
3573
|
return vns;
|
|
3566
3574
|
}
|
|
@@ -5146,6 +5154,16 @@ function clearRowDropOrigin($xeTable) {
|
|
|
5146
5154
|
});
|
|
5147
5155
|
}
|
|
5148
5156
|
}
|
|
5157
|
+
function updateRowDropOrigin($xeTable, row) {
|
|
5158
|
+
const el = $xeTable.$el;
|
|
5159
|
+
if (el) {
|
|
5160
|
+
const clss = 'row--drag-origin';
|
|
5161
|
+
const rowid = getRowid($xeTable, row);
|
|
5162
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(el.querySelectorAll(`[rowid="${rowid}"]`), elem => {
|
|
5163
|
+
addClass(elem, clss);
|
|
5164
|
+
});
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5149
5167
|
function clearRowDropTarget($xeTable) {
|
|
5150
5168
|
const el = $xeTable.$el;
|
|
5151
5169
|
if (el) {
|
|
@@ -5155,6 +5173,17 @@ function clearRowDropTarget($xeTable) {
|
|
|
5155
5173
|
});
|
|
5156
5174
|
}
|
|
5157
5175
|
}
|
|
5176
|
+
function updateRowDropTarget($xeTable, row, dragPos) {
|
|
5177
|
+
const el = $xeTable.$el;
|
|
5178
|
+
if (el) {
|
|
5179
|
+
const clss = 'row--drag-active-target';
|
|
5180
|
+
const rowid = getRowid($xeTable, row);
|
|
5181
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(el.querySelectorAll(`[rowid="${rowid}"]`), elem => {
|
|
5182
|
+
addClass(elem, clss);
|
|
5183
|
+
elem.setAttribute('drag-pos', dragPos);
|
|
5184
|
+
});
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5158
5187
|
function showRowDropTip(evnt, $xeTable) {
|
|
5159
5188
|
const rdTipEl = $xeTable.$refs.refRowDragTipElem;
|
|
5160
5189
|
if (!rdTipEl) {
|
|
@@ -5179,7 +5208,22 @@ const hideRowDropTip = $xeTable => {
|
|
|
5179
5208
|
};
|
|
5180
5209
|
const updateRowDropTipContent = ($xeTable, tdEl) => {
|
|
5181
5210
|
const reactData = $xeTable;
|
|
5182
|
-
|
|
5211
|
+
const {
|
|
5212
|
+
dragRow
|
|
5213
|
+
} = reactData;
|
|
5214
|
+
const dragOpts = $xeTable.computeDragOpts;
|
|
5215
|
+
const {
|
|
5216
|
+
rowTooltipMethod
|
|
5217
|
+
} = dragOpts;
|
|
5218
|
+
let tipContent = '';
|
|
5219
|
+
if (rowTooltipMethod) {
|
|
5220
|
+
tipContent = `${rowTooltipMethod({
|
|
5221
|
+
row: dragRow
|
|
5222
|
+
}) || ''}`;
|
|
5223
|
+
} else {
|
|
5224
|
+
tipContent = methods_getI18n('vxe.table.dragTip', [tdEl.textContent || '']);
|
|
5225
|
+
}
|
|
5226
|
+
reactData.dragTipText = tipContent;
|
|
5183
5227
|
};
|
|
5184
5228
|
const Methods = {
|
|
5185
5229
|
callSlot(slotFunc, params, h, vNodes) {
|
|
@@ -10236,7 +10280,9 @@ const Methods = {
|
|
|
10236
10280
|
} = reactData;
|
|
10237
10281
|
const {
|
|
10238
10282
|
afterFullData,
|
|
10283
|
+
afterTreeFullData,
|
|
10239
10284
|
tableFullData,
|
|
10285
|
+
tableFullTreeData,
|
|
10240
10286
|
prevDragRow,
|
|
10241
10287
|
prevDragPos
|
|
10242
10288
|
} = internalData;
|
|
@@ -10251,18 +10297,35 @@ const Methods = {
|
|
|
10251
10297
|
return;
|
|
10252
10298
|
}
|
|
10253
10299
|
const dragOffsetIndex = prevDragPos === 'bottom' ? 1 : 0;
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10300
|
+
let oafIndex = -1;
|
|
10301
|
+
let nafIndex = -1;
|
|
10302
|
+
if (treeConfig) {
|
|
10303
|
+
// 移出源位置
|
|
10304
|
+
oafIndex = $xeTable.findRowIndexOf(afterTreeFullData, dragRow);
|
|
10305
|
+
const otfIndex = $xeTable.findRowIndexOf(tableFullTreeData, dragRow);
|
|
10306
|
+
afterTreeFullData.splice(oafIndex, 1);
|
|
10307
|
+
tableFullTreeData.splice(otfIndex, 1);
|
|
10308
|
+
// 插新位置
|
|
10309
|
+
const pafIndex = $xeTable.findRowIndexOf(afterTreeFullData, prevDragRow);
|
|
10310
|
+
const ptfIndex = $xeTable.findRowIndexOf(tableFullTreeData, prevDragRow);
|
|
10311
|
+
nafIndex = pafIndex + dragOffsetIndex;
|
|
10312
|
+
const ntfIndex = ptfIndex + dragOffsetIndex;
|
|
10313
|
+
afterTreeFullData.splice(nafIndex, 0, dragRow);
|
|
10314
|
+
tableFullTreeData.splice(ntfIndex, 0, dragRow);
|
|
10315
|
+
} else {
|
|
10316
|
+
// 移出源位置
|
|
10317
|
+
oafIndex = $xeTable.findRowIndexOf(afterFullData, dragRow);
|
|
10318
|
+
const otfIndex = $xeTable.findRowIndexOf(tableFullData, dragRow);
|
|
10319
|
+
afterFullData.splice(oafIndex, 1);
|
|
10320
|
+
tableFullData.splice(otfIndex, 1);
|
|
10321
|
+
// 插新位置
|
|
10322
|
+
const pafIndex = $xeTable.findRowIndexOf(afterFullData, prevDragRow);
|
|
10323
|
+
const ptfIndex = $xeTable.findRowIndexOf(tableFullData, prevDragRow);
|
|
10324
|
+
nafIndex = pafIndex + dragOffsetIndex;
|
|
10325
|
+
const ntfIndex = ptfIndex + dragOffsetIndex;
|
|
10326
|
+
afterFullData.splice(nafIndex, 0, dragRow);
|
|
10327
|
+
tableFullData.splice(ntfIndex, 0, dragRow);
|
|
10328
|
+
}
|
|
10266
10329
|
reactData.isDragRowMove = true;
|
|
10267
10330
|
$xeTable.cacheRowMap();
|
|
10268
10331
|
$xeTable.updateScrollYStatus();
|
|
@@ -10314,8 +10377,7 @@ const Methods = {
|
|
|
10314
10377
|
} = reactData;
|
|
10315
10378
|
const offsetY = evnt.clientY - trEl.getBoundingClientRect().y;
|
|
10316
10379
|
const dragPos = offsetY < trEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
10317
|
-
|
|
10318
|
-
trEl.setAttribute('drag-pos', dragPos);
|
|
10380
|
+
updateRowDropTarget($xeTable, row, dragPos);
|
|
10319
10381
|
internalData.prevDragRow = row;
|
|
10320
10382
|
internalData.prevDragPos = dragPos;
|
|
10321
10383
|
$xeTable.dispatchEvent('row-dragover', {
|
|
@@ -10350,7 +10412,7 @@ const Methods = {
|
|
|
10350
10412
|
}
|
|
10351
10413
|
reactData.dragRow = row;
|
|
10352
10414
|
trEl.draggable = true;
|
|
10353
|
-
|
|
10415
|
+
updateRowDropOrigin($xeTable, row);
|
|
10354
10416
|
showRowDropTip(evnt, $xeTable);
|
|
10355
10417
|
updateRowDropTipContent($xeTable, tdEl);
|
|
10356
10418
|
$xeTable.dispatchEvent('row-dragstart', params, evnt);
|
|
@@ -12518,13 +12580,15 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
12518
12580
|
...errorValidItem
|
|
12519
12581
|
};
|
|
12520
12582
|
tdVNs.push(h('div', {
|
|
12521
|
-
class: ['vxe-cell--valid-error-
|
|
12583
|
+
class: ['vxe-cell--valid-error-tip', getClass(validOpts.className, errorValidItem)],
|
|
12522
12584
|
style: errRule && errRule.maxWidth ? {
|
|
12523
12585
|
width: `${errRule.maxWidth}px`
|
|
12524
12586
|
} : null
|
|
12525
|
-
},
|
|
12587
|
+
}, [h('div', {
|
|
12588
|
+
class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || 'normal'}`
|
|
12589
|
+
}, [validSlot ? $xetable.callSlot(validSlot, validParams, h) : [h('span', {
|
|
12526
12590
|
class: 'vxe-cell--valid-error-msg'
|
|
12527
|
-
}, errorValidItem.content)]));
|
|
12591
|
+
}, errorValidItem.content)]])]));
|
|
12528
12592
|
}
|
|
12529
12593
|
}
|
|
12530
12594
|
let cellHeight = '';
|
|
@@ -13212,7 +13276,7 @@ const cellType = 'header';
|
|
|
13212
13276
|
tId,
|
|
13213
13277
|
isGroup,
|
|
13214
13278
|
visibleColumn,
|
|
13215
|
-
resizable,
|
|
13279
|
+
resizable: allResizable,
|
|
13216
13280
|
border,
|
|
13217
13281
|
columnKey,
|
|
13218
13282
|
headerRowClassName,
|
|
@@ -13383,7 +13447,7 @@ const cellType = 'header';
|
|
|
13383
13447
|
/**
|
|
13384
13448
|
* 列宽拖动
|
|
13385
13449
|
*/
|
|
13386
|
-
!fixedHiddenColumn && !isColGroup && (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable ||
|
|
13450
|
+
!fixedHiddenColumn && !isColGroup && (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? h('div', {
|
|
13387
13451
|
class: ['vxe-resizable', {
|
|
13388
13452
|
'is--line': !border || border === 'none'
|
|
13389
13453
|
}],
|
|
@@ -14389,7 +14453,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
14389
14453
|
const renderPopupPanel = (h, _vm) => {
|
|
14390
14454
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
14391
14455
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
14392
|
-
const
|
|
14456
|
+
const VxeUINumberInputComponent = core_.VxeUI.getComponent('VxeInput');
|
|
14393
14457
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
14394
14458
|
const $xeTableCustomPanel = _vm;
|
|
14395
14459
|
const $xeTable = _vm.$xeTable;
|
|
@@ -14398,6 +14462,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14398
14462
|
customStore
|
|
14399
14463
|
} = _vm;
|
|
14400
14464
|
const {
|
|
14465
|
+
resizable: allResizable,
|
|
14401
14466
|
customOpts,
|
|
14402
14467
|
customColumnList,
|
|
14403
14468
|
columnOpts,
|
|
@@ -14415,6 +14480,11 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14415
14480
|
const {
|
|
14416
14481
|
maxFixedSize
|
|
14417
14482
|
} = columnOpts;
|
|
14483
|
+
const resizableOpts = $xeTable.computeResizableOpts;
|
|
14484
|
+
const {
|
|
14485
|
+
minWidth: reMinWidth,
|
|
14486
|
+
maxWidth: reMaxWidth
|
|
14487
|
+
} = resizableOpts;
|
|
14418
14488
|
const modalOpts = Object.assign({}, modalOptions);
|
|
14419
14489
|
const slots = customOpts.slots || {};
|
|
14420
14490
|
const headerSlot = slots.header;
|
|
@@ -14437,6 +14507,24 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14437
14507
|
column
|
|
14438
14508
|
}) : true;
|
|
14439
14509
|
if (isVisible) {
|
|
14510
|
+
// 默认继承调整宽度
|
|
14511
|
+
let customMinWidth = 0;
|
|
14512
|
+
let customMaxWidth = 0;
|
|
14513
|
+
if (allowResizable) {
|
|
14514
|
+
const resizeParams = {
|
|
14515
|
+
$table: $xeTable,
|
|
14516
|
+
column,
|
|
14517
|
+
columnIndex: index,
|
|
14518
|
+
$columnIndex: index,
|
|
14519
|
+
$rowIndex: -1
|
|
14520
|
+
};
|
|
14521
|
+
if (reMinWidth) {
|
|
14522
|
+
customMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(reMinWidth) ? reMinWidth(resizeParams) : reMinWidth);
|
|
14523
|
+
}
|
|
14524
|
+
if (reMaxWidth) {
|
|
14525
|
+
customMaxWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(reMaxWidth) ? reMaxWidth(resizeParams) : reMaxWidth);
|
|
14526
|
+
}
|
|
14527
|
+
}
|
|
14440
14528
|
const isChecked = column.renderVisible;
|
|
14441
14529
|
const isIndeterminate = column.halfVisible;
|
|
14442
14530
|
const colTitle = formatText(column.getTitle(), 1);
|
|
@@ -14509,11 +14597,13 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14509
14597
|
}
|
|
14510
14598
|
}, colTitle)]), allowResizable ? h('td', {
|
|
14511
14599
|
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
14512
|
-
}, [column.children && column.children.length ? h('span', '-') :
|
|
14600
|
+
}, [column.children && column.children.length || !(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? h('span', '-') : VxeUINumberInputComponent ? h(VxeUINumberInputComponent, {
|
|
14513
14601
|
props: {
|
|
14514
14602
|
type: 'integer',
|
|
14515
14603
|
disabled: isDisabled || isHidden,
|
|
14516
|
-
value: column.renderResizeWidth
|
|
14604
|
+
value: column.renderResizeWidth,
|
|
14605
|
+
min: customMinWidth || undefined,
|
|
14606
|
+
max: customMaxWidth || undefined
|
|
14517
14607
|
},
|
|
14518
14608
|
on: {
|
|
14519
14609
|
modelValue(value) {
|
|
@@ -14704,7 +14794,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14704
14794
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
14705
14795
|
const VxeUIDrawerComponent = core_.VxeUI.getComponent('VxeDrawer');
|
|
14706
14796
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
14707
|
-
const
|
|
14797
|
+
const VxeUINumberInputComponent = core_.VxeUI.getComponent('VxeNumberInput');
|
|
14708
14798
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
14709
14799
|
const VxeUIRadioGroupComponent = core_.VxeUI.getComponent('VxeRadioGroup');
|
|
14710
14800
|
this.$nextTick(() => {
|
|
@@ -14726,7 +14816,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14726
14816
|
if (!VxeUIButtonComponent) {
|
|
14727
14817
|
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
14728
14818
|
}
|
|
14729
|
-
if (!
|
|
14819
|
+
if (!VxeUINumberInputComponent) {
|
|
14730
14820
|
errLog('vxe.error.reqComp', ['vxe-input']);
|
|
14731
14821
|
}
|
|
14732
14822
|
if (!VxeUITooltipComponent) {
|
|
@@ -20168,7 +20258,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
20168
20258
|
} = this;
|
|
20169
20259
|
if (validOpts.msgMode === 'single') {
|
|
20170
20260
|
const keys = Object.keys(validErrMaps);
|
|
20171
|
-
const resMaps =
|
|
20261
|
+
const resMaps = {};
|
|
20172
20262
|
if (keys.length) {
|
|
20173
20263
|
const firstKey = keys[0];
|
|
20174
20264
|
resMaps[firstKey] = validErrMaps[firstKey];
|
|
@@ -21983,6 +22073,7 @@ function handleUupdateResize(_vm) {
|
|
|
21983
22073
|
const VxeUILoadingComponent = core_.VxeUI.getComponent('VxeLoading');
|
|
21984
22074
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
21985
22075
|
const $xeTable = this;
|
|
22076
|
+
const reactData = $xeTable;
|
|
21986
22077
|
const {
|
|
21987
22078
|
_e,
|
|
21988
22079
|
$scopedSlots,
|
|
@@ -22027,13 +22118,20 @@ function handleUupdateResize(_vm) {
|
|
|
22027
22118
|
loadingOpts,
|
|
22028
22119
|
editRules
|
|
22029
22120
|
} = $xeTable;
|
|
22121
|
+
const {
|
|
22122
|
+
dragRow,
|
|
22123
|
+
dragTipText
|
|
22124
|
+
} = reactData;
|
|
22030
22125
|
const {
|
|
22031
22126
|
leftList,
|
|
22032
22127
|
rightList
|
|
22033
22128
|
} = columnStore;
|
|
22034
22129
|
const currLoading = this._isLoading || loading;
|
|
22035
22130
|
const vSize = computeSize;
|
|
22131
|
+
const dragOpts = $xeTable.computeDragOpts;
|
|
22036
22132
|
const virtualScrollBars = $xeTable.computeVirtualScrollBars;
|
|
22133
|
+
const dragSlots = dragOpts.slots || {};
|
|
22134
|
+
const rowTipSlot = dragSlots.rowTip;
|
|
22037
22135
|
return h('div', {
|
|
22038
22136
|
class: ['vxe-table', 'vxe-table--render-default', `tid_${tId}`, vSize ? `size--${vSize}` : '', `border--${tableBorder}`, {
|
|
22039
22137
|
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
@@ -22238,10 +22336,12 @@ function handleUupdateResize(_vm) {
|
|
|
22238
22336
|
/**
|
|
22239
22337
|
* 拖拽提示
|
|
22240
22338
|
*/
|
|
22241
|
-
rowOpts.drag ? h('div', {
|
|
22339
|
+
rowOpts.drag && (dragRow || dragTipText) ? h('div', {
|
|
22242
22340
|
ref: 'refRowDragTipElem',
|
|
22243
|
-
class: 'vxe-table--row-drag-
|
|
22244
|
-
},
|
|
22341
|
+
class: 'vxe-table--row-drag-tip'
|
|
22342
|
+
}, rowTipSlot ? dragRow ? this.callSlot(rowTipSlot, {
|
|
22343
|
+
row: dragRow
|
|
22344
|
+
}, h) : [table_renderEmptyElement($xeTable)] : dragTipText ? [h('span', dragTipText)] : [table_renderEmptyElement($xeTable)]) : _e(), h('div', {}, [
|
|
22245
22345
|
/**
|
|
22246
22346
|
* 提示相关
|
|
22247
22347
|
*/
|