vxe-table 4.16.18 → 4.16.19
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/filter/hook.js +21 -5
- package/es/table/module/filter/panel.js +4 -4
- package/es/table/module/menu/panel.js +27 -14
- package/es/table/src/cell.js +10 -7
- package/es/table/src/table.js +22 -22
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/index.umd.js +73 -25
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/filter/hook.js +21 -5
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/module/filter/panel.js +3 -3
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/menu/panel.js +15 -10
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/cell.js +9 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +24 -2
- package/lib/table/src/table.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/filter/hook.ts +23 -6
- package/packages/table/module/filter/panel.ts +4 -4
- package/packages/table/module/menu/panel.ts +29 -16
- package/packages/table/src/cell.ts +10 -7
- package/packages/table/src/table.ts +22 -22
- /package/es/{iconfont.1758510533325.ttf → iconfont.1758609514163.ttf} +0 -0
- /package/es/{iconfont.1758510533325.woff → iconfont.1758609514163.woff} +0 -0
- /package/es/{iconfont.1758510533325.woff2 → iconfont.1758609514163.woff2} +0 -0
- /package/lib/{iconfont.1758510533325.ttf → iconfont.1758609514163.ttf} +0 -0
- /package/lib/{iconfont.1758510533325.woff → iconfont.1758609514163.woff} +0 -0
- /package/lib/{iconfont.1758510533325.woff2 → iconfont.1758609514163.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.16.
|
|
3141
|
+
const version = "4.16.19";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3647,7 +3647,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3647
3647
|
const {
|
|
3648
3648
|
log: log_log
|
|
3649
3649
|
} = core_.VxeUI;
|
|
3650
|
-
const log_version = `table v${"4.16.
|
|
3650
|
+
const log_version = `table v${"4.16.19"}`;
|
|
3651
3651
|
const warnLog = log_log.create('warn', log_version);
|
|
3652
3652
|
const errLog = log_log.create('error', log_version);
|
|
3653
3653
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6402,12 +6402,17 @@ const Cell = {
|
|
|
6402
6402
|
}
|
|
6403
6403
|
let editIconVNs = [];
|
|
6404
6404
|
if (isEnableConf(editConfig)) {
|
|
6405
|
-
|
|
6405
|
+
const {
|
|
6406
|
+
showAsterisk,
|
|
6407
|
+
showIcon,
|
|
6408
|
+
icon
|
|
6409
|
+
} = editOpts;
|
|
6410
|
+
editIconVNs = [isRequired && showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6406
6411
|
class: 'vxe-cell--required-icon'
|
|
6407
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i')]) : renderEmptyElement($table), isEnableConf(editRender) &&
|
|
6412
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i')]) : renderEmptyElement($table), isEnableConf(editRender) && showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6408
6413
|
class: 'vxe-cell--edit-icon'
|
|
6409
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6410
|
-
class:
|
|
6414
|
+
}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(icon) ? getSlotVNs(icon({})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6415
|
+
class: icon || cell_getIcon().TABLE_EDIT
|
|
6411
6416
|
})]) : renderEmptyElement($table)];
|
|
6412
6417
|
}
|
|
6413
6418
|
return renderHeaderCellBaseVNs(params, editIconVNs.concat(Cell.renderHeaderTitle(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []));
|
|
@@ -10442,14 +10447,14 @@ const {
|
|
|
10442
10447
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10443
10448
|
class: 'vxe-table--filter-template',
|
|
10444
10449
|
style: maxHeight ? {
|
|
10445
|
-
maxHeight:
|
|
10450
|
+
maxHeight: toCssUnit(maxHeight)
|
|
10446
10451
|
} : {}
|
|
10447
10452
|
}, $xeTable.callSlot(filterSlot, params))];
|
|
10448
10453
|
} else if (rtFilter) {
|
|
10449
10454
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10450
10455
|
class: 'vxe-table--filter-template',
|
|
10451
10456
|
style: maxHeight ? {
|
|
10452
|
-
maxHeight:
|
|
10457
|
+
maxHeight: toCssUnit(maxHeight)
|
|
10453
10458
|
} : {}
|
|
10454
10459
|
}, getSlotVNs(rtFilter(filterRender, params)))];
|
|
10455
10460
|
}
|
|
@@ -10473,7 +10478,7 @@ const {
|
|
|
10473
10478
|
}, filter_panel_getI18n('vxe.table.allFilter'))]))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
10474
10479
|
class: 'vxe-table--filter-body',
|
|
10475
10480
|
style: maxHeight ? {
|
|
10476
|
-
maxHeight:
|
|
10481
|
+
maxHeight: toCssUnit(maxHeight)
|
|
10477
10482
|
} : {}
|
|
10478
10483
|
}, filterStore.options.map(item => {
|
|
10479
10484
|
const isChecked = item._checked;
|
|
@@ -11272,6 +11277,7 @@ const {
|
|
|
11272
11277
|
|
|
11273
11278
|
|
|
11274
11279
|
|
|
11280
|
+
|
|
11275
11281
|
const {
|
|
11276
11282
|
getIcon: menu_panel_getIcon,
|
|
11277
11283
|
renderEmptyElement: menu_panel_renderEmptyElement
|
|
@@ -11327,7 +11333,9 @@ const {
|
|
|
11327
11333
|
}, options.map((item, index) => {
|
|
11328
11334
|
const hasChildMenus = item.children && item.children.some(child => child.visible !== false);
|
|
11329
11335
|
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
11336
|
+
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
11330
11337
|
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
11338
|
+
const suffixIcon = suffixOpts.icon || item.suffixIcon;
|
|
11331
11339
|
const menuContent = getFuncText(item.name);
|
|
11332
11340
|
return item.visible === false ? menu_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
11333
11341
|
class: [item.className, {
|
|
@@ -11348,22 +11356,24 @@ const {
|
|
|
11348
11356
|
}
|
|
11349
11357
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11350
11358
|
class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
|
|
11351
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11352
|
-
class:
|
|
11359
|
+
}, [prefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(prefixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(prefixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11360
|
+
class: prefixIcon
|
|
11353
11361
|
}), prefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11354
11362
|
class: 'vxe-context-menu--link-content',
|
|
11355
11363
|
title: menuContent
|
|
11356
11364
|
}, menuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11357
11365
|
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
11358
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11359
|
-
class:
|
|
11360
|
-
}), suffixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${suffixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)])]), hasChildMenus ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
11366
|
+
}, [suffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(suffixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(suffixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11367
|
+
class: suffixIcon || (hasChildMenus ? menu_panel_getIcon().TABLE_MENU_OPTIONS : '')
|
|
11368
|
+
}), suffixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${suffixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)])]), hasChildMenus && item.children ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
11361
11369
|
class: ['vxe-table--context-menu-clild-wrapper', {
|
|
11362
11370
|
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
11363
11371
|
}]
|
|
11364
11372
|
}, item.children.map((child, cIndex) => {
|
|
11365
11373
|
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
11374
|
+
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
11366
11375
|
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
11376
|
+
const childSuffixIcon = childSuffixOpts.icon || child.suffixIcon;
|
|
11367
11377
|
const childMenuContent = getFuncText(child.name);
|
|
11368
11378
|
return child.visible === false ? null : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
11369
11379
|
class: [child.className, {
|
|
@@ -11384,15 +11394,15 @@ const {
|
|
|
11384
11394
|
}
|
|
11385
11395
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11386
11396
|
class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
|
|
11387
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11388
|
-
class:
|
|
11397
|
+
}, [childPrefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childPrefixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(childPrefixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11398
|
+
class: childPrefixIcon
|
|
11389
11399
|
}), childPrefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11390
11400
|
class: 'vxe-context-menu--link-content',
|
|
11391
11401
|
title: childMenuContent
|
|
11392
11402
|
}, childMenuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11393
11403
|
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
11394
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11395
|
-
class:
|
|
11404
|
+
}, [childSuffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childSuffixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(childSuffixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11405
|
+
class: childSuffixIcon
|
|
11396
11406
|
}), childSuffixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${childSuffixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)])])]);
|
|
11397
11407
|
})) : null]);
|
|
11398
11408
|
}));
|
|
@@ -11425,6 +11435,9 @@ const {
|
|
|
11425
11435
|
const tableFilterMethodKeys = ['openFilter', 'setFilter', 'clearFilter', 'saveFilterPanel', 'saveFilterPanelByEvent', 'resetFilterPanel', 'resetFilterPanelByEvent', 'getCheckedFilters', 'updateFilterOptionStatus'];
|
|
11426
11436
|
hook_hooks.add('tableFilterModule', {
|
|
11427
11437
|
setupTable($xeTable) {
|
|
11438
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
11439
|
+
const $xeGantt = $xeTable.xeGantt;
|
|
11440
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
11428
11441
|
const {
|
|
11429
11442
|
props,
|
|
11430
11443
|
reactData,
|
|
@@ -11510,7 +11523,7 @@ hook_hooks.add('tableFilterModule', {
|
|
|
11510
11523
|
if (filterStore.column === column && filterStore.visible) {
|
|
11511
11524
|
filterStore.visible = false;
|
|
11512
11525
|
} else {
|
|
11513
|
-
const
|
|
11526
|
+
const tableEl = refElem.value;
|
|
11514
11527
|
const {
|
|
11515
11528
|
scrollTop,
|
|
11516
11529
|
scrollLeft,
|
|
@@ -11521,8 +11534,10 @@ hook_hooks.add('tableFilterModule', {
|
|
|
11521
11534
|
const {
|
|
11522
11535
|
transfer
|
|
11523
11536
|
} = filterOpts;
|
|
11524
|
-
const tableRect =
|
|
11537
|
+
const tableRect = tableEl.getBoundingClientRect();
|
|
11525
11538
|
const btnElem = evnt.currentTarget;
|
|
11539
|
+
const filterRender = column ? column.filterRender : null;
|
|
11540
|
+
const compConf = filterRender && isEnableConf(filterRender) ? hook_renderer.get(filterRender.name) : null;
|
|
11526
11541
|
$xeTable.handleFilterOptions(column);
|
|
11527
11542
|
internalData._currFilterParams = params;
|
|
11528
11543
|
filterStore.style = null;
|
|
@@ -11558,17 +11573,28 @@ hook_hooks.add('tableFilterModule', {
|
|
|
11558
11573
|
} else {
|
|
11559
11574
|
left = btnRect.left - tableRect.left - centerWidth;
|
|
11560
11575
|
top = btnRect.top - tableRect.top + btnElem.clientHeight;
|
|
11561
|
-
maxHeight = Math.max(40,
|
|
11576
|
+
maxHeight = Math.max(40, tableEl.clientHeight - top - (filterHeadElem ? filterHeadElem.clientHeight : 0) - (filterFootElem ? filterFootElem.clientHeight : 0) - 14);
|
|
11562
11577
|
if (left < 1) {
|
|
11563
11578
|
left = 1;
|
|
11564
|
-
} else if (left >
|
|
11565
|
-
left =
|
|
11579
|
+
} else if (left > tableEl.clientWidth - filterWidth - 1) {
|
|
11580
|
+
left = tableEl.clientWidth - filterWidth - 1;
|
|
11581
|
+
}
|
|
11582
|
+
if ($xeGGWrapper) {
|
|
11583
|
+
const wrapperEl = $xeGGWrapper.getRefMaps().refElem.value;
|
|
11584
|
+
if (wrapperEl) {
|
|
11585
|
+
const wrapperRect = wrapperEl.getBoundingClientRect();
|
|
11586
|
+
top += tableRect.top - wrapperRect.top;
|
|
11587
|
+
}
|
|
11566
11588
|
}
|
|
11567
11589
|
}
|
|
11568
11590
|
filterStore.style = {
|
|
11569
11591
|
top: toCssUnit(top),
|
|
11570
11592
|
left: toCssUnit(left)
|
|
11571
11593
|
};
|
|
11594
|
+
// 筛选面板是自适应表格高度
|
|
11595
|
+
if (compConf ? !compConf.tableFilterAutoHeight : false) {
|
|
11596
|
+
maxHeight = 0;
|
|
11597
|
+
}
|
|
11572
11598
|
// 判断面板不能大于表格高度
|
|
11573
11599
|
filterStore.maxHeight = maxHeight;
|
|
11574
11600
|
});
|
|
@@ -19401,7 +19427,17 @@ if(bodyScrollElem&&bodyTableElem&&bodyScrollElem.scrollTop+clientHeight>=maxYHei
|
|
|
19401
19427
|
* 已废弃,被 getCellElement 替换
|
|
19402
19428
|
* @deprecated
|
|
19403
19429
|
*/getCell(row,column){return tableMethods.getCellElement(row,column);},findRowIndexOf(list,row){return row?external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(list,item=>$xeTable.eqRow(item,row)):-1;},eqRow(row1,row2){if(row1&&row2){if(row1===row2){return true;}return getRowid($xeTable,row1)===getRowid($xeTable,row2);}return false;},handleConnectGanttView($ganttView){if($ganttView&&$ganttView.connectUpdate){$ganttView.connectUpdate({$table:$xeTable});internalData.xeGanttView=$ganttView;}return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();}};// 检测对应模块是否安装
|
|
19404
|
-
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name=>{
|
|
19430
|
+
// 'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
|
19431
|
+
// ($xeTable as any)[name] = function () {
|
|
19432
|
+
// errLog('vxe.error.reqModule', ['Export'])
|
|
19433
|
+
// }
|
|
19434
|
+
// })
|
|
19435
|
+
// 'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
|
19436
|
+
// ($xeTable as any)[name] = function () {
|
|
19437
|
+
// errLog('vxe.error.reqModule', ['Validator'])
|
|
19438
|
+
// }
|
|
19439
|
+
// })
|
|
19440
|
+
Object.assign($xeTable,tableMethods,tablePrivateMethods);/**
|
|
19405
19441
|
* 渲染浮固定列
|
|
19406
19442
|
* 分别渲染左边固定列和右边固定列
|
|
19407
19443
|
* 如果宽度足够情况下,则不需要渲染固定列
|
|
@@ -19472,7 +19508,19 @@ if(importConfig&&importOpts.types&&!importOpts.importMethod&&!external_root_XEUt
|
|
|
19472
19508
|
// }
|
|
19473
19509
|
// }
|
|
19474
19510
|
// 检查是否有安装需要的模块
|
|
19475
|
-
if(props.editConfig
|
|
19511
|
+
// if (props.editConfig && !$xeTable.insert) {
|
|
19512
|
+
// errLog('vxe.error.reqModule', ['Edit'])
|
|
19513
|
+
// }
|
|
19514
|
+
// if (props.editRules && !$xeTable.validate) {
|
|
19515
|
+
// errLog('vxe.error.reqModule', ['Validator'])
|
|
19516
|
+
// }
|
|
19517
|
+
// if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.handleCellMousedownEvent) {
|
|
19518
|
+
// errLog('vxe.error.reqModule', ['Keyboard'])
|
|
19519
|
+
// }
|
|
19520
|
+
// if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
19521
|
+
// errLog('vxe.error.reqModule', ['Export'])
|
|
19522
|
+
// }
|
|
19523
|
+
Object.assign(scrollYStore,{startIndex:0,endIndex:0,visibleSize:0});Object.assign(scrollXStore,{startIndex:0,endIndex:0,visibleSize:0});loadTableData(data||[],true).then(()=>{if(data&&data.length){internalData.inited=true;internalData.initStatus=true;handleLoadDefaults();}handleInitDefaults();updateStyle();});if(props.autoResize){const el=refElem.value;const parentEl=tablePrivateMethods.getParentElem();resizeObserver=table_globalResize.create(()=>{if(props.autoResize){handleResizeEvent();}});if(el){resizeObserver.observe(el);}if(parentEl){resizeObserver.observe(parentEl);}}});if(virtualYOpts.mode!=='scroll'){const tableViewportEl=refTableViewportElem.value;if(tableViewportEl){tableViewportEl.addEventListener('wheel',$xeTable.triggerBodyWheelEvent,{passive:false});}}table_globalEvents.on($xeTable,'paste',handleGlobalPasteEvent);table_globalEvents.on($xeTable,'copy',handleGlobalCopyEvent);table_globalEvents.on($xeTable,'cut',handleGlobalCutEvent);table_globalEvents.on($xeTable,'mousedown',handleGlobalMousedownEvent);table_globalEvents.on($xeTable,'blur',handleGlobalBlurEvent);table_globalEvents.on($xeTable,'mousewheel',handleGlobalMousewheelEvent);table_globalEvents.on($xeTable,'keydown',handleGlobalKeydownEvent);table_globalEvents.on($xeTable,'resize',handleGlobalResizeEvent);table_globalEvents.on($xeTable,'contextmenu',$xeTable.handleGlobalContextmenuEvent);$xeTable.preventEvent(null,'mounted',{$table:$xeTable});});(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(()=>{const tableViewportEl=refTableViewportElem.value;if(tableViewportEl){tableViewportEl.removeEventListener('wheel',$xeTable.triggerBodyWheelEvent);}internalData.cvCacheMaps={};internalData.prevDragRow=null;internalData.prevDragCol=null;if(resizeObserver){resizeObserver.disconnect();}tableMethods.closeFilter();if($xeTable.closeMenu){$xeTable.closeMenu();}table_globalEvents.off($xeTable,'paste');table_globalEvents.off($xeTable,'copy');table_globalEvents.off($xeTable,'cut');table_globalEvents.off($xeTable,'mousedown');table_globalEvents.off($xeTable,'blur');table_globalEvents.off($xeTable,'mousewheel');table_globalEvents.off($xeTable,'keydown');table_globalEvents.off($xeTable,'resize');table_globalEvents.off($xeTable,'contextmenu');tablePrivateMethods.preventEvent(null,'beforeUnmount',{$table:$xeTable});});(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(()=>{tablePrivateMethods.preventEvent(null,'unmounted',{$table:$xeTable});external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData,createInternalData());});(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(()=>{if(props.loading){if(!VxeUILoadingComponent&&!slots.loading){errLog('vxe.error.errProp',['loading=true','loading=false | <template #loading>...</template>']);errLog('vxe.error.reqComp',['vxe-loading']);}}if(props.showOverflow===true||props.showOverflow==='tooltip'||props.showHeaderOverflow===true||props.showHeaderOverflow==='tooltip'||props.showFooterOverflow===true||props.showFooterOverflow==='tooltip'||props.tooltipConfig||props.editRules){if(!VxeUITooltipComponent){if(props.showOverflow===true){errLog('vxe.error.errProp',['show-overflow=true','show-overflow=title']);}if(props.showOverflow==='tooltip'){errLog('vxe.error.errProp',['show-overflow=tooltip','show-overflow=title']);}if(props.showHeaderOverflow===true){errLog('vxe.error.errProp',['show-header-overflow=true','show-header-overflow=title']);}if(props.showHeaderOverflow==='tooltip'){errLog('vxe.error.errProp',['show-header-overflow=tooltip','show-header-overflow=title']);}if(props.showFooterOverflow===true){errLog('vxe.error.errProp',['show-footer-overflow=true','show-footer-overflow=title']);}if(props.showFooterOverflow==='tooltip'){errLog('vxe.error.errProp',['show-footer-overflow=tooltip','show-footer-overflow=title']);}errLog('vxe.error.reqComp',['vxe-tooltip']);}}});(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeColgroup',null);(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTable',$xeTable);$xeTable.renderVN=renderVN;return $xeTable;},render(){return this.renderVN();}}));
|
|
19476
19524
|
;// ./packages/toolbar/src/toolbar.ts
|
|
19477
19525
|
|
|
19478
19526
|
|