vxe-table 3.11.10 → 3.11.13
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/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +27 -2
- package/es/table/module/export/import-panel.js +3 -3
- package/es/table/src/body.js +12 -12
- package/es/table/src/columnInfo.js +3 -1
- package/es/table/src/methods.js +11 -4
- package/es/table/style.css +1 -1
- 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 +1 -1
- 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 +59 -21
- 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 +26 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +3 -2
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/src/body.js +12 -12
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +5 -1
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +11 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- 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 +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/custom/panel.ts +27 -2
- package/packages/table/module/export/import-panel.ts +3 -3
- package/packages/table/src/body.ts +12 -12
- package/packages/table/src/columnInfo.ts +3 -1
- package/packages/table/src/methods.ts +13 -4
- package/styles/components/table.scss +1 -1
- /package/es/{iconfont.1732698735693.ttf → iconfont.1732856009240.ttf} +0 -0
- /package/es/{iconfont.1732698735693.woff → iconfont.1732856009240.woff} +0 -0
- /package/es/{iconfont.1732698735693.woff2 → iconfont.1732856009240.woff2} +0 -0
- /package/lib/{iconfont.1732698735693.ttf → iconfont.1732856009240.ttf} +0 -0
- /package/lib/{iconfont.1732698735693.woff → iconfont.1732856009240.woff} +0 -0
- /package/lib/{iconfont.1732698735693.woff2 → iconfont.1732856009240.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.11.
|
|
2223
|
+
const version = "3.11.13";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2774,7 +2774,7 @@ function isNodeElement(elem) {
|
|
|
2774
2774
|
const {
|
|
2775
2775
|
log: log_log
|
|
2776
2776
|
} = core_.VxeUI;
|
|
2777
|
-
const log_version = `table v${"3.11.
|
|
2777
|
+
const log_version = `table v${"3.11.13"}`;
|
|
2778
2778
|
const warnLog = log_log.create('warn', log_version);
|
|
2779
2779
|
const errLog = log_log.create('error', log_version);
|
|
2780
2780
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -2799,6 +2799,7 @@ class ColumnInfo {
|
|
|
2799
2799
|
const proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
|
|
2800
2800
|
const formatter = _vm.formatter;
|
|
2801
2801
|
const visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.visible) ? _vm.visible : true;
|
|
2802
|
+
const tableProps = $xetable;
|
|
2802
2803
|
if (true) {
|
|
2803
2804
|
const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
2804
2805
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
@@ -2814,7 +2815,10 @@ class ColumnInfo {
|
|
|
2814
2815
|
warnLog('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render']);
|
|
2815
2816
|
}
|
|
2816
2817
|
if (_vm.type === 'expand') {
|
|
2817
|
-
|
|
2818
|
+
const {
|
|
2819
|
+
treeConfig
|
|
2820
|
+
} = tableProps;
|
|
2821
|
+
if (treeConfig && ($xetable.treeOpts.showLine || $xetable.treeOpts.line)) {
|
|
2818
2822
|
errLog('vxe.error.errConflicts', ['tree-config.line', 'column.type=expand']);
|
|
2819
2823
|
}
|
|
2820
2824
|
}
|
|
@@ -5577,6 +5581,7 @@ const Methods = {
|
|
|
5577
5581
|
loadTableData(datas) {
|
|
5578
5582
|
const {
|
|
5579
5583
|
keepSource,
|
|
5584
|
+
showOverflow,
|
|
5580
5585
|
treeConfig,
|
|
5581
5586
|
treeOpts,
|
|
5582
5587
|
editStore,
|
|
@@ -5648,8 +5653,14 @@ const Methods = {
|
|
|
5648
5653
|
if (keepSource) {
|
|
5649
5654
|
this.cacheSourceMap(fullData);
|
|
5650
5655
|
}
|
|
5651
|
-
if (
|
|
5652
|
-
if (
|
|
5656
|
+
if (sYLoad) {
|
|
5657
|
+
if (showOverflow) {
|
|
5658
|
+
const errColumn = this.tableFullColumn.find(column => column.showOverflow === false);
|
|
5659
|
+
if (errColumn) {
|
|
5660
|
+
errLog('vxe.error.errProp', [`column[field="${errColumn.field}"].show-overflow=false`, 'show-overflow=true']);
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5663
|
+
if (true) {
|
|
5653
5664
|
if (!(this.height || this.maxHeight)) {
|
|
5654
5665
|
errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
5655
5666
|
}
|
|
@@ -10842,6 +10853,7 @@ const Methods = {
|
|
|
10842
10853
|
oldIndex: oafIndex
|
|
10843
10854
|
}
|
|
10844
10855
|
}, evnt);
|
|
10856
|
+
$xeTable.saveCustomStore('update:sort');
|
|
10845
10857
|
}).catch(() => {});
|
|
10846
10858
|
}
|
|
10847
10859
|
}
|
|
@@ -11574,7 +11586,7 @@ const Methods = {
|
|
|
11574
11586
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
11575
11587
|
const rowid = getRowid(this, row);
|
|
11576
11588
|
if (lazy && row[hasChildField] && !treeExpandLazyLoadedMaps[rowid]) {
|
|
11577
|
-
this.clearTreeExpandLoaded(row).then(() => {
|
|
11589
|
+
return this.clearTreeExpandLoaded(row).then(() => {
|
|
11578
11590
|
return this.handleAsyncTreeExpandChilds(row);
|
|
11579
11591
|
}).then(() => {
|
|
11580
11592
|
if (transform) {
|
|
@@ -13323,18 +13335,6 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
13323
13335
|
$xeTable.clearHoverRow();
|
|
13324
13336
|
};
|
|
13325
13337
|
}
|
|
13326
|
-
// 拖拽行事件
|
|
13327
|
-
if (rowOpts.drag) {
|
|
13328
|
-
trOn.dragstart = evnt => {
|
|
13329
|
-
$xeTable.handleRowDragDragstartEvent(evnt);
|
|
13330
|
-
};
|
|
13331
|
-
trOn.dragover = evnt => {
|
|
13332
|
-
$xeTable.handleRowDragDragoverEvent(evnt);
|
|
13333
|
-
};
|
|
13334
|
-
trOn.dragend = evnt => {
|
|
13335
|
-
$xeTable.handleRowDragDragendEvent(evnt);
|
|
13336
|
-
};
|
|
13337
|
-
}
|
|
13338
13338
|
const rowid = getRowid($xeTable, row);
|
|
13339
13339
|
const rest = fullAllDataRowIdData[rowid];
|
|
13340
13340
|
const rowLevel = rest ? rest.level : 0;
|
|
@@ -13364,6 +13364,18 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
13364
13364
|
rowChildren = row[childrenField];
|
|
13365
13365
|
isExpandTree = rowChildren && rowChildren.length && !!treeExpandedMaps[rowid];
|
|
13366
13366
|
}
|
|
13367
|
+
// 拖拽行事件
|
|
13368
|
+
if (rowOpts.drag && !rowLevel) {
|
|
13369
|
+
trOn.dragstart = evnt => {
|
|
13370
|
+
$xeTable.handleRowDragDragstartEvent(evnt);
|
|
13371
|
+
};
|
|
13372
|
+
trOn.dragover = evnt => {
|
|
13373
|
+
$xeTable.handleRowDragDragoverEvent(evnt);
|
|
13374
|
+
};
|
|
13375
|
+
trOn.dragend = evnt => {
|
|
13376
|
+
$xeTable.handleRowDragDragendEvent(evnt);
|
|
13377
|
+
};
|
|
13378
|
+
}
|
|
13367
13379
|
const trClass = ['vxe-body--row', treeConfig ? `row--level-${rowLevel}` : '', {
|
|
13368
13380
|
'row--stripe': stripe && ($xeTable.getVTRowIndex(row) + 1) % 2 === 0,
|
|
13369
13381
|
'is--new': isNewRow,
|
|
@@ -15223,6 +15235,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
15223
15235
|
};
|
|
15224
15236
|
const renderPopupPanel = (h, _vm) => {
|
|
15225
15237
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
15238
|
+
const VxeUIDrawerComponent = core_.VxeUI.getComponent('VxeDrawer');
|
|
15226
15239
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
15227
15240
|
const VxeUINumberInputComponent = core_.VxeUI.getComponent('VxeInput');
|
|
15228
15241
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
@@ -15240,7 +15253,9 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
15240
15253
|
isMaxFixedColumn
|
|
15241
15254
|
} = $xeTable;
|
|
15242
15255
|
const {
|
|
15256
|
+
mode,
|
|
15243
15257
|
modalOptions,
|
|
15258
|
+
drawerOptions,
|
|
15244
15259
|
allowVisible,
|
|
15245
15260
|
allowSort,
|
|
15246
15261
|
allowFixed,
|
|
@@ -15257,6 +15272,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
15257
15272
|
maxWidth: reMaxWidth
|
|
15258
15273
|
} = resizableOpts;
|
|
15259
15274
|
const modalOpts = Object.assign({}, modalOptions);
|
|
15275
|
+
const drawerOpts = Object.assign({}, drawerOptions);
|
|
15260
15276
|
const slots = customOpts.slots || {};
|
|
15261
15277
|
const headerSlot = slots.header;
|
|
15262
15278
|
const topSlot = slots.top;
|
|
@@ -15510,6 +15526,27 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
15510
15526
|
if (headerSlot) {
|
|
15511
15527
|
scopedSlots.header = () => $xeTable.callSlot(headerSlot, params, h);
|
|
15512
15528
|
}
|
|
15529
|
+
if (mode === 'drawer') {
|
|
15530
|
+
return VxeUIDrawerComponent ? h(VxeUIDrawerComponent, {
|
|
15531
|
+
key: 'drawer',
|
|
15532
|
+
props: {
|
|
15533
|
+
className: ['vxe-table-custom-drawer-wrapper', 'vxe-table--ignore-clear', drawerOpts.className || ''].join(' '),
|
|
15534
|
+
value: customStore.visible,
|
|
15535
|
+
title: drawerOpts.title || panel_getI18n('vxe.custom.cstmTitle'),
|
|
15536
|
+
width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
|
|
15537
|
+
position: drawerOpts.position,
|
|
15538
|
+
escClosable: !!drawerOpts.escClosable,
|
|
15539
|
+
destroyOnClose: true,
|
|
15540
|
+
showFooter: true
|
|
15541
|
+
},
|
|
15542
|
+
on: {
|
|
15543
|
+
input(value) {
|
|
15544
|
+
customStore.visible = value;
|
|
15545
|
+
}
|
|
15546
|
+
},
|
|
15547
|
+
scopedSlots
|
|
15548
|
+
}) : panel_renderEmptyElement($xeTableCustomPanel);
|
|
15549
|
+
}
|
|
15513
15550
|
return VxeUIModalComponent ? h(VxeUIModalComponent, {
|
|
15514
15551
|
key: 'modal',
|
|
15515
15552
|
props: {
|
|
@@ -15606,7 +15643,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
15606
15643
|
const {
|
|
15607
15644
|
customOpts
|
|
15608
15645
|
} = $xetable;
|
|
15609
|
-
if (['modal', 'popup'].includes(`${customOpts.mode}`)) {
|
|
15646
|
+
if (['modal', 'drawer', 'popup'].includes(`${customOpts.mode}`)) {
|
|
15610
15647
|
return renderPopupPanel(h, this);
|
|
15611
15648
|
}
|
|
15612
15649
|
return renderSimplePanel(h, this);
|
|
@@ -16197,6 +16234,7 @@ const {
|
|
|
16197
16234
|
const $xeTable = this.$xeTable;
|
|
16198
16235
|
const {
|
|
16199
16236
|
hasFile,
|
|
16237
|
+
loading,
|
|
16200
16238
|
parseTypeLabel,
|
|
16201
16239
|
defaultOptions,
|
|
16202
16240
|
storeData,
|
|
@@ -16223,7 +16261,7 @@ const {
|
|
|
16223
16261
|
maskClosable: true,
|
|
16224
16262
|
showMaximize: true,
|
|
16225
16263
|
resize: true,
|
|
16226
|
-
loading
|
|
16264
|
+
loading
|
|
16227
16265
|
},
|
|
16228
16266
|
on: {
|
|
16229
16267
|
input(value) {
|
|
@@ -16303,7 +16341,7 @@ const {
|
|
|
16303
16341
|
}, import_panel_getI18n('vxe.import.impCancel')), h('vxe-button', {
|
|
16304
16342
|
props: {
|
|
16305
16343
|
status: 'primary',
|
|
16306
|
-
disabled: !hasFile
|
|
16344
|
+
disabled: !hasFile || loading
|
|
16307
16345
|
},
|
|
16308
16346
|
on: {
|
|
16309
16347
|
click: this.importEvent
|