vxe-table 3.15.40 → 3.15.42
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/cell.js +12 -12
- package/es/table/src/methods.js +6 -2
- package/es/toolbar/src/toolbar.js +163 -63
- package/es/ui/index.js +9 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +219 -106
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +14 -14
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +6 -2
- package/lib/table/src/methods.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +189 -88
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +9 -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/src/methods.ts +6 -2
- package/packages/toolbar/src/toolbar.ts +167 -62
- /package/es/{iconfont.1750082820248.ttf → iconfont.1750240479938.ttf} +0 -0
- /package/es/{iconfont.1750082820248.woff → iconfont.1750240479938.woff} +0 -0
- /package/es/{iconfont.1750082820248.woff2 → iconfont.1750240479938.woff2} +0 -0
- /package/lib/{iconfont.1750082820248.ttf → iconfont.1750240479938.ttf} +0 -0
- /package/lib/{iconfont.1750082820248.woff → iconfont.1750240479938.woff} +0 -0
- /package/lib/{iconfont.1750082820248.woff2 → iconfont.1750240479938.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.15.
|
|
2005
|
+
const version = "3.15.42";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2097,6 +2097,14 @@ core_.VxeUI.setConfig({
|
|
|
2097
2097
|
showFooter: true,
|
|
2098
2098
|
placement: 'top-right',
|
|
2099
2099
|
// storage: false,
|
|
2100
|
+
storeOptions: {
|
|
2101
|
+
visible: true,
|
|
2102
|
+
resizable: true,
|
|
2103
|
+
sort: true,
|
|
2104
|
+
fixed: true
|
|
2105
|
+
// rowGroup: false,
|
|
2106
|
+
// aggFunc: false
|
|
2107
|
+
},
|
|
2100
2108
|
// checkMethod () {},
|
|
2101
2109
|
modalOptions: {
|
|
2102
2110
|
showMaximize: true,
|
|
@@ -2650,7 +2658,7 @@ function isNodeElement(elem) {
|
|
|
2650
2658
|
const {
|
|
2651
2659
|
log: log_log
|
|
2652
2660
|
} = core_.VxeUI;
|
|
2653
|
-
const log_version = `table v${"3.15.
|
|
2661
|
+
const log_version = `table v${"3.15.42"}`;
|
|
2654
2662
|
const warnLog = log_log.create('warn', log_version);
|
|
2655
2663
|
const errLog = log_log.create('error', log_version);
|
|
2656
2664
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3902,20 +3910,6 @@ const Cell = {
|
|
|
3902
3910
|
aggFunc
|
|
3903
3911
|
} = column;
|
|
3904
3912
|
const renderOpts = editRender || cellRender;
|
|
3905
|
-
if (slots && slots.default) {
|
|
3906
|
-
return renderCellBaseVNs(h, params, $table.callSlot(slots.default, params, h));
|
|
3907
|
-
}
|
|
3908
|
-
if (renderOpts) {
|
|
3909
|
-
const compConf = cell_renderer.get(renderOpts.name);
|
|
3910
|
-
const rtDefault = compConf ? compConf.renderTableDefault || compConf.renderDefault : null;
|
|
3911
|
-
const rtCell = compConf ? compConf.renderTableCell || compConf.renderCell : null;
|
|
3912
|
-
const renderFn = editRender ? rtCell : rtDefault;
|
|
3913
|
-
if (renderFn) {
|
|
3914
|
-
return renderCellBaseVNs(h, params, getSlotVNs(renderFn.call($table, h, renderOpts, Object.assign({
|
|
3915
|
-
$type: editRender ? 'edit' : 'cell'
|
|
3916
|
-
}, params))));
|
|
3917
|
-
}
|
|
3918
|
-
}
|
|
3919
3913
|
let cellValue = '';
|
|
3920
3914
|
if (isRowGroupStatus && field && row.isAggregate) {
|
|
3921
3915
|
const aggRow = row;
|
|
@@ -3969,6 +3963,20 @@ const Cell = {
|
|
|
3969
3963
|
}
|
|
3970
3964
|
}
|
|
3971
3965
|
} else {
|
|
3966
|
+
if (slots && slots.default) {
|
|
3967
|
+
return renderCellBaseVNs(h, params, $table.callSlot(slots.default, params, h));
|
|
3968
|
+
}
|
|
3969
|
+
if (renderOpts) {
|
|
3970
|
+
const compConf = cell_renderer.get(renderOpts.name);
|
|
3971
|
+
const rtDefault = compConf ? compConf.renderTableDefault || compConf.renderDefault : null;
|
|
3972
|
+
const rtCell = compConf ? compConf.renderTableCell || compConf.renderCell : null;
|
|
3973
|
+
const renderFn = editRender ? rtCell : rtDefault;
|
|
3974
|
+
if (renderFn) {
|
|
3975
|
+
return renderCellBaseVNs(h, params, getSlotVNs(renderFn.call($table, h, renderOpts, Object.assign({
|
|
3976
|
+
$type: editRender ? 'edit' : 'cell'
|
|
3977
|
+
}, params))));
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3972
3980
|
cellValue = $table.getCellLabel(row, column);
|
|
3973
3981
|
}
|
|
3974
3982
|
const cellPlaceholder = editRender ? editRender.placeholder : '';
|
|
@@ -15596,8 +15604,10 @@ const Methods = {
|
|
|
15596
15604
|
}
|
|
15597
15605
|
internalData.rowGroupExpandedMaps = rgExpandedMaps;
|
|
15598
15606
|
handleVirtualTreeToList($xeTable);
|
|
15607
|
+
$xeTable.handleTableData();
|
|
15608
|
+
updateAfterDataIndex($xeTable);
|
|
15599
15609
|
reactData.rowGroupExpandedFlag++;
|
|
15600
|
-
return $xeTable.
|
|
15610
|
+
return $xeTable.recalculate(true);
|
|
15601
15611
|
},
|
|
15602
15612
|
clearRowGroupExpand() {
|
|
15603
15613
|
const $xeTable = this;
|
|
@@ -15605,8 +15615,10 @@ const Methods = {
|
|
|
15605
15615
|
const internalData = $xeTable;
|
|
15606
15616
|
internalData.rowGroupExpandedMaps = {};
|
|
15607
15617
|
handleVirtualTreeToList($xeTable);
|
|
15618
|
+
$xeTable.handleTableData();
|
|
15619
|
+
updateAfterDataIndex($xeTable);
|
|
15608
15620
|
reactData.rowGroupExpandedFlag++;
|
|
15609
|
-
return $xeTable.
|
|
15621
|
+
return $xeTable.recalculate(true);
|
|
15610
15622
|
},
|
|
15611
15623
|
getTreeExpandRecords() {
|
|
15612
15624
|
const $xeTable = this;
|
|
@@ -29435,11 +29447,17 @@ const {
|
|
|
29435
29447
|
props: {
|
|
29436
29448
|
loading: Boolean,
|
|
29437
29449
|
refresh: [Boolean, Object],
|
|
29450
|
+
refreshOptions: Object,
|
|
29438
29451
|
import: [Boolean, Object],
|
|
29452
|
+
importOptions: Object,
|
|
29439
29453
|
export: [Boolean, Object],
|
|
29454
|
+
exportOptions: Object,
|
|
29440
29455
|
print: [Boolean, Object],
|
|
29456
|
+
printOptions: Object,
|
|
29441
29457
|
zoom: [Boolean, Object],
|
|
29458
|
+
zoomOptions: Object,
|
|
29442
29459
|
custom: [Boolean, Object],
|
|
29460
|
+
customOptions: Object,
|
|
29443
29461
|
buttons: {
|
|
29444
29462
|
type: Array,
|
|
29445
29463
|
default: () => toolbar_getConfig().toolbar.buttons
|
|
@@ -29484,32 +29502,32 @@ const {
|
|
|
29484
29502
|
computeRefreshOpts() {
|
|
29485
29503
|
const $xeToolbar = this;
|
|
29486
29504
|
const props = $xeToolbar;
|
|
29487
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refresh);
|
|
29505
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refreshOptions, props.refresh);
|
|
29488
29506
|
},
|
|
29489
29507
|
computeImportOpts() {
|
|
29490
29508
|
const $xeToolbar = this;
|
|
29491
29509
|
const props = $xeToolbar;
|
|
29492
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.import);
|
|
29510
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.importOptions, props.import);
|
|
29493
29511
|
},
|
|
29494
29512
|
computeExportOpts() {
|
|
29495
29513
|
const $xeToolbar = this;
|
|
29496
29514
|
const props = $xeToolbar;
|
|
29497
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.export);
|
|
29515
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.exportOptions, props.export);
|
|
29498
29516
|
},
|
|
29499
29517
|
computePrintOpts() {
|
|
29500
29518
|
const $xeToolbar = this;
|
|
29501
29519
|
const props = $xeToolbar;
|
|
29502
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.print);
|
|
29520
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.printOptions, props.print);
|
|
29503
29521
|
},
|
|
29504
29522
|
computeZoomOpts() {
|
|
29505
29523
|
const $xeToolbar = this;
|
|
29506
29524
|
const props = $xeToolbar;
|
|
29507
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoom);
|
|
29525
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoomOptions, props.zoom);
|
|
29508
29526
|
},
|
|
29509
29527
|
computeCustomOpts() {
|
|
29510
29528
|
const $xeToolbar = this;
|
|
29511
29529
|
const props = $xeToolbar;
|
|
29512
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.custom);
|
|
29530
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.customOptions, props.custom);
|
|
29513
29531
|
},
|
|
29514
29532
|
computeTableCustomOpts() {
|
|
29515
29533
|
const $xeToolbar = this;
|
|
@@ -29658,80 +29676,37 @@ const {
|
|
|
29658
29676
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
29659
29677
|
if ($xeGrid) {
|
|
29660
29678
|
$xeGrid.triggerZoomEvent($event);
|
|
29679
|
+
} else {
|
|
29680
|
+
warnLog('vxe.error.notProp', ['zoom']);
|
|
29661
29681
|
}
|
|
29662
29682
|
},
|
|
29663
|
-
|
|
29683
|
+
importEvent() {
|
|
29664
29684
|
const $xeToolbar = this;
|
|
29665
29685
|
const internalData = $xeToolbar.internalData;
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29670
|
-
|
|
29671
|
-
|
|
29672
|
-
|
|
29673
|
-
} = item;
|
|
29674
|
-
if (code) {
|
|
29675
|
-
if ($xeGrid) {
|
|
29676
|
-
$xeGrid.triggerToolbarBtnEvent(item, evnt);
|
|
29677
|
-
} else {
|
|
29678
|
-
const gCommandOpts = toolbar_commands.get(code);
|
|
29679
|
-
const params = {
|
|
29680
|
-
code,
|
|
29681
|
-
button: item,
|
|
29682
|
-
$table: $table,
|
|
29683
|
-
$grid: $xeGrid,
|
|
29684
|
-
$event: evnt
|
|
29685
|
-
};
|
|
29686
|
-
if (gCommandOpts) {
|
|
29687
|
-
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
29688
|
-
if (tCommandMethod) {
|
|
29689
|
-
tCommandMethod(params);
|
|
29690
|
-
} else {
|
|
29691
|
-
errLog('vxe.error.notCommands', [code]);
|
|
29692
|
-
}
|
|
29693
|
-
}
|
|
29694
|
-
$xeToolbar.dispatchEvent('button-click', params, evnt);
|
|
29686
|
+
if ($xeToolbar.checkTable()) {
|
|
29687
|
+
const {
|
|
29688
|
+
connectTable
|
|
29689
|
+
} = internalData;
|
|
29690
|
+
const $table = connectTable;
|
|
29691
|
+
if ($table) {
|
|
29692
|
+
$table.importData();
|
|
29695
29693
|
}
|
|
29696
29694
|
}
|
|
29697
29695
|
},
|
|
29698
|
-
|
|
29696
|
+
openImportEvent() {
|
|
29699
29697
|
const $xeToolbar = this;
|
|
29700
29698
|
const internalData = $xeToolbar.internalData;
|
|
29701
|
-
|
|
29702
|
-
|
|
29703
|
-
|
|
29704
|
-
|
|
29705
|
-
|
|
29706
|
-
|
|
29707
|
-
|
|
29708
|
-
} = item;
|
|
29709
|
-
if (code) {
|
|
29710
|
-
if ($xeGrid) {
|
|
29711
|
-
$xeGrid.triggerToolbarTolEvent(item, evnt);
|
|
29712
|
-
} else {
|
|
29713
|
-
const gCommandOpts = toolbar_commands.get(code);
|
|
29714
|
-
const params = {
|
|
29715
|
-
code,
|
|
29716
|
-
button: null,
|
|
29717
|
-
tool: item,
|
|
29718
|
-
$table: $table,
|
|
29719
|
-
$grid: $xeGrid,
|
|
29720
|
-
$event: evnt
|
|
29721
|
-
};
|
|
29722
|
-
if (gCommandOpts) {
|
|
29723
|
-
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
29724
|
-
if (tCommandMethod) {
|
|
29725
|
-
tCommandMethod(params);
|
|
29726
|
-
} else {
|
|
29727
|
-
errLog('vxe.error.notCommands', [code]);
|
|
29728
|
-
}
|
|
29729
|
-
}
|
|
29730
|
-
$xeToolbar.dispatchEvent('tool-click', params, evnt);
|
|
29699
|
+
if ($xeToolbar.checkTable()) {
|
|
29700
|
+
const {
|
|
29701
|
+
connectTable
|
|
29702
|
+
} = internalData;
|
|
29703
|
+
const $table = connectTable;
|
|
29704
|
+
if ($table) {
|
|
29705
|
+
$table.openImport();
|
|
29731
29706
|
}
|
|
29732
29707
|
}
|
|
29733
29708
|
},
|
|
29734
|
-
|
|
29709
|
+
exportEvent() {
|
|
29735
29710
|
const $xeToolbar = this;
|
|
29736
29711
|
const internalData = $xeToolbar.internalData;
|
|
29737
29712
|
if ($xeToolbar.checkTable()) {
|
|
@@ -29740,11 +29715,11 @@ const {
|
|
|
29740
29715
|
} = internalData;
|
|
29741
29716
|
const $table = connectTable;
|
|
29742
29717
|
if ($table) {
|
|
29743
|
-
$table.
|
|
29718
|
+
$table.exportData();
|
|
29744
29719
|
}
|
|
29745
29720
|
}
|
|
29746
29721
|
},
|
|
29747
|
-
|
|
29722
|
+
openExportEvent() {
|
|
29748
29723
|
const $xeToolbar = this;
|
|
29749
29724
|
const internalData = $xeToolbar.internalData;
|
|
29750
29725
|
if ($xeToolbar.checkTable()) {
|
|
@@ -29758,6 +29733,19 @@ const {
|
|
|
29758
29733
|
}
|
|
29759
29734
|
},
|
|
29760
29735
|
printEvent() {
|
|
29736
|
+
const $xeToolbar = this;
|
|
29737
|
+
const internalData = $xeToolbar.internalData;
|
|
29738
|
+
if ($xeToolbar.checkTable()) {
|
|
29739
|
+
const {
|
|
29740
|
+
connectTable
|
|
29741
|
+
} = internalData;
|
|
29742
|
+
const $table = connectTable;
|
|
29743
|
+
if ($table) {
|
|
29744
|
+
$table.print();
|
|
29745
|
+
}
|
|
29746
|
+
}
|
|
29747
|
+
},
|
|
29748
|
+
openPrintEvent() {
|
|
29761
29749
|
const $xeToolbar = this;
|
|
29762
29750
|
const internalData = $xeToolbar.internalData;
|
|
29763
29751
|
if ($xeToolbar.checkTable()) {
|
|
@@ -29770,6 +29758,122 @@ const {
|
|
|
29770
29758
|
}
|
|
29771
29759
|
}
|
|
29772
29760
|
},
|
|
29761
|
+
handleDefaultCodeEvent(eventParams, item, cb) {
|
|
29762
|
+
const $xeToolbar = this;
|
|
29763
|
+
switch (item.code) {
|
|
29764
|
+
case 'print':
|
|
29765
|
+
$xeToolbar.printEvent();
|
|
29766
|
+
break;
|
|
29767
|
+
case 'open_print':
|
|
29768
|
+
$xeToolbar.openPrintEvent();
|
|
29769
|
+
break;
|
|
29770
|
+
case 'custom':
|
|
29771
|
+
$xeToolbar.handleClickSettingEvent(eventParams);
|
|
29772
|
+
break;
|
|
29773
|
+
case 'export':
|
|
29774
|
+
$xeToolbar.exportEvent();
|
|
29775
|
+
break;
|
|
29776
|
+
case 'open_export':
|
|
29777
|
+
$xeToolbar.openExportEvent();
|
|
29778
|
+
break;
|
|
29779
|
+
case 'import':
|
|
29780
|
+
$xeToolbar.importEvent();
|
|
29781
|
+
break;
|
|
29782
|
+
case 'open_import':
|
|
29783
|
+
$xeToolbar.openImportEvent();
|
|
29784
|
+
break;
|
|
29785
|
+
case 'zoom':
|
|
29786
|
+
$xeToolbar.zoomEvent(eventParams);
|
|
29787
|
+
break;
|
|
29788
|
+
case 'refresh':
|
|
29789
|
+
$xeToolbar.refreshEvent(eventParams);
|
|
29790
|
+
break;
|
|
29791
|
+
default:
|
|
29792
|
+
cb();
|
|
29793
|
+
break;
|
|
29794
|
+
}
|
|
29795
|
+
},
|
|
29796
|
+
btnEvent(eventParams, item) {
|
|
29797
|
+
const $xeToolbar = this;
|
|
29798
|
+
const internalData = $xeToolbar.internalData;
|
|
29799
|
+
const $xeGrid = $xeToolbar.$xeGrid;
|
|
29800
|
+
const {
|
|
29801
|
+
$event
|
|
29802
|
+
} = eventParams;
|
|
29803
|
+
const {
|
|
29804
|
+
connectTable
|
|
29805
|
+
} = internalData;
|
|
29806
|
+
const $table = connectTable;
|
|
29807
|
+
const {
|
|
29808
|
+
code
|
|
29809
|
+
} = item;
|
|
29810
|
+
if (code) {
|
|
29811
|
+
$xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
|
|
29812
|
+
if ($xeGrid) {
|
|
29813
|
+
$xeGrid.triggerToolbarBtnEvent(item, $event);
|
|
29814
|
+
} else {
|
|
29815
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
29816
|
+
const params = {
|
|
29817
|
+
code,
|
|
29818
|
+
button: item,
|
|
29819
|
+
$table: $table,
|
|
29820
|
+
$grid: $xeGrid,
|
|
29821
|
+
$event
|
|
29822
|
+
};
|
|
29823
|
+
if (gCommandOpts) {
|
|
29824
|
+
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
29825
|
+
if (tCommandMethod) {
|
|
29826
|
+
tCommandMethod(params);
|
|
29827
|
+
} else {
|
|
29828
|
+
errLog('vxe.error.notCommands', [code]);
|
|
29829
|
+
}
|
|
29830
|
+
}
|
|
29831
|
+
$xeToolbar.dispatchEvent('button-click', params, $event);
|
|
29832
|
+
}
|
|
29833
|
+
});
|
|
29834
|
+
}
|
|
29835
|
+
},
|
|
29836
|
+
tolEvent(eventParams, item) {
|
|
29837
|
+
const $xeToolbar = this;
|
|
29838
|
+
const internalData = $xeToolbar.internalData;
|
|
29839
|
+
const $xeGrid = $xeToolbar.$xeGrid;
|
|
29840
|
+
const {
|
|
29841
|
+
$event
|
|
29842
|
+
} = eventParams;
|
|
29843
|
+
const {
|
|
29844
|
+
connectTable
|
|
29845
|
+
} = internalData;
|
|
29846
|
+
const $table = connectTable;
|
|
29847
|
+
const {
|
|
29848
|
+
code
|
|
29849
|
+
} = item;
|
|
29850
|
+
if (code) {
|
|
29851
|
+
$xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
|
|
29852
|
+
if ($xeGrid) {
|
|
29853
|
+
$xeGrid.triggerToolbarTolEvent(item, $event);
|
|
29854
|
+
} else {
|
|
29855
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
29856
|
+
const params = {
|
|
29857
|
+
code,
|
|
29858
|
+
button: null,
|
|
29859
|
+
tool: item,
|
|
29860
|
+
$table: $table,
|
|
29861
|
+
$grid: $xeGrid,
|
|
29862
|
+
$event
|
|
29863
|
+
};
|
|
29864
|
+
if (gCommandOpts) {
|
|
29865
|
+
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
29866
|
+
if (tCommandMethod) {
|
|
29867
|
+
tCommandMethod(params);
|
|
29868
|
+
} else {
|
|
29869
|
+
errLog('vxe.error.notCommands', [code]);
|
|
29870
|
+
}
|
|
29871
|
+
}
|
|
29872
|
+
$xeToolbar.dispatchEvent('tool-click', params, $event);
|
|
29873
|
+
}
|
|
29874
|
+
});
|
|
29875
|
+
}
|
|
29876
|
+
},
|
|
29773
29877
|
//
|
|
29774
29878
|
// Render
|
|
29775
29879
|
//
|
|
@@ -29805,9 +29909,7 @@ const {
|
|
|
29805
29909
|
suffixTooltip: child.suffixTooltip
|
|
29806
29910
|
},
|
|
29807
29911
|
on: {
|
|
29808
|
-
click: (
|
|
29809
|
-
$event
|
|
29810
|
-
}) => isBtn ? $xeToolbar.btnEvent($event, child) : $xeToolbar.tolEvent($event, child)
|
|
29912
|
+
click: eventParams => isBtn ? $xeToolbar.btnEvent(eventParams, child) : $xeToolbar.tolEvent(eventParams, child)
|
|
29811
29913
|
}
|
|
29812
29914
|
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
29813
29915
|
});
|
|
@@ -29883,12 +29985,10 @@ const {
|
|
|
29883
29985
|
transfer: item.transfer
|
|
29884
29986
|
},
|
|
29885
29987
|
on: {
|
|
29886
|
-
click: (
|
|
29887
|
-
$event
|
|
29888
|
-
}) => this.btnEvent($event, item)
|
|
29988
|
+
click: eventParams => $xeToolbar.btnEvent(eventParams, item)
|
|
29889
29989
|
},
|
|
29890
29990
|
scopedSlots: dropdowns && dropdowns.length ? {
|
|
29891
|
-
dropdowns: () =>
|
|
29991
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
|
|
29892
29992
|
} : {}
|
|
29893
29993
|
}));
|
|
29894
29994
|
}
|
|
@@ -29977,9 +30077,7 @@ const {
|
|
|
29977
30077
|
transfer: item.transfer
|
|
29978
30078
|
},
|
|
29979
30079
|
on: {
|
|
29980
|
-
click: (
|
|
29981
|
-
$event
|
|
29982
|
-
}) => $xeToolbar.tolEvent($event, item)
|
|
30080
|
+
click: eventParams => $xeToolbar.tolEvent(eventParams, item)
|
|
29983
30081
|
},
|
|
29984
30082
|
scopedSlots: dropdowns && dropdowns.length ? {
|
|
29985
30083
|
dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
|
|
@@ -30012,7 +30110,7 @@ const {
|
|
|
30012
30110
|
title: toolbar_getI18n('vxe.toolbar.import')
|
|
30013
30111
|
},
|
|
30014
30112
|
on: {
|
|
30015
|
-
click: $xeToolbar.
|
|
30113
|
+
click: $xeToolbar.openImportEvent
|
|
30016
30114
|
}
|
|
30017
30115
|
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30018
30116
|
},
|
|
@@ -30029,7 +30127,7 @@ const {
|
|
|
30029
30127
|
title: toolbar_getI18n('vxe.toolbar.export')
|
|
30030
30128
|
},
|
|
30031
30129
|
on: {
|
|
30032
|
-
click: $xeToolbar.
|
|
30130
|
+
click: $xeToolbar.openExportEvent
|
|
30033
30131
|
}
|
|
30034
30132
|
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30035
30133
|
},
|
|
@@ -30046,7 +30144,7 @@ const {
|
|
|
30046
30144
|
title: toolbar_getI18n('vxe.toolbar.print')
|
|
30047
30145
|
},
|
|
30048
30146
|
on: {
|
|
30049
|
-
click: $xeToolbar.
|
|
30147
|
+
click: $xeToolbar.openPrintEvent
|
|
30050
30148
|
}
|
|
30051
30149
|
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30052
30150
|
},
|
|
@@ -30164,15 +30262,30 @@ const {
|
|
|
30164
30262
|
const props = $xeToolbar;
|
|
30165
30263
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
30166
30264
|
$xeToolbar.$nextTick(() => {
|
|
30167
|
-
const {
|
|
30168
|
-
refresh
|
|
30169
|
-
} = props;
|
|
30170
30265
|
const refreshOpts = $xeToolbar.computeRefreshOpts;
|
|
30171
|
-
const $xeTable =
|
|
30266
|
+
const $xeTable = $xeToolbar.fintTable();
|
|
30172
30267
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
30173
|
-
if (refresh && !$xeGrid && !queryMethod) {
|
|
30268
|
+
if (props.refresh && !$xeGrid && !queryMethod) {
|
|
30174
30269
|
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
30175
30270
|
}
|
|
30271
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.custom)) {
|
|
30272
|
+
warnLog('vxe.error.delProp', ['custom={...}', 'custom=boolean & custom-options={...}']);
|
|
30273
|
+
}
|
|
30274
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.print)) {
|
|
30275
|
+
warnLog('vxe.error.delProp', ['print={...}', 'print=boolean & print-options={...}']);
|
|
30276
|
+
}
|
|
30277
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.export)) {
|
|
30278
|
+
warnLog('vxe.error.delProp', ['export={...}', 'export=boolean & export-options={...}']);
|
|
30279
|
+
}
|
|
30280
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.import)) {
|
|
30281
|
+
warnLog('vxe.error.delProp', ['import={...}', 'import=boolean & import-options={...}']);
|
|
30282
|
+
}
|
|
30283
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
30284
|
+
warnLog('vxe.error.delProp', ['refresh={...}', 'refresh=boolean & refresh-options={...}']);
|
|
30285
|
+
}
|
|
30286
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
30287
|
+
warnLog('vxe.error.delProp', ['zoom={...}', 'zoom=boolean & zoom-options={...}']);
|
|
30288
|
+
}
|
|
30176
30289
|
if ($xeTable) {
|
|
30177
30290
|
$xeTable.connect(this);
|
|
30178
30291
|
}
|