vxe-table 4.13.40 → 4.13.41
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 +14 -14
- package/es/toolbar/src/toolbar.js +152 -59
- package/es/ui/index.js +9 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +204 -102
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +16 -16
- package/lib/table/src/cell.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +178 -84
- 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/toolbar/src/toolbar.ts +154 -56
- /package/es/{iconfont.1750082858834.ttf → iconfont.1750153812846.ttf} +0 -0
- /package/es/{iconfont.1750082858834.woff → iconfont.1750153812846.woff} +0 -0
- /package/es/{iconfont.1750082858834.woff2 → iconfont.1750153812846.woff2} +0 -0
- /package/lib/{iconfont.1750082858834.ttf → iconfont.1750153812846.ttf} +0 -0
- /package/lib/{iconfont.1750082858834.woff → iconfont.1750153812846.woff} +0 -0
- /package/lib/{iconfont.1750082858834.woff2 → iconfont.1750153812846.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.13.
|
|
3141
|
+
const version = "4.13.41";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3232,6 +3232,14 @@ core_.VxeUI.setConfig({
|
|
|
3232
3232
|
showFooter: true,
|
|
3233
3233
|
placement: 'top-right',
|
|
3234
3234
|
// storage: false,
|
|
3235
|
+
storeOptions: {
|
|
3236
|
+
visible: true,
|
|
3237
|
+
resizable: true,
|
|
3238
|
+
sort: true,
|
|
3239
|
+
fixed: true
|
|
3240
|
+
// rowGroup: false,
|
|
3241
|
+
// aggFunc: false
|
|
3242
|
+
},
|
|
3235
3243
|
// checkMethod () {},
|
|
3236
3244
|
modalOptions: {
|
|
3237
3245
|
showMaximize: true,
|
|
@@ -3606,7 +3614,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3606
3614
|
const {
|
|
3607
3615
|
log: log_log
|
|
3608
3616
|
} = core_.VxeUI;
|
|
3609
|
-
const log_version = `table v${"4.13.
|
|
3617
|
+
const log_version = `table v${"4.13.41"}`;
|
|
3610
3618
|
const warnLog = log_log.create('warn', log_version);
|
|
3611
3619
|
const errLog = log_log.create('error', log_version);
|
|
3612
3620
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5165,22 +5173,6 @@ const Cell = {
|
|
|
5165
5173
|
} = column;
|
|
5166
5174
|
const renderOpts = editRender || cellRender;
|
|
5167
5175
|
const defaultSlot = slots ? slots.default : null;
|
|
5168
|
-
if (defaultSlot) {
|
|
5169
|
-
return renderCellBaseVNs(params, $table.callSlot(defaultSlot, params));
|
|
5170
|
-
}
|
|
5171
|
-
if (renderOpts) {
|
|
5172
|
-
const compConf = cell_renderer.get(renderOpts.name);
|
|
5173
|
-
if (compConf) {
|
|
5174
|
-
const rtCell = compConf.renderTableCell || compConf.renderCell;
|
|
5175
|
-
const rtDefault = compConf.renderTableDefault || compConf.renderDefault;
|
|
5176
|
-
const renderFn = editRender ? rtCell : rtDefault;
|
|
5177
|
-
if (renderFn) {
|
|
5178
|
-
return renderCellBaseVNs(params, getSlotVNs(renderFn(renderOpts, Object.assign({
|
|
5179
|
-
$type: editRender ? 'edit' : 'cell'
|
|
5180
|
-
}, params))));
|
|
5181
|
-
}
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
5176
|
let cellValue = '';
|
|
5185
5177
|
if (isRowGroupStatus && field && row.isAggregate) {
|
|
5186
5178
|
const aggRow = row;
|
|
@@ -5237,6 +5229,22 @@ const Cell = {
|
|
|
5237
5229
|
}
|
|
5238
5230
|
}
|
|
5239
5231
|
} else {
|
|
5232
|
+
if (defaultSlot) {
|
|
5233
|
+
return renderCellBaseVNs(params, $table.callSlot(defaultSlot, params));
|
|
5234
|
+
}
|
|
5235
|
+
if (renderOpts) {
|
|
5236
|
+
const compConf = cell_renderer.get(renderOpts.name);
|
|
5237
|
+
if (compConf) {
|
|
5238
|
+
const rtCell = compConf.renderTableCell || compConf.renderCell;
|
|
5239
|
+
const rtDefault = compConf.renderTableDefault || compConf.renderDefault;
|
|
5240
|
+
const renderFn = editRender ? rtCell : rtDefault;
|
|
5241
|
+
if (renderFn) {
|
|
5242
|
+
return renderCellBaseVNs(params, getSlotVNs(renderFn(renderOpts, Object.assign({
|
|
5243
|
+
$type: editRender ? 'edit' : 'cell'
|
|
5244
|
+
}, params))));
|
|
5245
|
+
}
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5240
5248
|
cellValue = $table.getCellLabel(row, column);
|
|
5241
5249
|
}
|
|
5242
5250
|
const cellPlaceholder = editRender ? editRender.placeholder : '';
|
|
@@ -11663,11 +11671,17 @@ const {
|
|
|
11663
11671
|
props: {
|
|
11664
11672
|
loading: Boolean,
|
|
11665
11673
|
refresh: [Boolean, Object],
|
|
11674
|
+
refreshOptions: Object,
|
|
11666
11675
|
import: [Boolean, Object],
|
|
11676
|
+
importOptions: Object,
|
|
11667
11677
|
export: [Boolean, Object],
|
|
11678
|
+
exportOptions: Object,
|
|
11668
11679
|
print: [Boolean, Object],
|
|
11680
|
+
printOptions: Object,
|
|
11669
11681
|
zoom: [Boolean, Object],
|
|
11682
|
+
zoomOptions: Object,
|
|
11670
11683
|
custom: [Boolean, Object],
|
|
11684
|
+
customOptions: Object,
|
|
11671
11685
|
buttons: {
|
|
11672
11686
|
type: Array,
|
|
11673
11687
|
default: () => toolbar_getConfig().toolbar.buttons
|
|
@@ -11721,22 +11735,22 @@ const {
|
|
|
11721
11735
|
let toolbarMethods = {};
|
|
11722
11736
|
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
11723
11737
|
const computeRefreshOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11724
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refresh);
|
|
11738
|
+
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);
|
|
11725
11739
|
});
|
|
11726
11740
|
const computeImportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11727
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.import);
|
|
11741
|
+
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);
|
|
11728
11742
|
});
|
|
11729
11743
|
const computeExportOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11730
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.export);
|
|
11744
|
+
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);
|
|
11731
11745
|
});
|
|
11732
11746
|
const computePrintOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11733
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.print);
|
|
11747
|
+
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);
|
|
11734
11748
|
});
|
|
11735
11749
|
const computeZoomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11736
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoom);
|
|
11750
|
+
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);
|
|
11737
11751
|
});
|
|
11738
11752
|
const computeCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11739
|
-
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.custom);
|
|
11753
|
+
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);
|
|
11740
11754
|
});
|
|
11741
11755
|
const computeTableCustomOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
11742
11756
|
const {
|
|
@@ -11845,85 +11859,44 @@ const {
|
|
|
11845
11859
|
}) => {
|
|
11846
11860
|
if ($xeGrid) {
|
|
11847
11861
|
$xeGrid.triggerZoomEvent($event);
|
|
11862
|
+
} else {
|
|
11863
|
+
warnLog('vxe.error.notProp', ['zoom']);
|
|
11848
11864
|
}
|
|
11849
11865
|
};
|
|
11850
|
-
const
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
if (code) {
|
|
11859
|
-
if ($xeGrid) {
|
|
11860
|
-
$xeGrid.triggerToolbarBtnEvent(item, evnt);
|
|
11861
|
-
} else {
|
|
11862
|
-
const gCommandOpts = toolbar_commands.get(code);
|
|
11863
|
-
const params = {
|
|
11864
|
-
code,
|
|
11865
|
-
button: item,
|
|
11866
|
-
$table: $table,
|
|
11867
|
-
$grid: $xeGrid,
|
|
11868
|
-
$event: evnt
|
|
11869
|
-
};
|
|
11870
|
-
if (gCommandOpts) {
|
|
11871
|
-
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
11872
|
-
if (tCommandMethod) {
|
|
11873
|
-
tCommandMethod(params);
|
|
11874
|
-
} else {
|
|
11875
|
-
errLog('vxe.error.notCommands', [code]);
|
|
11876
|
-
}
|
|
11877
|
-
}
|
|
11878
|
-
$xeToolbar.dispatchEvent('button-click', params, evnt);
|
|
11866
|
+
const importEvent = () => {
|
|
11867
|
+
if (checkTable()) {
|
|
11868
|
+
const {
|
|
11869
|
+
connectTable
|
|
11870
|
+
} = internalData;
|
|
11871
|
+
const $table = connectTable;
|
|
11872
|
+
if ($table) {
|
|
11873
|
+
$table.importData();
|
|
11879
11874
|
}
|
|
11880
11875
|
}
|
|
11881
11876
|
};
|
|
11882
|
-
const
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
if (code) {
|
|
11891
|
-
if ($xeGrid) {
|
|
11892
|
-
$xeGrid.triggerToolbarTolEvent(item, evnt);
|
|
11893
|
-
} else {
|
|
11894
|
-
const gCommandOpts = toolbar_commands.get(code);
|
|
11895
|
-
const params = {
|
|
11896
|
-
code,
|
|
11897
|
-
button: null,
|
|
11898
|
-
tool: item,
|
|
11899
|
-
$table: $table,
|
|
11900
|
-
$grid: $xeGrid,
|
|
11901
|
-
$event: evnt
|
|
11902
|
-
};
|
|
11903
|
-
if (gCommandOpts) {
|
|
11904
|
-
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
11905
|
-
if (tCommandMethod) {
|
|
11906
|
-
tCommandMethod(params);
|
|
11907
|
-
} else {
|
|
11908
|
-
errLog('vxe.error.notCommands', [code]);
|
|
11909
|
-
}
|
|
11910
|
-
}
|
|
11911
|
-
$xeToolbar.dispatchEvent('tool-click', params, evnt);
|
|
11877
|
+
const openImportEvent = () => {
|
|
11878
|
+
if (checkTable()) {
|
|
11879
|
+
const {
|
|
11880
|
+
connectTable
|
|
11881
|
+
} = internalData;
|
|
11882
|
+
const $table = connectTable;
|
|
11883
|
+
if ($table) {
|
|
11884
|
+
$table.openImport();
|
|
11912
11885
|
}
|
|
11913
11886
|
}
|
|
11914
11887
|
};
|
|
11915
|
-
const
|
|
11888
|
+
const exportEvent = () => {
|
|
11916
11889
|
if (checkTable()) {
|
|
11917
11890
|
const {
|
|
11918
11891
|
connectTable
|
|
11919
11892
|
} = internalData;
|
|
11920
11893
|
const $table = connectTable;
|
|
11921
11894
|
if ($table) {
|
|
11922
|
-
$table.
|
|
11895
|
+
$table.exportData();
|
|
11923
11896
|
}
|
|
11924
11897
|
}
|
|
11925
11898
|
};
|
|
11926
|
-
const
|
|
11899
|
+
const openExportEvent = () => {
|
|
11927
11900
|
if (checkTable()) {
|
|
11928
11901
|
const {
|
|
11929
11902
|
connectTable
|
|
@@ -11935,6 +11908,17 @@ const {
|
|
|
11935
11908
|
}
|
|
11936
11909
|
};
|
|
11937
11910
|
const printEvent = () => {
|
|
11911
|
+
if (checkTable()) {
|
|
11912
|
+
const {
|
|
11913
|
+
connectTable
|
|
11914
|
+
} = internalData;
|
|
11915
|
+
const $table = connectTable;
|
|
11916
|
+
if ($table) {
|
|
11917
|
+
$table.print();
|
|
11918
|
+
}
|
|
11919
|
+
}
|
|
11920
|
+
};
|
|
11921
|
+
const openPrintEvent = () => {
|
|
11938
11922
|
if (checkTable()) {
|
|
11939
11923
|
const {
|
|
11940
11924
|
connectTable
|
|
@@ -11945,6 +11929,115 @@ const {
|
|
|
11945
11929
|
}
|
|
11946
11930
|
}
|
|
11947
11931
|
};
|
|
11932
|
+
const handleDefaultCodeEvent = (eventParams, item, cb) => {
|
|
11933
|
+
switch (item.code) {
|
|
11934
|
+
case 'print':
|
|
11935
|
+
printEvent();
|
|
11936
|
+
break;
|
|
11937
|
+
case 'open_print':
|
|
11938
|
+
openPrintEvent();
|
|
11939
|
+
break;
|
|
11940
|
+
case 'custom':
|
|
11941
|
+
handleClickSettingEvent(eventParams);
|
|
11942
|
+
break;
|
|
11943
|
+
case 'export':
|
|
11944
|
+
exportEvent();
|
|
11945
|
+
break;
|
|
11946
|
+
case 'open_export':
|
|
11947
|
+
openExportEvent();
|
|
11948
|
+
break;
|
|
11949
|
+
case 'import':
|
|
11950
|
+
importEvent();
|
|
11951
|
+
break;
|
|
11952
|
+
case 'open_import':
|
|
11953
|
+
openImportEvent();
|
|
11954
|
+
break;
|
|
11955
|
+
case 'zoom':
|
|
11956
|
+
zoomEvent(eventParams);
|
|
11957
|
+
break;
|
|
11958
|
+
case 'refresh':
|
|
11959
|
+
refreshEvent(eventParams);
|
|
11960
|
+
break;
|
|
11961
|
+
default:
|
|
11962
|
+
cb();
|
|
11963
|
+
break;
|
|
11964
|
+
}
|
|
11965
|
+
};
|
|
11966
|
+
const btnEvent = (eventParams, item) => {
|
|
11967
|
+
const {
|
|
11968
|
+
$event
|
|
11969
|
+
} = eventParams;
|
|
11970
|
+
const {
|
|
11971
|
+
connectTable
|
|
11972
|
+
} = internalData;
|
|
11973
|
+
const $table = connectTable;
|
|
11974
|
+
const {
|
|
11975
|
+
code
|
|
11976
|
+
} = item;
|
|
11977
|
+
if (code) {
|
|
11978
|
+
handleDefaultCodeEvent(eventParams, item, () => {
|
|
11979
|
+
if ($xeGrid) {
|
|
11980
|
+
$xeGrid.triggerToolbarBtnEvent(item, $event);
|
|
11981
|
+
} else {
|
|
11982
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
11983
|
+
const params = {
|
|
11984
|
+
code,
|
|
11985
|
+
button: item,
|
|
11986
|
+
$table: $table,
|
|
11987
|
+
$grid: $xeGrid,
|
|
11988
|
+
$event
|
|
11989
|
+
};
|
|
11990
|
+
if (gCommandOpts) {
|
|
11991
|
+
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
11992
|
+
if (tCommandMethod) {
|
|
11993
|
+
tCommandMethod(params);
|
|
11994
|
+
} else {
|
|
11995
|
+
errLog('vxe.error.notCommands', [code]);
|
|
11996
|
+
}
|
|
11997
|
+
}
|
|
11998
|
+
$xeToolbar.dispatchEvent('button-click', params, $event);
|
|
11999
|
+
}
|
|
12000
|
+
});
|
|
12001
|
+
}
|
|
12002
|
+
};
|
|
12003
|
+
const tolEvent = (eventParams, item) => {
|
|
12004
|
+
const {
|
|
12005
|
+
$event
|
|
12006
|
+
} = eventParams;
|
|
12007
|
+
const {
|
|
12008
|
+
connectTable
|
|
12009
|
+
} = internalData;
|
|
12010
|
+
const $table = connectTable;
|
|
12011
|
+
const {
|
|
12012
|
+
code
|
|
12013
|
+
} = item;
|
|
12014
|
+
if (code) {
|
|
12015
|
+
handleDefaultCodeEvent(eventParams, item, () => {
|
|
12016
|
+
if ($xeGrid) {
|
|
12017
|
+
$xeGrid.triggerToolbarTolEvent(item, $event);
|
|
12018
|
+
} else {
|
|
12019
|
+
const gCommandOpts = toolbar_commands.get(code);
|
|
12020
|
+
const params = {
|
|
12021
|
+
code,
|
|
12022
|
+
button: null,
|
|
12023
|
+
tool: item,
|
|
12024
|
+
$table: $table,
|
|
12025
|
+
$grid: $xeGrid,
|
|
12026
|
+
$event
|
|
12027
|
+
};
|
|
12028
|
+
if (gCommandOpts) {
|
|
12029
|
+
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
12030
|
+
if (tCommandMethod) {
|
|
12031
|
+
tCommandMethod(params);
|
|
12032
|
+
} else {
|
|
12033
|
+
errLog('vxe.error.notCommands', [code]);
|
|
12034
|
+
}
|
|
12035
|
+
}
|
|
12036
|
+
$xeToolbar.dispatchEvent('tool-click', params, $event);
|
|
12037
|
+
}
|
|
12038
|
+
});
|
|
12039
|
+
}
|
|
12040
|
+
};
|
|
11948
12041
|
const dispatchEvent = (type, params, evnt) => {
|
|
11949
12042
|
emit(type, toolbar_createEvent(evnt, {
|
|
11950
12043
|
$toolbar: $xeToolbar
|
|
@@ -11985,9 +12078,7 @@ const {
|
|
|
11985
12078
|
permissionCode: child.permissionCode,
|
|
11986
12079
|
prefixTooltip: child.prefixTooltip,
|
|
11987
12080
|
suffixTooltip: child.suffixTooltip,
|
|
11988
|
-
onClick: (
|
|
11989
|
-
$event
|
|
11990
|
-
}) => isBtn ? btnEvent($event, child) : tolEvent($event, child)
|
|
12081
|
+
onClick: eventParams => isBtn ? btnEvent(eventParams, child) : tolEvent(eventParams, child)
|
|
11991
12082
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
11992
12083
|
});
|
|
11993
12084
|
}
|
|
@@ -12054,9 +12145,7 @@ const {
|
|
|
12054
12145
|
destroyOnClose: item.destroyOnClose,
|
|
12055
12146
|
placement: item.placement,
|
|
12056
12147
|
transfer: item.transfer,
|
|
12057
|
-
onClick: (
|
|
12058
|
-
$event
|
|
12059
|
-
}) => btnEvent($event, item)
|
|
12148
|
+
onClick: eventParams => btnEvent(eventParams, item)
|
|
12060
12149
|
}, dropdowns && dropdowns.length ? {
|
|
12061
12150
|
dropdowns: () => renderDropdowns(item, true)
|
|
12062
12151
|
} : {}));
|
|
@@ -12136,9 +12225,7 @@ const {
|
|
|
12136
12225
|
destroyOnClose: item.destroyOnClose,
|
|
12137
12226
|
placement: item.placement,
|
|
12138
12227
|
transfer: item.transfer,
|
|
12139
|
-
onClick: (
|
|
12140
|
-
$event
|
|
12141
|
-
}) => tolEvent($event, item)
|
|
12228
|
+
onClick: eventParams => tolEvent(eventParams, item)
|
|
12142
12229
|
}, dropdowns && dropdowns.length ? {
|
|
12143
12230
|
dropdowns: () => renderDropdowns(item, false)
|
|
12144
12231
|
} : {}));
|
|
@@ -12163,7 +12250,7 @@ const {
|
|
|
12163
12250
|
circle: true,
|
|
12164
12251
|
icon: importOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_IMPORT,
|
|
12165
12252
|
title: toolbar_getI18n('vxe.toolbar.import'),
|
|
12166
|
-
onClick:
|
|
12253
|
+
onClick: openImportEvent
|
|
12167
12254
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
12168
12255
|
};
|
|
12169
12256
|
const renderToolExport = () => {
|
|
@@ -12173,7 +12260,7 @@ const {
|
|
|
12173
12260
|
circle: true,
|
|
12174
12261
|
icon: exportOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_EXPORT,
|
|
12175
12262
|
title: toolbar_getI18n('vxe.toolbar.export'),
|
|
12176
|
-
onClick:
|
|
12263
|
+
onClick: openExportEvent
|
|
12177
12264
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
12178
12265
|
};
|
|
12179
12266
|
const renderToolPrint = () => {
|
|
@@ -12183,7 +12270,7 @@ const {
|
|
|
12183
12270
|
circle: true,
|
|
12184
12271
|
icon: printOpts.icon || toolbar_getIcon().TOOLBAR_TOOLS_PRINT,
|
|
12185
12272
|
title: toolbar_getI18n('vxe.toolbar.print'),
|
|
12186
|
-
onClick:
|
|
12273
|
+
onClick: openPrintEvent
|
|
12187
12274
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
12188
12275
|
};
|
|
12189
12276
|
const renderToolRefresh = () => {
|
|
@@ -12270,14 +12357,29 @@ const {
|
|
|
12270
12357
|
};
|
|
12271
12358
|
$xeToolbar.renderVN = renderVN;
|
|
12272
12359
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
12273
|
-
const {
|
|
12274
|
-
refresh
|
|
12275
|
-
} = props;
|
|
12276
12360
|
const refreshOpts = computeRefreshOpts.value;
|
|
12277
12361
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
12278
|
-
if (refresh && !$xeGrid && !queryMethod) {
|
|
12362
|
+
if (props.refresh && !$xeGrid && !queryMethod) {
|
|
12279
12363
|
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
12280
12364
|
}
|
|
12365
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.custom)) {
|
|
12366
|
+
warnLog('vxe.error.delProp', ['custom={...}', 'custom=boolean & custom-options={...}']);
|
|
12367
|
+
}
|
|
12368
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.print)) {
|
|
12369
|
+
warnLog('vxe.error.delProp', ['print={...}', 'print=boolean & print-options={...}']);
|
|
12370
|
+
}
|
|
12371
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.export)) {
|
|
12372
|
+
warnLog('vxe.error.delProp', ['export={...}', 'export=boolean & export-options={...}']);
|
|
12373
|
+
}
|
|
12374
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.import)) {
|
|
12375
|
+
warnLog('vxe.error.delProp', ['import={...}', 'import=boolean & import-options={...}']);
|
|
12376
|
+
}
|
|
12377
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
12378
|
+
warnLog('vxe.error.delProp', ['refresh={...}', 'refresh=boolean & refresh-options={...}']);
|
|
12379
|
+
}
|
|
12380
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
12381
|
+
warnLog('vxe.error.delProp', ['zoom={...}', 'zoom=boolean & zoom-options={...}']);
|
|
12382
|
+
}
|
|
12281
12383
|
const customOpts = computeCustomOpts.value;
|
|
12282
12384
|
if (customOpts.isFooter) {
|
|
12283
12385
|
warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|