vxe-table 4.7.5 → 4.7.7
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/grid/src/grid.js +10 -9
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +8 -15
- package/es/table/module/custom/panel.js +166 -102
- package/es/table/module/edit/hook.js +11 -10
- package/es/table/module/export/hook.js +31 -11
- package/es/table/module/validator/hook.js +6 -5
- package/es/table/render/index.js +3 -2
- package/es/table/src/columnInfo.js +10 -8
- package/es/table/src/table.js +143 -85
- package/es/table/style.css +49 -12
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +12 -11
- package/es/ui/index.js +6 -3
- package/es/ui/src/log.js +5 -0
- package/es/vxe-table/style.css +49 -12
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +9 -9
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +348 -206
- 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/hook.js +8 -17
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +96 -42
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +10 -10
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +33 -12
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/validator/hook.js +6 -6
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/render/index.js +3 -3
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/columnInfo.js +10 -9
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +149 -85
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +49 -12
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +11 -11
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +6 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +13 -0
- package/lib/ui/src/log.min.js +1 -0
- package/lib/vxe-table/style/style.css +49 -12
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +10 -9
- package/packages/table/module/custom/hook.ts +10 -17
- package/packages/table/module/custom/panel.ts +166 -104
- package/packages/table/module/edit/hook.ts +11 -10
- package/packages/table/module/export/hook.ts +35 -13
- package/packages/table/module/validator/hook.ts +6 -5
- package/packages/table/render/index.ts +3 -2
- package/packages/table/src/columnInfo.ts +11 -8
- package/packages/table/src/table.ts +142 -85
- package/packages/toolbar/src/toolbar.ts +12 -11
- package/packages/ui/index.ts +4 -1
- package/packages/ui/src/log.ts +8 -0
- package/styles/components/table-module/custom.scss +45 -9
- package/styles/components/table.scss +1 -0
package/lib/index.umd.js
CHANGED
|
@@ -1791,8 +1791,8 @@ var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_ =
|
|
|
1791
1791
|
var external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_default = /*#__PURE__*/__webpack_require__.n(external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_);
|
|
1792
1792
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1793
1793
|
|
|
1794
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.
|
|
1795
|
-
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.
|
|
1794
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.7";
|
|
1795
|
+
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.7";
|
|
1796
1796
|
external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
|
|
1797
1797
|
emptyCell: ' ',
|
|
1798
1798
|
table: {
|
|
@@ -1847,9 +1847,12 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
1847
1847
|
// visibleMethod () {}
|
|
1848
1848
|
// },
|
|
1849
1849
|
customConfig: {
|
|
1850
|
+
allowVisible: true,
|
|
1851
|
+
allowResizable: true,
|
|
1850
1852
|
allowFixed: true,
|
|
1851
1853
|
allowSort: true,
|
|
1852
|
-
showFooter: true
|
|
1854
|
+
showFooter: true,
|
|
1855
|
+
placement: 'topRight'
|
|
1853
1856
|
// storage: false,
|
|
1854
1857
|
// checkMethod () {}
|
|
1855
1858
|
},
|
|
@@ -2233,15 +2236,23 @@ function formatText(value, placeholder) {
|
|
|
2233
2236
|
function eqEmptyValue(cellValue) {
|
|
2234
2237
|
return cellValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cellValue);
|
|
2235
2238
|
}
|
|
2239
|
+
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
2240
|
+
|
|
2241
|
+
const {
|
|
2242
|
+
log: log_log
|
|
2243
|
+
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
2244
|
+
const version = `table v${"4.7.7"}`;
|
|
2245
|
+
const warnLog = log_log.create('warn', version);
|
|
2246
|
+
const errLog = log_log.create('error', version);
|
|
2236
2247
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
2237
2248
|
|
|
2238
2249
|
|
|
2239
2250
|
|
|
2240
2251
|
|
|
2252
|
+
|
|
2241
2253
|
const {
|
|
2242
2254
|
getI18n: columnInfo_getI18n,
|
|
2243
|
-
formats: columnInfo_formats
|
|
2244
|
-
log: columnInfo_log
|
|
2255
|
+
formats: columnInfo_formats
|
|
2245
2256
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
2246
2257
|
class ColumnInfo {
|
|
2247
2258
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -2257,16 +2268,16 @@ class ColumnInfo {
|
|
|
2257
2268
|
if (true) {
|
|
2258
2269
|
const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
2259
2270
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
2260
|
-
|
|
2271
|
+
warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
|
|
2261
2272
|
}
|
|
2262
2273
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.cellRender) || _vm.cellRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.cellRender)) {
|
|
2263
|
-
|
|
2274
|
+
warnLog('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
|
|
2264
2275
|
}
|
|
2265
2276
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.editRender) || _vm.editRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.editRender)) {
|
|
2266
|
-
|
|
2277
|
+
warnLog('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
|
|
2267
2278
|
}
|
|
2268
2279
|
if (_vm.cellRender && _vm.editRender) {
|
|
2269
|
-
|
|
2280
|
+
warnLog('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render']);
|
|
2270
2281
|
}
|
|
2271
2282
|
if (_vm.type === 'expand') {
|
|
2272
2283
|
const {
|
|
@@ -2280,19 +2291,19 @@ class ColumnInfo {
|
|
|
2280
2291
|
} = $xeTable.getComputeMaps();
|
|
2281
2292
|
const treeOpts = computeTreeOpts.value;
|
|
2282
2293
|
if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
|
|
2283
|
-
|
|
2294
|
+
errLog('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
|
|
2284
2295
|
}
|
|
2285
2296
|
}
|
|
2286
2297
|
if (formatter) {
|
|
2287
2298
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
2288
2299
|
const gFormatOpts = columnInfo_formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
2289
2300
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2290
|
-
|
|
2301
|
+
errLog('vxe.error.notFormats', [formatter]);
|
|
2291
2302
|
}
|
|
2292
2303
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
2293
2304
|
const gFormatOpts = columnInfo_formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
2294
2305
|
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2295
|
-
|
|
2306
|
+
errLog('vxe.error.notFormats', [formatter[0]]);
|
|
2296
2307
|
}
|
|
2297
2308
|
}
|
|
2298
2309
|
}
|
|
@@ -2367,6 +2378,7 @@ class ColumnInfo {
|
|
|
2367
2378
|
renderVisible: false,
|
|
2368
2379
|
renderWidth: 0,
|
|
2369
2380
|
renderHeight: 0,
|
|
2381
|
+
renderResizeWidth: 0,
|
|
2370
2382
|
resizeWidth: 0,
|
|
2371
2383
|
renderLeft: 0,
|
|
2372
2384
|
renderArgs: [],
|
|
@@ -6434,9 +6446,6 @@ const {
|
|
|
6434
6446
|
}
|
|
6435
6447
|
}, 300);
|
|
6436
6448
|
};
|
|
6437
|
-
const getStoreData = () => {
|
|
6438
|
-
return {};
|
|
6439
|
-
};
|
|
6440
6449
|
const handleSaveStore = type => {
|
|
6441
6450
|
const {
|
|
6442
6451
|
id
|
|
@@ -6450,7 +6459,7 @@ const {
|
|
|
6450
6459
|
updateStore({
|
|
6451
6460
|
id,
|
|
6452
6461
|
type,
|
|
6453
|
-
storeData:
|
|
6462
|
+
storeData: $xeTable.getCustomStoreData()
|
|
6454
6463
|
});
|
|
6455
6464
|
}
|
|
6456
6465
|
};
|
|
@@ -6458,11 +6467,33 @@ const {
|
|
|
6458
6467
|
const {
|
|
6459
6468
|
customColumnList
|
|
6460
6469
|
} = reactData;
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6470
|
+
const customOpts = computeCustomOpts.value;
|
|
6471
|
+
const {
|
|
6472
|
+
allowVisible,
|
|
6473
|
+
allowSort,
|
|
6474
|
+
allowFixed,
|
|
6475
|
+
allowResizable
|
|
6476
|
+
} = customOpts;
|
|
6477
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, (column, index, items, path, parent) => {
|
|
6478
|
+
if (!parent) {
|
|
6479
|
+
if (allowSort) {
|
|
6480
|
+
const sortIndex = index + 1;
|
|
6481
|
+
column.renderSortNumber = sortIndex;
|
|
6482
|
+
}
|
|
6483
|
+
if (allowFixed) {
|
|
6484
|
+
column.fixed = column.renderFixed;
|
|
6485
|
+
}
|
|
6486
|
+
}
|
|
6487
|
+
if (allowResizable) {
|
|
6488
|
+
if (column.renderVisible && (!column.children || column.children.length)) {
|
|
6489
|
+
if (column.renderResizeWidth !== column.renderWidth) {
|
|
6490
|
+
column.resizeWidth = column.renderResizeWidth;
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6493
|
+
}
|
|
6494
|
+
if (allowVisible) {
|
|
6495
|
+
column.visible = column.renderVisible;
|
|
6496
|
+
}
|
|
6466
6497
|
});
|
|
6467
6498
|
$xeTable.closeCustom();
|
|
6468
6499
|
$xeTable.emitCustomEvent('confirm', evnt);
|
|
@@ -6480,15 +6511,31 @@ const {
|
|
|
6480
6511
|
oldFixedMaps,
|
|
6481
6512
|
oldVisibleMaps
|
|
6482
6513
|
} = customStore;
|
|
6514
|
+
const customOpts = computeCustomOpts.value;
|
|
6515
|
+
const {
|
|
6516
|
+
allowVisible,
|
|
6517
|
+
allowSort,
|
|
6518
|
+
allowFixed,
|
|
6519
|
+
allowResizable
|
|
6520
|
+
} = customOpts;
|
|
6483
6521
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, column => {
|
|
6484
6522
|
const colid = column.getKey();
|
|
6485
6523
|
const visible = !!oldVisibleMaps[colid];
|
|
6486
6524
|
const fixed = oldFixedMaps[colid] || '';
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6525
|
+
if (allowVisible) {
|
|
6526
|
+
column.renderVisible = visible;
|
|
6527
|
+
column.visible = visible;
|
|
6528
|
+
}
|
|
6529
|
+
if (allowFixed) {
|
|
6530
|
+
column.renderFixed = fixed;
|
|
6531
|
+
column.fixed = fixed;
|
|
6532
|
+
}
|
|
6533
|
+
if (allowSort) {
|
|
6534
|
+
column.renderSortNumber = oldSortMaps[colid] || 0;
|
|
6535
|
+
}
|
|
6536
|
+
if (allowResizable) {
|
|
6537
|
+
column.renderResizeWidth = column.renderWidth;
|
|
6538
|
+
}
|
|
6492
6539
|
}, {
|
|
6493
6540
|
children: 'children'
|
|
6494
6541
|
});
|
|
@@ -6499,7 +6546,7 @@ const {
|
|
|
6499
6546
|
$xeTable.resetColumn(true);
|
|
6500
6547
|
$xeTable.closeCustom();
|
|
6501
6548
|
$xeTable.emitCustomEvent('reset', evnt);
|
|
6502
|
-
handleSaveStore('
|
|
6549
|
+
handleSaveStore('reset');
|
|
6503
6550
|
};
|
|
6504
6551
|
const resetCustomEvent = evnt => {
|
|
6505
6552
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.modal) {
|
|
@@ -6700,9 +6747,11 @@ const {
|
|
|
6700
6747
|
const {
|
|
6701
6748
|
checkMethod,
|
|
6702
6749
|
visibleMethod,
|
|
6750
|
+
allowVisible,
|
|
6703
6751
|
allowSort,
|
|
6704
6752
|
allowFixed,
|
|
6705
|
-
trigger
|
|
6753
|
+
trigger,
|
|
6754
|
+
placement
|
|
6706
6755
|
} = customOpts;
|
|
6707
6756
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
6708
6757
|
const colVNs = [];
|
|
@@ -6733,7 +6782,7 @@ const {
|
|
|
6733
6782
|
onDragstart: sortDragstartEvent,
|
|
6734
6783
|
onDragend: sortDragendEvent,
|
|
6735
6784
|
onDragover: sortDragoverEvent
|
|
6736
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6785
|
+
}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6737
6786
|
class: ['vxe-table-custom--checkbox-option', {
|
|
6738
6787
|
'is--checked': isChecked,
|
|
6739
6788
|
'is--indeterminate': isIndeterminate,
|
|
@@ -6747,7 +6796,7 @@ const {
|
|
|
6747
6796
|
}
|
|
6748
6797
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6749
6798
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6750
|
-
})]), allowSort && column.level === 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6799
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort && column.level === 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6751
6800
|
class: 'vxe-table-custom--sort-option'
|
|
6752
6801
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6753
6802
|
class: 'vxe-table-custom--sort-btn',
|
|
@@ -6787,14 +6836,17 @@ const {
|
|
|
6787
6836
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6788
6837
|
ref: refElem,
|
|
6789
6838
|
key: 'simple',
|
|
6790
|
-
class: ['vxe-table-custom-wrapper', {
|
|
6839
|
+
class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
|
|
6791
6840
|
'is--active': customStore.visible
|
|
6792
|
-
}]
|
|
6841
|
+
}],
|
|
6842
|
+
style: maxHeight && !['left', 'right'].includes(placement) ? {
|
|
6843
|
+
maxHeight: `${maxHeight}px`
|
|
6844
|
+
} : {}
|
|
6793
6845
|
}, customStore.visible ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
6794
6846
|
class: 'vxe-table-custom--header'
|
|
6795
6847
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
6796
6848
|
class: 'vxe-table-custom--option'
|
|
6797
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6849
|
+
}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6798
6850
|
class: ['vxe-table-custom--checkbox-option', {
|
|
6799
6851
|
'is--checked': isAllChecked,
|
|
6800
6852
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -6805,16 +6857,15 @@ const {
|
|
|
6805
6857
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6806
6858
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6807
6859
|
class: 'vxe-checkbox--label'
|
|
6808
|
-
}, panel_getI18n('vxe.toolbar.customAll'))])
|
|
6860
|
+
}, panel_getI18n('vxe.toolbar.customAll'))]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6861
|
+
class: 'vxe-checkbox--label'
|
|
6862
|
+
}, panel_getI18n('vxe.table.customTitle'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6809
6863
|
ref: bodyElemRef,
|
|
6810
6864
|
class: 'vxe-table-custom--list-wrapper'
|
|
6811
6865
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6812
6866
|
class: 'vxe-table-custom--body',
|
|
6813
6867
|
name: 'vxe-table-custom--list',
|
|
6814
6868
|
tag: 'ul',
|
|
6815
|
-
style: maxHeight ? {
|
|
6816
|
-
maxHeight: `${maxHeight}px`
|
|
6817
|
-
} : {},
|
|
6818
6869
|
...customWrapperOns
|
|
6819
6870
|
}, {
|
|
6820
6871
|
default: () => colVNs
|
|
@@ -6843,8 +6894,10 @@ const {
|
|
|
6843
6894
|
} = reactData;
|
|
6844
6895
|
const customOpts = computeCustomOpts.value;
|
|
6845
6896
|
const {
|
|
6897
|
+
allowVisible,
|
|
6846
6898
|
allowSort,
|
|
6847
6899
|
allowFixed,
|
|
6900
|
+
allowResizable,
|
|
6848
6901
|
checkMethod,
|
|
6849
6902
|
visibleMethod
|
|
6850
6903
|
} = customOpts;
|
|
@@ -6872,7 +6925,7 @@ const {
|
|
|
6872
6925
|
onDragstart: sortDragstartEvent,
|
|
6873
6926
|
onDragend: sortDragendEvent,
|
|
6874
6927
|
onDragover: sortDragoverEvent
|
|
6875
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6928
|
+
}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6876
6929
|
class: 'vxe-table-custom-popup--column-item col--visible'
|
|
6877
6930
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6878
6931
|
class: ['vxe-table-custom--checkbox-option', {
|
|
@@ -6888,7 +6941,7 @@ const {
|
|
|
6888
6941
|
}
|
|
6889
6942
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6890
6943
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6891
|
-
})])]), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6944
|
+
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6892
6945
|
class: 'vxe-table-custom-popup--column-item col--sort'
|
|
6893
6946
|
}, [column.level === 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6894
6947
|
class: 'vxe-table-custom-popup--column-sort-btn',
|
|
@@ -6897,14 +6950,23 @@ const {
|
|
|
6897
6950
|
onMouseup: sortMouseupEvent
|
|
6898
6951
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6899
6952
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
6900
|
-
})]) :
|
|
6953
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-')]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6901
6954
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
6902
6955
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6903
6956
|
class: 'vxe-table-custom-popup--name',
|
|
6904
6957
|
title: colTitle
|
|
6905
|
-
}, colTitle)]),
|
|
6958
|
+
}, colTitle)]), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6959
|
+
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
6960
|
+
}, [!isChecked || column.children && column.children.length ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-input'), {
|
|
6961
|
+
type: 'integer',
|
|
6962
|
+
min: 40,
|
|
6963
|
+
modelValue: column.renderResizeWidth,
|
|
6964
|
+
'onUpdate:modelValue'(value) {
|
|
6965
|
+
column.renderResizeWidth = Math.max(40, Number(value));
|
|
6966
|
+
}
|
|
6967
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6906
6968
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
6907
|
-
}, [
|
|
6969
|
+
}, [parent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-radio-group'), {
|
|
6908
6970
|
modelValue: column.renderFixed || '',
|
|
6909
6971
|
type: 'button',
|
|
6910
6972
|
size: 'mini',
|
|
@@ -6926,7 +6988,7 @@ const {
|
|
|
6926
6988
|
// onChange () {
|
|
6927
6989
|
// changePopupFixedOption(column)
|
|
6928
6990
|
// }
|
|
6929
|
-
})
|
|
6991
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]));
|
|
6930
6992
|
}
|
|
6931
6993
|
});
|
|
6932
6994
|
const isAllChecked = customStore.isAll;
|
|
@@ -6936,10 +6998,10 @@ const {
|
|
|
6936
6998
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
6937
6999
|
modelValue: customStore.visible,
|
|
6938
7000
|
title: panel_getI18n('vxe.custom.cstmTitle'),
|
|
6939
|
-
width:
|
|
6940
|
-
minWidth:
|
|
6941
|
-
height:
|
|
6942
|
-
minHeight:
|
|
7001
|
+
width: 700,
|
|
7002
|
+
minWidth: 700,
|
|
7003
|
+
height: 400,
|
|
7004
|
+
minHeight: 400,
|
|
6943
7005
|
mask: true,
|
|
6944
7006
|
lockView: true,
|
|
6945
7007
|
showFooter: true,
|
|
@@ -6956,11 +7018,11 @@ const {
|
|
|
6956
7018
|
class: 'vxe-table-custom-popup--body'
|
|
6957
7019
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6958
7020
|
class: 'vxe-table-custom-popup--table-wrapper'
|
|
6959
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('colgroup', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
7021
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('colgroup', {}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
6960
7022
|
style: {
|
|
6961
7023
|
width: '80px'
|
|
6962
7024
|
}
|
|
6963
|
-
}), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
7025
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
6964
7026
|
style: {
|
|
6965
7027
|
width: '80px'
|
|
6966
7028
|
}
|
|
@@ -6968,11 +7030,15 @@ const {
|
|
|
6968
7030
|
style: {
|
|
6969
7031
|
minWidth: '120px'
|
|
6970
7032
|
}
|
|
6971
|
-
}),
|
|
7033
|
+
}), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
7034
|
+
style: {
|
|
7035
|
+
width: '140px'
|
|
7036
|
+
}
|
|
7037
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
6972
7038
|
style: {
|
|
6973
7039
|
width: '200px'
|
|
6974
7040
|
}
|
|
6975
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('thead', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7041
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('thead', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6976
7042
|
class: ['vxe-table-custom--checkbox-option', {
|
|
6977
7043
|
'is--checked': isAllChecked,
|
|
6978
7044
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -6983,7 +7049,7 @@ const {
|
|
|
6983
7049
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6984
7050
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6985
7051
|
class: 'vxe-checkbox--label'
|
|
6986
|
-
}, panel_getI18n('vxe.toolbar.customAll'))])]), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7052
|
+
}, panel_getI18n('vxe.toolbar.customAll'))])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6987
7053
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
6988
7054
|
}, panel_getI18n('vxe.custom.setting.colSort')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-tooltip'), {
|
|
6989
7055
|
enterable: true,
|
|
@@ -6994,7 +7060,7 @@ const {
|
|
|
6994
7060
|
class: 'vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill'
|
|
6995
7061
|
});
|
|
6996
7062
|
}
|
|
6997
|
-
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
7063
|
+
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6998
7064
|
class: 'vxe-table-custom--body',
|
|
6999
7065
|
tag: 'tbody',
|
|
7000
7066
|
name: 'vxe-table-custom--list'
|
|
@@ -7940,6 +8006,7 @@ const {
|
|
|
7940
8006
|
|
|
7941
8007
|
|
|
7942
8008
|
|
|
8009
|
+
|
|
7943
8010
|
const {
|
|
7944
8011
|
getConfig: table_getConfig,
|
|
7945
8012
|
getI18n: table_getI18n,
|
|
@@ -7951,7 +8018,6 @@ const {
|
|
|
7951
8018
|
hooks: table_hooks,
|
|
7952
8019
|
globalEvents: table_globalEvents,
|
|
7953
8020
|
GLOBAL_EVENT_KEYS,
|
|
7954
|
-
log: table_log,
|
|
7955
8021
|
useFns
|
|
7956
8022
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
7957
8023
|
const isWebkit = browse['-webkit'] && !browse.edge;
|
|
@@ -8716,7 +8782,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8716
8782
|
merges = [merges];
|
|
8717
8783
|
}
|
|
8718
8784
|
if (treeConfig && merges.length) {
|
|
8719
|
-
|
|
8785
|
+
errLog('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8720
8786
|
}
|
|
8721
8787
|
merges.forEach(item => {
|
|
8722
8788
|
let {
|
|
@@ -8774,7 +8840,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8774
8840
|
merges = [merges];
|
|
8775
8841
|
}
|
|
8776
8842
|
if (treeConfig && merges.length) {
|
|
8777
|
-
|
|
8843
|
+
errLog('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
8778
8844
|
}
|
|
8779
8845
|
merges.forEach(item => {
|
|
8780
8846
|
let {
|
|
@@ -8852,7 +8918,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
8852
8918
|
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
8853
8919
|
const customMap = {};
|
|
8854
8920
|
if (!id) {
|
|
8855
|
-
|
|
8921
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
8856
8922
|
return;
|
|
8857
8923
|
}
|
|
8858
8924
|
// 自定义列宽
|
|
@@ -9009,7 +9075,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9009
9075
|
if (field) {
|
|
9010
9076
|
if (true) {
|
|
9011
9077
|
if (fullColumnFieldData[field]) {
|
|
9012
|
-
|
|
9078
|
+
warnLog('vxe.error.colRepet', ['field', field]);
|
|
9013
9079
|
}
|
|
9014
9080
|
}
|
|
9015
9081
|
fullColumnFieldData[field] = rest;
|
|
@@ -9023,7 +9089,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9023
9089
|
if (treeNode) {
|
|
9024
9090
|
if (true) {
|
|
9025
9091
|
if (treeNodeColumn) {
|
|
9026
|
-
|
|
9092
|
+
warnLog('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
9027
9093
|
}
|
|
9028
9094
|
}
|
|
9029
9095
|
if (!treeNodeColumn) {
|
|
@@ -9032,7 +9098,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9032
9098
|
} else if (type === 'expand') {
|
|
9033
9099
|
if (true) {
|
|
9034
9100
|
if (expandColumn) {
|
|
9035
|
-
|
|
9101
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
9036
9102
|
}
|
|
9037
9103
|
}
|
|
9038
9104
|
if (!expandColumn) {
|
|
@@ -9042,14 +9108,14 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9042
9108
|
if (true) {
|
|
9043
9109
|
if (type === 'checkbox') {
|
|
9044
9110
|
if (checkboxColumn) {
|
|
9045
|
-
|
|
9111
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
9046
9112
|
}
|
|
9047
9113
|
if (!checkboxColumn) {
|
|
9048
9114
|
checkboxColumn = column;
|
|
9049
9115
|
}
|
|
9050
9116
|
} else if (type === 'radio') {
|
|
9051
9117
|
if (radioColumn) {
|
|
9052
|
-
|
|
9118
|
+
warnLog('vxe.error.colRepet', ['type', type]);
|
|
9053
9119
|
}
|
|
9054
9120
|
if (!radioColumn) {
|
|
9055
9121
|
radioColumn = column;
|
|
@@ -9060,7 +9126,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9060
9126
|
isAllOverflow = false;
|
|
9061
9127
|
}
|
|
9062
9128
|
if (fullColumnIdData[colid]) {
|
|
9063
|
-
|
|
9129
|
+
errLog('vxe.error.colRepet', ['colId', colid]);
|
|
9064
9130
|
}
|
|
9065
9131
|
fullColumnIdData[colid] = rest;
|
|
9066
9132
|
};
|
|
@@ -9074,16 +9140,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
9074
9140
|
}
|
|
9075
9141
|
if (true) {
|
|
9076
9142
|
if (expandColumn && mouseOpts.area) {
|
|
9077
|
-
|
|
9143
|
+
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
9078
9144
|
}
|
|
9079
9145
|
}
|
|
9080
9146
|
if (true) {
|
|
9081
9147
|
if (htmlColumn) {
|
|
9082
9148
|
if (!columnOpts.useKey) {
|
|
9083
|
-
|
|
9149
|
+
errLog('vxe.error.reqProp', ['column-config.useKey', 'column.type=html']);
|
|
9084
9150
|
}
|
|
9085
9151
|
if (!rowOpts.useKey) {
|
|
9086
|
-
|
|
9152
|
+
errLog('vxe.error.reqProp', ['row-config.useKey', 'column.type=html']);
|
|
9087
9153
|
}
|
|
9088
9154
|
}
|
|
9089
9155
|
}
|
|
@@ -10510,23 +10576,23 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10510
10576
|
// 树结构自动转换
|
|
10511
10577
|
if (true) {
|
|
10512
10578
|
if (!treeOpts.rowField) {
|
|
10513
|
-
|
|
10579
|
+
errLog('vxe.error.reqProp', ['tree-config.rowField']);
|
|
10514
10580
|
}
|
|
10515
10581
|
if (!treeOpts.parentField) {
|
|
10516
|
-
|
|
10582
|
+
errLog('vxe.error.reqProp', ['tree-config.parentField']);
|
|
10517
10583
|
}
|
|
10518
10584
|
if (!childrenField) {
|
|
10519
|
-
|
|
10585
|
+
errLog('vxe.error.reqProp', ['tree-config.childrenField']);
|
|
10520
10586
|
}
|
|
10521
10587
|
if (!treeOpts.mapChildrenField) {
|
|
10522
|
-
|
|
10588
|
+
errLog('vxe.error.reqProp', ['tree-config.mapChildrenField']);
|
|
10523
10589
|
}
|
|
10524
10590
|
if (childrenField === treeOpts.mapChildrenField) {
|
|
10525
|
-
|
|
10591
|
+
errLog('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
|
|
10526
10592
|
}
|
|
10527
10593
|
// fullData.forEach(row => {
|
|
10528
10594
|
// if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
10529
|
-
//
|
|
10595
|
+
// warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
|
|
10530
10596
|
// }
|
|
10531
10597
|
// })
|
|
10532
10598
|
}
|
|
@@ -10564,13 +10630,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10564
10630
|
if (true) {
|
|
10565
10631
|
if (sYLoad) {
|
|
10566
10632
|
if (!(props.height || props.maxHeight)) {
|
|
10567
|
-
|
|
10633
|
+
errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
10568
10634
|
}
|
|
10569
10635
|
if (!props.showOverflow) {
|
|
10570
|
-
|
|
10636
|
+
warnLog('vxe.error.reqProp', ['table.show-overflow']);
|
|
10571
10637
|
}
|
|
10572
10638
|
if (props.spanMethod) {
|
|
10573
|
-
|
|
10639
|
+
warnLog('vxe.error.scrollErrProp', ['table.span-method']);
|
|
10574
10640
|
}
|
|
10575
10641
|
}
|
|
10576
10642
|
}
|
|
@@ -10726,7 +10792,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10726
10792
|
column.fixed = parent.fixed;
|
|
10727
10793
|
}
|
|
10728
10794
|
if (parent && column.fixed !== parent.fixed) {
|
|
10729
|
-
|
|
10795
|
+
errLog('vxe.error.groupFixed');
|
|
10730
10796
|
}
|
|
10731
10797
|
if (isColGroup) {
|
|
10732
10798
|
column.visible = !!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(column.children, subColumn => hasChildrenList(subColumn) ? false : subColumn.visible);
|
|
@@ -10778,16 +10844,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10778
10844
|
if (scrollXLoad) {
|
|
10779
10845
|
if (true) {
|
|
10780
10846
|
// if (props.showHeader && !props.showHeaderOverflow) {
|
|
10781
|
-
//
|
|
10847
|
+
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
10782
10848
|
// }
|
|
10783
10849
|
// if (props.showFooter && !props.showFooterOverflow) {
|
|
10784
|
-
//
|
|
10850
|
+
// warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
10785
10851
|
// }
|
|
10786
10852
|
if (props.spanMethod) {
|
|
10787
|
-
|
|
10853
|
+
warnLog('vxe.error.scrollErrProp', ['span-method']);
|
|
10788
10854
|
}
|
|
10789
10855
|
if (props.footerSpanMethod) {
|
|
10790
|
-
|
|
10856
|
+
warnLog('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
10791
10857
|
}
|
|
10792
10858
|
}
|
|
10793
10859
|
const {
|
|
@@ -10847,7 +10913,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
10847
10913
|
tablePrivateMethods.handleTableData(true);
|
|
10848
10914
|
if (true) {
|
|
10849
10915
|
if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
|
|
10850
|
-
|
|
10916
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
10851
10917
|
}
|
|
10852
10918
|
}
|
|
10853
10919
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -11067,7 +11133,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11067
11133
|
* 对于某些特殊的场景,比如深层树节点元素发生变动时可能会用到
|
|
11068
11134
|
*/
|
|
11069
11135
|
syncData() {
|
|
11070
|
-
|
|
11136
|
+
warnLog('vxe.error.delFunc', ['syncData', 'getData']);
|
|
11071
11137
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
11072
11138
|
reactData.tableData = [];
|
|
11073
11139
|
emit('update:data', internalData.tableFullData);
|
|
@@ -11191,7 +11257,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11191
11257
|
reactData.tableData = tableData.slice(0);
|
|
11192
11258
|
} else {
|
|
11193
11259
|
if (true) {
|
|
11194
|
-
|
|
11260
|
+
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
11195
11261
|
}
|
|
11196
11262
|
}
|
|
11197
11263
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -11401,7 +11467,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11401
11467
|
} = internalData;
|
|
11402
11468
|
if (!keepSource) {
|
|
11403
11469
|
if (true) {
|
|
11404
|
-
|
|
11470
|
+
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
11405
11471
|
}
|
|
11406
11472
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
11407
11473
|
}
|
|
@@ -11805,6 +11871,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
11805
11871
|
})) {
|
|
11806
11872
|
column.visible = column.defaultVisible;
|
|
11807
11873
|
}
|
|
11874
|
+
column.renderResizeWidth = column.renderWidth;
|
|
11808
11875
|
});
|
|
11809
11876
|
if (opts.resizable) {
|
|
11810
11877
|
tablePrivateMethods.saveCustomResizable(true);
|
|
@@ -12532,7 +12599,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12532
12599
|
},
|
|
12533
12600
|
reloadExpandContent(row) {
|
|
12534
12601
|
if (true) {
|
|
12535
|
-
|
|
12602
|
+
warnLog('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand']);
|
|
12536
12603
|
}
|
|
12537
12604
|
// 即将废弃
|
|
12538
12605
|
return tableMethods.reloadRowExpand(row);
|
|
@@ -12656,7 +12723,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12656
12723
|
isExpandByRow(row) {
|
|
12657
12724
|
// 已废弃
|
|
12658
12725
|
if (true) {
|
|
12659
|
-
|
|
12726
|
+
warnLog('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow']);
|
|
12660
12727
|
}
|
|
12661
12728
|
return tableMethods.isRowExpandByRow(row);
|
|
12662
12729
|
},
|
|
@@ -12772,7 +12839,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
12772
12839
|
},
|
|
12773
12840
|
reloadTreeChilds(row) {
|
|
12774
12841
|
if (true) {
|
|
12775
|
-
|
|
12842
|
+
warnLog('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand']);
|
|
12776
12843
|
}
|
|
12777
12844
|
// 即将废弃
|
|
12778
12845
|
return tableMethods.reloadTreeExpand(row);
|
|
@@ -13075,7 +13142,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13075
13142
|
*/
|
|
13076
13143
|
setMergeCells(merges) {
|
|
13077
13144
|
if (props.spanMethod) {
|
|
13078
|
-
|
|
13145
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
13079
13146
|
}
|
|
13080
13147
|
setMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
13081
13148
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -13089,7 +13156,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13089
13156
|
*/
|
|
13090
13157
|
removeMergeCells(merges) {
|
|
13091
13158
|
if (props.spanMethod) {
|
|
13092
|
-
|
|
13159
|
+
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
13093
13160
|
}
|
|
13094
13161
|
const rest = removeMerges(merges, reactData.mergeList, internalData.afterFullData);
|
|
13095
13162
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -13115,7 +13182,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13115
13182
|
},
|
|
13116
13183
|
setMergeFooterItems(merges) {
|
|
13117
13184
|
if (props.footerSpanMethod) {
|
|
13118
|
-
|
|
13185
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
13119
13186
|
}
|
|
13120
13187
|
setMerges(merges, reactData.mergeFooterList);
|
|
13121
13188
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -13125,7 +13192,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13125
13192
|
},
|
|
13126
13193
|
removeMergeFooterItems(merges) {
|
|
13127
13194
|
if (props.footerSpanMethod) {
|
|
13128
|
-
|
|
13195
|
+
errLog('vxe.error.errConflicts', ['merge-footer-items', 'footer-span-method']);
|
|
13129
13196
|
}
|
|
13130
13197
|
const rest = removeMerges(merges, reactData.mergeFooterList);
|
|
13131
13198
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
@@ -13159,6 +13226,71 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13159
13226
|
}
|
|
13160
13227
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
13161
13228
|
},
|
|
13229
|
+
getCustomStoreData() {
|
|
13230
|
+
const {
|
|
13231
|
+
id
|
|
13232
|
+
} = props;
|
|
13233
|
+
const customOpts = computeCustomOpts.value;
|
|
13234
|
+
const {
|
|
13235
|
+
collectColumn
|
|
13236
|
+
} = internalData;
|
|
13237
|
+
const {
|
|
13238
|
+
checkMethod
|
|
13239
|
+
} = customOpts;
|
|
13240
|
+
const resizableData = {};
|
|
13241
|
+
const sortData = {};
|
|
13242
|
+
const visibleData = {};
|
|
13243
|
+
const fixedData = {};
|
|
13244
|
+
const storeData = {
|
|
13245
|
+
resizableData,
|
|
13246
|
+
sortData,
|
|
13247
|
+
visibleData,
|
|
13248
|
+
fixedData
|
|
13249
|
+
};
|
|
13250
|
+
if (!id) {
|
|
13251
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
13252
|
+
return storeData;
|
|
13253
|
+
}
|
|
13254
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
13255
|
+
// 排序只支持一级
|
|
13256
|
+
if (!parent) {
|
|
13257
|
+
collectColumn.forEach(column => {
|
|
13258
|
+
const colKey = column.getKey();
|
|
13259
|
+
if (colKey) {
|
|
13260
|
+
sortData[colKey] = column.renderSortNumber;
|
|
13261
|
+
}
|
|
13262
|
+
});
|
|
13263
|
+
}
|
|
13264
|
+
if (column.resizeWidth) {
|
|
13265
|
+
const colKey = column.getKey();
|
|
13266
|
+
if (colKey) {
|
|
13267
|
+
resizableData[colKey] = column.renderWidth;
|
|
13268
|
+
}
|
|
13269
|
+
}
|
|
13270
|
+
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
13271
|
+
const colKey = column.getKey();
|
|
13272
|
+
if (colKey) {
|
|
13273
|
+
fixedData[colKey] = column.fixed;
|
|
13274
|
+
}
|
|
13275
|
+
}
|
|
13276
|
+
if (!checkMethod || checkMethod({
|
|
13277
|
+
column
|
|
13278
|
+
})) {
|
|
13279
|
+
if (!column.visible && column.defaultVisible) {
|
|
13280
|
+
const colKey = column.getKey();
|
|
13281
|
+
if (colKey) {
|
|
13282
|
+
visibleData[colKey] = false;
|
|
13283
|
+
}
|
|
13284
|
+
} else if (column.visible && !column.defaultVisible) {
|
|
13285
|
+
const colKey = column.getKey();
|
|
13286
|
+
if (colKey) {
|
|
13287
|
+
visibleData[colKey] = true;
|
|
13288
|
+
}
|
|
13289
|
+
}
|
|
13290
|
+
}
|
|
13291
|
+
});
|
|
13292
|
+
return storeData;
|
|
13293
|
+
},
|
|
13162
13294
|
focus() {
|
|
13163
13295
|
internalData.isActivated = true;
|
|
13164
13296
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -13179,7 +13311,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
13179
13311
|
$table: $xeTable
|
|
13180
13312
|
});
|
|
13181
13313
|
} else {
|
|
13182
|
-
|
|
13314
|
+
errLog('vxe.error.barUnableLink');
|
|
13183
13315
|
}
|
|
13184
13316
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
13185
13317
|
}
|
|
@@ -14080,7 +14212,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14080
14212
|
const columnWidthStorageMap = getCustomStorageMap(resizableStorageKey);
|
|
14081
14213
|
let columnWidthStorage;
|
|
14082
14214
|
if (!id) {
|
|
14083
|
-
|
|
14215
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14084
14216
|
return;
|
|
14085
14217
|
}
|
|
14086
14218
|
if (!isReset) {
|
|
@@ -14117,18 +14249,16 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14117
14249
|
const columnSortStorageMap = getCustomStorageMap(sortStorageKey);
|
|
14118
14250
|
let columnWidthStorage;
|
|
14119
14251
|
if (!id) {
|
|
14120
|
-
|
|
14252
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14121
14253
|
return;
|
|
14122
14254
|
}
|
|
14123
14255
|
if (!isReset) {
|
|
14124
14256
|
columnWidthStorage = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(columnSortStorageMap[id]) ? columnSortStorageMap[id] : {};
|
|
14125
14257
|
// 排序只支持一级
|
|
14126
14258
|
collectColumn.forEach(column => {
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
columnWidthStorage[colKey] = column.renderSortNumber;
|
|
14131
|
-
}
|
|
14259
|
+
const colKey = column.getKey();
|
|
14260
|
+
if (colKey) {
|
|
14261
|
+
columnWidthStorage[colKey] = column.renderSortNumber;
|
|
14132
14262
|
}
|
|
14133
14263
|
});
|
|
14134
14264
|
}
|
|
@@ -14155,7 +14285,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14155
14285
|
const columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
|
|
14156
14286
|
const colFixeds = [];
|
|
14157
14287
|
if (!id) {
|
|
14158
|
-
|
|
14288
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14159
14289
|
return;
|
|
14160
14290
|
}
|
|
14161
14291
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -14191,7 +14321,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14191
14321
|
const colHides = [];
|
|
14192
14322
|
const colShows = [];
|
|
14193
14323
|
if (!id) {
|
|
14194
|
-
|
|
14324
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
14195
14325
|
return;
|
|
14196
14326
|
}
|
|
14197
14327
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, column => {
|
|
@@ -14246,7 +14376,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
14246
14376
|
evntList = table_interceptor.get('event.clearActived');
|
|
14247
14377
|
if (true) {
|
|
14248
14378
|
if (evntList.length) {
|
|
14249
|
-
|
|
14379
|
+
warnLog('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit']);
|
|
14250
14380
|
}
|
|
14251
14381
|
}
|
|
14252
14382
|
}
|
|
@@ -15366,12 +15496,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15366
15496
|
if (true) {
|
|
15367
15497
|
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
|
15368
15498
|
$xeTable[name] = function () {
|
|
15369
|
-
|
|
15499
|
+
errLog('vxe.error.reqModule', ['VxeTableExportModule']);
|
|
15370
15500
|
};
|
|
15371
15501
|
});
|
|
15372
15502
|
'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
|
15373
15503
|
$xeTable[name] = function () {
|
|
15374
|
-
|
|
15504
|
+
errLog('vxe.error.reqModule', ['VxeTableValidatorModule']);
|
|
15375
15505
|
};
|
|
15376
15506
|
});
|
|
15377
15507
|
}
|
|
@@ -15472,10 +15602,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15472
15602
|
// const checkboxOpts = computeCheckboxOpts.value
|
|
15473
15603
|
// const checkboxColumn = internalData.tableFullColumn.find(column => column.type === 'checkbox')
|
|
15474
15604
|
// if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
|
|
15475
|
-
//
|
|
15605
|
+
// warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
15476
15606
|
// }
|
|
15477
15607
|
if ((scrollXLoad || scrollYLoad) && expandColumn) {
|
|
15478
|
-
|
|
15608
|
+
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
15479
15609
|
}
|
|
15480
15610
|
}
|
|
15481
15611
|
tableMethods.recalculate();
|
|
@@ -15623,40 +15753,40 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15623
15753
|
const rowOpts = computeRowOpts.value;
|
|
15624
15754
|
if (true) {
|
|
15625
15755
|
if (props.rowId) {
|
|
15626
|
-
|
|
15756
|
+
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
15627
15757
|
}
|
|
15628
15758
|
if (props.rowKey) {
|
|
15629
|
-
|
|
15759
|
+
warnLog('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
15630
15760
|
}
|
|
15631
15761
|
if (props.columnKey) {
|
|
15632
|
-
|
|
15762
|
+
warnLog('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
15633
15763
|
}
|
|
15634
15764
|
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
15635
|
-
|
|
15765
|
+
warnLog('vxe.error.reqProp', ['row-config.keyField']);
|
|
15636
15766
|
}
|
|
15637
15767
|
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
15638
|
-
|
|
15768
|
+
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
15639
15769
|
}
|
|
15640
15770
|
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
15641
|
-
|
|
15771
|
+
warnLog('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
15642
15772
|
}
|
|
15643
15773
|
if (treeConfig && props.stripe) {
|
|
15644
|
-
|
|
15774
|
+
warnLog('vxe.error.noTree', ['stripe']);
|
|
15645
15775
|
}
|
|
15646
15776
|
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
15647
|
-
|
|
15777
|
+
warnLog('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
15648
15778
|
}
|
|
15649
15779
|
// if (props.highlightCurrentRow) {
|
|
15650
|
-
//
|
|
15780
|
+
// warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
15651
15781
|
// }
|
|
15652
15782
|
// if (props.highlightHoverRow) {
|
|
15653
|
-
//
|
|
15783
|
+
// warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover'])
|
|
15654
15784
|
// }
|
|
15655
15785
|
// if (props.highlightCurrentColumn) {
|
|
15656
|
-
//
|
|
15786
|
+
// warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent'])
|
|
15657
15787
|
// }
|
|
15658
15788
|
// if (props.highlightHoverColumn) {
|
|
15659
|
-
//
|
|
15789
|
+
// warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
15660
15790
|
// }
|
|
15661
15791
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
15662
15792
|
const {
|
|
@@ -15666,10 +15796,10 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15666
15796
|
const exportOpts = computeExportOpts.value;
|
|
15667
15797
|
const importOpts = computeImportOpts.value;
|
|
15668
15798
|
if (importConfig && importOpts.types && !importOpts.importMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), importOpts.types)) {
|
|
15669
|
-
|
|
15799
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps).join(',')]);
|
|
15670
15800
|
}
|
|
15671
15801
|
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
15672
|
-
|
|
15802
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
15673
15803
|
}
|
|
15674
15804
|
}
|
|
15675
15805
|
if (true) {
|
|
@@ -15677,64 +15807,64 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
15677
15807
|
const mouseOpts = computeMouseOpts.value;
|
|
15678
15808
|
const rowOpts = computeRowOpts.value;
|
|
15679
15809
|
if (!props.id && props.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
15680
|
-
|
|
15810
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
15681
15811
|
}
|
|
15682
15812
|
if (props.treeConfig && checkboxOpts.range) {
|
|
15683
|
-
|
|
15813
|
+
errLog('vxe.error.noTree', ['checkbox-config.range']);
|
|
15684
15814
|
}
|
|
15685
15815
|
if (rowOpts.height && !props.showOverflow) {
|
|
15686
|
-
|
|
15816
|
+
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
15687
15817
|
}
|
|
15688
15818
|
if (!$xeTable.handleUpdateCellAreas) {
|
|
15689
15819
|
if (props.clipConfig) {
|
|
15690
|
-
|
|
15820
|
+
warnLog('vxe.error.notProp', ['clip-config']);
|
|
15691
15821
|
}
|
|
15692
15822
|
if (props.fnrConfig) {
|
|
15693
|
-
|
|
15823
|
+
warnLog('vxe.error.notProp', ['fnr-config']);
|
|
15694
15824
|
}
|
|
15695
15825
|
if (mouseOpts.area) {
|
|
15696
|
-
|
|
15826
|
+
errLog('vxe.error.notProp', ['mouse-config.area']);
|
|
15697
15827
|
return;
|
|
15698
15828
|
}
|
|
15699
15829
|
}
|
|
15700
15830
|
if (props.treeConfig && treeOpts.children) {
|
|
15701
|
-
|
|
15831
|
+
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
15702
15832
|
}
|
|
15703
15833
|
if (props.treeConfig && treeOpts.line) {
|
|
15704
|
-
|
|
15834
|
+
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
15705
15835
|
}
|
|
15706
15836
|
if (mouseOpts.area && mouseOpts.selected) {
|
|
15707
|
-
|
|
15837
|
+
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
15708
15838
|
}
|
|
15709
15839
|
if (mouseOpts.area && checkboxOpts.range) {
|
|
15710
|
-
|
|
15840
|
+
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range']);
|
|
15711
15841
|
}
|
|
15712
15842
|
if (props.treeConfig && mouseOpts.area) {
|
|
15713
|
-
|
|
15843
|
+
errLog('vxe.error.noTree', ['mouse-config.area']);
|
|
15714
15844
|
}
|
|
15715
15845
|
if (props.editConfig && editOpts.activeMethod) {
|
|
15716
|
-
|
|
15846
|
+
warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
|
|
15717
15847
|
}
|
|
15718
15848
|
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
15719
|
-
|
|
15849
|
+
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
15720
15850
|
}
|
|
15721
15851
|
if (checkboxOpts.halfField) {
|
|
15722
|
-
|
|
15852
|
+
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
15723
15853
|
}
|
|
15724
15854
|
}
|
|
15725
15855
|
// 检查是否有安装需要的模块
|
|
15726
15856
|
if (true) {
|
|
15727
15857
|
if (props.editConfig && !$xeTable.insert) {
|
|
15728
|
-
|
|
15858
|
+
errLog('vxe.error.reqModule', ['Edit']);
|
|
15729
15859
|
}
|
|
15730
15860
|
if (props.editRules && !$xeTable.validate) {
|
|
15731
|
-
|
|
15861
|
+
errLog('vxe.error.reqModule', ['Validator']);
|
|
15732
15862
|
}
|
|
15733
15863
|
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.triggerCellMousedownEvent) {
|
|
15734
|
-
|
|
15864
|
+
errLog('vxe.error.reqModule', ['Keyboard']);
|
|
15735
15865
|
}
|
|
15736
15866
|
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
15737
|
-
|
|
15867
|
+
errLog('vxe.error.reqModule', ['Export']);
|
|
15738
15868
|
}
|
|
15739
15869
|
}
|
|
15740
15870
|
Object.assign(scrollYStore, {
|
|
@@ -16805,11 +16935,11 @@ menu_hook_hooks.add('tableMenuModule', {
|
|
|
16805
16935
|
|
|
16806
16936
|
|
|
16807
16937
|
|
|
16938
|
+
|
|
16808
16939
|
const {
|
|
16809
16940
|
getConfig: hook_getConfig,
|
|
16810
16941
|
renderer: edit_hook_renderer,
|
|
16811
16942
|
hooks: edit_hook_hooks,
|
|
16812
|
-
log: hook_log,
|
|
16813
16943
|
getI18n: hook_getI18n
|
|
16814
16944
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
16815
16945
|
const tableEditMethodKeys = ['insert', 'insertAt', 'insertNextAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getEditRecord', 'getActiveRecord', 'getSelectedCell', 'clearEdit', 'clearActived', 'clearSelected', 'isEditByRow', 'isActiveByRow', 'setEditRow', 'setActiveRow', 'setEditCell', 'setActiveCell', 'setSelectCell'];
|
|
@@ -16935,7 +17065,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
16935
17065
|
} else {
|
|
16936
17066
|
if (true) {
|
|
16937
17067
|
if (parentRowId) {
|
|
16938
|
-
|
|
17068
|
+
warnLog('vxe.error.unableInsert');
|
|
16939
17069
|
}
|
|
16940
17070
|
}
|
|
16941
17071
|
afterFullData[funcName](item);
|
|
@@ -17039,7 +17169,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17039
17169
|
if (true) {
|
|
17040
17170
|
if (item[treeOpts.parentField]) {
|
|
17041
17171
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
17042
|
-
|
|
17172
|
+
errLog('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
|
|
17043
17173
|
}
|
|
17044
17174
|
}
|
|
17045
17175
|
}
|
|
@@ -17081,7 +17211,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17081
17211
|
}
|
|
17082
17212
|
} else {
|
|
17083
17213
|
if (true) {
|
|
17084
|
-
|
|
17214
|
+
warnLog('vxe.error.unableInsert');
|
|
17085
17215
|
}
|
|
17086
17216
|
insertTreeRow(newRecords, true);
|
|
17087
17217
|
}
|
|
@@ -17103,7 +17233,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17103
17233
|
afIndex = Math.min(afterFullData.length, afIndex + 1);
|
|
17104
17234
|
}
|
|
17105
17235
|
if (afIndex === -1) {
|
|
17106
|
-
throw new Error(
|
|
17236
|
+
throw new Error(hook_getI18n('vxe.error.unableInsert'));
|
|
17107
17237
|
}
|
|
17108
17238
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
17109
17239
|
tableFullData.splice($xeTable.findRowIndexOf(tableFullData, row), 0, ...newRecords);
|
|
@@ -17422,7 +17552,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17422
17552
|
},
|
|
17423
17553
|
getActiveRecord() {
|
|
17424
17554
|
if (true) {
|
|
17425
|
-
|
|
17555
|
+
warnLog('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord']);
|
|
17426
17556
|
}
|
|
17427
17557
|
return this.getEditRecord();
|
|
17428
17558
|
},
|
|
@@ -17462,7 +17592,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17462
17592
|
clearActived(evnt) {
|
|
17463
17593
|
// 即将废弃
|
|
17464
17594
|
if (true) {
|
|
17465
|
-
|
|
17595
|
+
warnLog('vxe.error.delFunc', ['clearActived', 'clearEdit']);
|
|
17466
17596
|
}
|
|
17467
17597
|
return this.clearEdit(evnt);
|
|
17468
17598
|
},
|
|
@@ -17522,7 +17652,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17522
17652
|
},
|
|
17523
17653
|
isActiveByRow(row) {
|
|
17524
17654
|
if (true) {
|
|
17525
|
-
|
|
17655
|
+
warnLog('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow']);
|
|
17526
17656
|
}
|
|
17527
17657
|
// 即将废弃
|
|
17528
17658
|
return this.isEditByRow(row);
|
|
@@ -17539,7 +17669,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17539
17669
|
},
|
|
17540
17670
|
setActiveRow(row) {
|
|
17541
17671
|
if (true) {
|
|
17542
|
-
|
|
17672
|
+
warnLog('vxe.error.delFunc', ['setActiveRow', 'setEditRow']);
|
|
17543
17673
|
}
|
|
17544
17674
|
// 即将废弃
|
|
17545
17675
|
return editMethods.setEditRow(row);
|
|
@@ -17559,7 +17689,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17559
17689
|
},
|
|
17560
17690
|
setActiveCell(row, fieldOrColumn) {
|
|
17561
17691
|
if (true) {
|
|
17562
|
-
|
|
17692
|
+
warnLog('vxe.error.delFunc', ['setActiveCell', 'setEditCell']);
|
|
17563
17693
|
}
|
|
17564
17694
|
// 即将废弃
|
|
17565
17695
|
return editMethods.setEditCell(row, fieldOrColumn);
|
|
@@ -17895,11 +18025,11 @@ function createHtmlPage(opts, content) {
|
|
|
17895
18025
|
|
|
17896
18026
|
|
|
17897
18027
|
|
|
18028
|
+
|
|
17898
18029
|
const {
|
|
17899
18030
|
getI18n: export_hook_getI18n,
|
|
17900
18031
|
hooks: export_hook_hooks,
|
|
17901
|
-
renderer: export_hook_renderer
|
|
17902
|
-
log: export_hook_log
|
|
18032
|
+
renderer: export_hook_renderer
|
|
17903
18033
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
17904
18034
|
let htmlCellElem;
|
|
17905
18035
|
const csvBOM = '\ufeff';
|
|
@@ -18906,7 +19036,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18906
19036
|
}, () => {
|
|
18907
19037
|
const reader = new FileReader();
|
|
18908
19038
|
reader.onerror = () => {
|
|
18909
|
-
|
|
19039
|
+
errLog('vxe.error.notType', [type]);
|
|
18910
19040
|
_importReject({
|
|
18911
19041
|
status: false
|
|
18912
19042
|
});
|
|
@@ -18920,7 +19050,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18920
19050
|
} else {
|
|
18921
19051
|
// 不支持的浏览器
|
|
18922
19052
|
if (true) {
|
|
18923
|
-
|
|
19053
|
+
errLog('vxe.error.notExp');
|
|
18924
19054
|
}
|
|
18925
19055
|
_importResolve({
|
|
18926
19056
|
status: true
|
|
@@ -19181,7 +19311,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19181
19311
|
// 检查类型,如果为自定义导出,则不需要校验类型
|
|
19182
19312
|
if (!opts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)) {
|
|
19183
19313
|
if (true) {
|
|
19184
|
-
|
|
19314
|
+
errLog('vxe.error.notType', [type]);
|
|
19185
19315
|
}
|
|
19186
19316
|
const params = {
|
|
19187
19317
|
status: false
|
|
@@ -19211,7 +19341,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19211
19341
|
} else if (mode === 'all') {
|
|
19212
19342
|
if (true) {
|
|
19213
19343
|
if (!$xeGrid) {
|
|
19214
|
-
|
|
19344
|
+
warnLog('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
19215
19345
|
}
|
|
19216
19346
|
}
|
|
19217
19347
|
if ($xeGrid && !opts.remote) {
|
|
@@ -19231,7 +19361,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19231
19361
|
const ajaxMethods = ajax.queryAll;
|
|
19232
19362
|
if (true) {
|
|
19233
19363
|
if (!ajaxMethods) {
|
|
19234
|
-
|
|
19364
|
+
warnLog('vxe.error.notFunc', ['proxy-config.ajax.queryAll']);
|
|
19235
19365
|
}
|
|
19236
19366
|
}
|
|
19237
19367
|
if (ajaxMethods) {
|
|
@@ -19327,14 +19457,16 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19327
19457
|
if (external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.print) {
|
|
19328
19458
|
if (opts.content) {
|
|
19329
19459
|
resolve(external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.print({
|
|
19330
|
-
|
|
19460
|
+
title: opts.sheetName,
|
|
19461
|
+
html: opts.content
|
|
19331
19462
|
}));
|
|
19332
19463
|
} else {
|
|
19333
19464
|
resolve(exportMethods.exportData(opts).then(({
|
|
19334
19465
|
content
|
|
19335
19466
|
}) => {
|
|
19336
19467
|
return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.print({
|
|
19337
|
-
|
|
19468
|
+
title: opts.sheetName,
|
|
19469
|
+
html: content
|
|
19338
19470
|
});
|
|
19339
19471
|
}));
|
|
19340
19472
|
}
|
|
@@ -19346,6 +19478,25 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19346
19478
|
}
|
|
19347
19479
|
});
|
|
19348
19480
|
},
|
|
19481
|
+
getPrintHtml(options) {
|
|
19482
|
+
const printOpts = computePrintOpts.value;
|
|
19483
|
+
const opts = Object.assign({
|
|
19484
|
+
original: false
|
|
19485
|
+
// beforePrintMethod
|
|
19486
|
+
}, printOpts, options, {
|
|
19487
|
+
type: 'html',
|
|
19488
|
+
download: false,
|
|
19489
|
+
remote: false,
|
|
19490
|
+
print: true
|
|
19491
|
+
});
|
|
19492
|
+
return exportMethods.exportData(opts).then(({
|
|
19493
|
+
content
|
|
19494
|
+
}) => {
|
|
19495
|
+
return {
|
|
19496
|
+
html: content
|
|
19497
|
+
};
|
|
19498
|
+
});
|
|
19499
|
+
},
|
|
19349
19500
|
openImport(options) {
|
|
19350
19501
|
const {
|
|
19351
19502
|
treeConfig,
|
|
@@ -19378,7 +19529,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19378
19529
|
return;
|
|
19379
19530
|
}
|
|
19380
19531
|
if (!importConfig) {
|
|
19381
|
-
|
|
19532
|
+
errLog('vxe.error.reqProp', ['import-config']);
|
|
19382
19533
|
}
|
|
19383
19534
|
// 处理类型
|
|
19384
19535
|
const typeList = types.map(value => {
|
|
@@ -19408,7 +19559,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19408
19559
|
const exportOpts = computeExportOpts.value;
|
|
19409
19560
|
if (true) {
|
|
19410
19561
|
if (!props.exportConfig) {
|
|
19411
|
-
|
|
19562
|
+
errLog('vxe.error.reqProp', ['export-config']);
|
|
19412
19563
|
}
|
|
19413
19564
|
}
|
|
19414
19565
|
handleExportAndPrint(Object.assign({}, exportOpts, options));
|
|
@@ -19417,7 +19568,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19417
19568
|
const printOpts = computePrintOpts.value;
|
|
19418
19569
|
if (true) {
|
|
19419
19570
|
if (!props.printConfig) {
|
|
19420
|
-
|
|
19571
|
+
errLog('vxe.error.reqProp', ['print-config']);
|
|
19421
19572
|
}
|
|
19422
19573
|
}
|
|
19423
19574
|
handleExportAndPrint(Object.assign({}, printOpts, options), true);
|
|
@@ -19895,11 +20046,11 @@ keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
|
19895
20046
|
|
|
19896
20047
|
|
|
19897
20048
|
|
|
20049
|
+
|
|
19898
20050
|
const {
|
|
19899
20051
|
getConfig: validator_hook_getConfig,
|
|
19900
20052
|
validators: hook_validators,
|
|
19901
|
-
hooks: validator_hook_hooks
|
|
19902
|
-
log: validator_hook_log
|
|
20053
|
+
hooks: validator_hook_hooks
|
|
19903
20054
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
19904
20055
|
/**
|
|
19905
20056
|
* 校验规则
|
|
@@ -20139,7 +20290,7 @@ validator_hook_hooks.add('tableValidatorModule', {
|
|
|
20139
20290
|
fullValidate(rows, cb) {
|
|
20140
20291
|
if (true) {
|
|
20141
20292
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
20142
|
-
|
|
20293
|
+
warnLog('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)']);
|
|
20143
20294
|
}
|
|
20144
20295
|
}
|
|
20145
20296
|
return beginValidate(rows, cb, true);
|
|
@@ -20150,7 +20301,7 @@ validator_hook_hooks.add('tableValidatorModule', {
|
|
|
20150
20301
|
validate(rows, cb) {
|
|
20151
20302
|
if (true) {
|
|
20152
20303
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
20153
|
-
|
|
20304
|
+
warnLog('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)']);
|
|
20154
20305
|
}
|
|
20155
20306
|
}
|
|
20156
20307
|
return beginValidate(rows, cb);
|
|
@@ -20285,12 +20436,12 @@ validator_hook_hooks.add('tableValidatorModule', {
|
|
|
20285
20436
|
customValid = gvItem.cellValidatorMethod(validParams);
|
|
20286
20437
|
} else {
|
|
20287
20438
|
if (true) {
|
|
20288
|
-
|
|
20439
|
+
warnLog('vxe.error.notValidators', [validator]);
|
|
20289
20440
|
}
|
|
20290
20441
|
}
|
|
20291
20442
|
} else {
|
|
20292
20443
|
if (true) {
|
|
20293
|
-
|
|
20444
|
+
errLog('vxe.error.notValidators', [validator]);
|
|
20294
20445
|
}
|
|
20295
20446
|
}
|
|
20296
20447
|
} else {
|
|
@@ -20487,30 +20638,20 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
20487
20638
|
computeCustomOpts
|
|
20488
20639
|
} = $xeTable.getComputeMaps();
|
|
20489
20640
|
const {
|
|
20490
|
-
|
|
20491
|
-
refTableBody,
|
|
20492
|
-
refTableCustom
|
|
20641
|
+
refElem
|
|
20493
20642
|
} = $xeTable.getRefMaps();
|
|
20494
20643
|
const $xeGrid = $xeTable.xegrid;
|
|
20495
20644
|
const calcMaxHeight = () => {
|
|
20496
20645
|
const {
|
|
20497
20646
|
customStore
|
|
20498
20647
|
} = reactData;
|
|
20499
|
-
const
|
|
20500
|
-
const tableBody = refTableBody.value;
|
|
20501
|
-
const tableCustom = refTableCustom.value;
|
|
20502
|
-
const customWrapperElem = tableCustom ? tableCustom.$el : null;
|
|
20503
|
-
const headElem = tableHeader.$el;
|
|
20504
|
-
const bodyElem = tableBody.$el;
|
|
20648
|
+
const el = refElem.value;
|
|
20505
20649
|
// 判断面板不能大于表格高度
|
|
20506
20650
|
let tableHeight = 0;
|
|
20507
|
-
if (
|
|
20508
|
-
tableHeight
|
|
20509
|
-
}
|
|
20510
|
-
if (bodyElem) {
|
|
20511
|
-
tableHeight += bodyElem.clientHeight;
|
|
20651
|
+
if (el) {
|
|
20652
|
+
tableHeight = el.clientHeight - 60;
|
|
20512
20653
|
}
|
|
20513
|
-
customStore.maxHeight = Math.max(
|
|
20654
|
+
customStore.maxHeight = Math.max(4, tableHeight);
|
|
20514
20655
|
};
|
|
20515
20656
|
const openCustom = () => {
|
|
20516
20657
|
const {
|
|
@@ -20527,6 +20668,7 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
20527
20668
|
const colid = column.getKey();
|
|
20528
20669
|
column.renderFixed = column.fixed;
|
|
20529
20670
|
column.renderVisible = column.visible;
|
|
20671
|
+
column.renderResizeWidth = column.renderWidth;
|
|
20530
20672
|
sortMaps[colid] = column.renderSortNumber;
|
|
20531
20673
|
fixedMaps[colid] = column.fixed;
|
|
20532
20674
|
visibleMaps[colid] = column.visible;
|
|
@@ -20573,10 +20715,10 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
20573
20715
|
} = customOpts;
|
|
20574
20716
|
customStore.isAll = collectColumn.every(column => (checkMethod ? !checkMethod({
|
|
20575
20717
|
column
|
|
20576
|
-
}) : false) || column.
|
|
20718
|
+
}) : false) || column.renderVisible);
|
|
20577
20719
|
customStore.isIndeterminate = !customStore.isAll && collectColumn.some(column => (!checkMethod || checkMethod({
|
|
20578
20720
|
column
|
|
20579
|
-
})) && (column.
|
|
20721
|
+
})) && (column.renderVisible || column.halfVisible));
|
|
20580
20722
|
};
|
|
20581
20723
|
const emitCustomEvent = (type, evnt) => {
|
|
20582
20724
|
const comp = $xeGrid || $xeTable;
|
|
@@ -20638,11 +20780,11 @@ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.
|
|
|
20638
20780
|
|
|
20639
20781
|
|
|
20640
20782
|
|
|
20783
|
+
|
|
20641
20784
|
const {
|
|
20642
20785
|
getConfig: render_getConfig,
|
|
20643
20786
|
renderer: render_renderer,
|
|
20644
|
-
getI18n: render_getI18n
|
|
20645
|
-
log: render_log
|
|
20787
|
+
getI18n: render_getI18n
|
|
20646
20788
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
20647
20789
|
const componentDefaultModelProp = 'modelValue';
|
|
20648
20790
|
const defaultCompProps = {
|
|
@@ -20825,7 +20967,7 @@ function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
|
|
|
20825
20967
|
ons[getOnName(key)] = function (...args) {
|
|
20826
20968
|
if (true) {
|
|
20827
20969
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
20828
|
-
|
|
20970
|
+
errLog('vxe.error.errFunc', [func]);
|
|
20829
20971
|
}
|
|
20830
20972
|
}
|
|
20831
20973
|
func(params, ...args);
|
|
@@ -21432,13 +21574,13 @@ const Table = VxeTable;
|
|
|
21432
21574
|
|
|
21433
21575
|
|
|
21434
21576
|
|
|
21577
|
+
|
|
21435
21578
|
const {
|
|
21436
21579
|
getConfig: toolbar_getConfig,
|
|
21437
21580
|
getIcon: toolbar_getIcon,
|
|
21438
21581
|
getI18n: toolbar_getI18n,
|
|
21439
21582
|
renderer: toolbar_renderer,
|
|
21440
21583
|
commands: toolbar_commands,
|
|
21441
|
-
log: toolbar_log,
|
|
21442
21584
|
createEvent: toolbar_createEvent,
|
|
21443
21585
|
useFns: toolbar_useFns
|
|
21444
21586
|
} = external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI;
|
|
@@ -21536,7 +21678,7 @@ const {
|
|
|
21536
21678
|
if ($xeTable) {
|
|
21537
21679
|
return true;
|
|
21538
21680
|
}
|
|
21539
|
-
|
|
21681
|
+
errLog('vxe.error.barUnableLink');
|
|
21540
21682
|
};
|
|
21541
21683
|
const handleClickSettingEvent = ({
|
|
21542
21684
|
$event
|
|
@@ -21545,7 +21687,7 @@ const {
|
|
|
21545
21687
|
if ($xeTable.triggerCustomEvent) {
|
|
21546
21688
|
$xeTable.triggerCustomEvent($event);
|
|
21547
21689
|
} else {
|
|
21548
|
-
|
|
21690
|
+
errLog('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21549
21691
|
}
|
|
21550
21692
|
}
|
|
21551
21693
|
};
|
|
@@ -21555,7 +21697,7 @@ const {
|
|
|
21555
21697
|
if ($xeTable) {
|
|
21556
21698
|
$xeTable.customOpenEvent($event);
|
|
21557
21699
|
} else {
|
|
21558
|
-
|
|
21700
|
+
errLog('vxe.error.reqModule', ['VxeTableCustomModule']);
|
|
21559
21701
|
}
|
|
21560
21702
|
};
|
|
21561
21703
|
const handleMouseleaveSettingEvent = ({
|
|
@@ -21623,7 +21765,7 @@ const {
|
|
|
21623
21765
|
gCommandOpts.commandMethod(params);
|
|
21624
21766
|
} else {
|
|
21625
21767
|
if (true) {
|
|
21626
|
-
|
|
21768
|
+
errLog('vxe.error.notCommands', [code]);
|
|
21627
21769
|
}
|
|
21628
21770
|
}
|
|
21629
21771
|
}
|
|
@@ -21652,7 +21794,7 @@ const {
|
|
|
21652
21794
|
gCommandOpts.commandMethod(params);
|
|
21653
21795
|
} else {
|
|
21654
21796
|
if (true) {
|
|
21655
|
-
|
|
21797
|
+
errLog('vxe.error.notCommands', [code]);
|
|
21656
21798
|
}
|
|
21657
21799
|
}
|
|
21658
21800
|
}
|
|
@@ -21912,21 +22054,21 @@ const {
|
|
|
21912
22054
|
const refreshOpts = computeRefreshOpts.value;
|
|
21913
22055
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
21914
22056
|
if (refresh && !$xeGrid && !queryMethod) {
|
|
21915
|
-
|
|
22057
|
+
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
21916
22058
|
}
|
|
21917
22059
|
const customOpts = computeCustomOpts.value;
|
|
21918
22060
|
if (true) {
|
|
21919
22061
|
if (customOpts.isFooter) {
|
|
21920
|
-
|
|
22062
|
+
warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
21921
22063
|
}
|
|
21922
22064
|
if (customOpts.showFooter) {
|
|
21923
|
-
|
|
22065
|
+
warnLog('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
21924
22066
|
}
|
|
21925
22067
|
if (customOpts.immediate) {
|
|
21926
|
-
|
|
22068
|
+
warnLog('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
21927
22069
|
}
|
|
21928
22070
|
if (customOpts.trigger) {
|
|
21929
|
-
|
|
22071
|
+
warnLog('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
21930
22072
|
}
|
|
21931
22073
|
}
|
|
21932
22074
|
});
|
|
@@ -21989,12 +22131,12 @@ const Toolbar = VxeToolbar;
|
|
|
21989
22131
|
|
|
21990
22132
|
|
|
21991
22133
|
|
|
22134
|
+
|
|
21992
22135
|
const {
|
|
21993
22136
|
getConfig: grid_getConfig,
|
|
21994
22137
|
getI18n: grid_getI18n,
|
|
21995
22138
|
commands: grid_commands,
|
|
21996
22139
|
hooks: grid_hooks,
|
|
21997
|
-
log: grid_log,
|
|
21998
22140
|
useFns: grid_useFns,
|
|
21999
22141
|
createEvent: grid_createEvent,
|
|
22000
22142
|
globalEvents: grid_globalEvents,
|
|
@@ -22395,7 +22537,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22395
22537
|
return slots[funcSlot];
|
|
22396
22538
|
} else {
|
|
22397
22539
|
if (true) {
|
|
22398
|
-
|
|
22540
|
+
errLog('vxe.error.notSlot', [funcSlot]);
|
|
22399
22541
|
}
|
|
22400
22542
|
}
|
|
22401
22543
|
} else {
|
|
@@ -22679,7 +22821,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22679
22821
|
break;
|
|
22680
22822
|
default:
|
|
22681
22823
|
if (true) {
|
|
22682
|
-
|
|
22824
|
+
errLog('vxe.error.notProp', [`layouts -> ${name}`]);
|
|
22683
22825
|
}
|
|
22684
22826
|
break;
|
|
22685
22827
|
}
|
|
@@ -22935,7 +23077,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22935
23077
|
});
|
|
22936
23078
|
} else {
|
|
22937
23079
|
if (true) {
|
|
22938
|
-
|
|
23080
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
22939
23081
|
}
|
|
22940
23082
|
}
|
|
22941
23083
|
break;
|
|
@@ -23012,7 +23154,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23012
23154
|
}
|
|
23013
23155
|
} else {
|
|
23014
23156
|
if (true) {
|
|
23015
|
-
|
|
23157
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
23016
23158
|
}
|
|
23017
23159
|
}
|
|
23018
23160
|
break;
|
|
@@ -23105,7 +23247,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23105
23247
|
});
|
|
23106
23248
|
} else {
|
|
23107
23249
|
if (true) {
|
|
23108
|
-
|
|
23250
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
23109
23251
|
}
|
|
23110
23252
|
}
|
|
23111
23253
|
break;
|
|
@@ -23123,7 +23265,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23123
23265
|
}, ...args);
|
|
23124
23266
|
} else {
|
|
23125
23267
|
if (true) {
|
|
23126
|
-
|
|
23268
|
+
errLog('vxe.error.notCommands', [code]);
|
|
23127
23269
|
}
|
|
23128
23270
|
}
|
|
23129
23271
|
}
|
|
@@ -23208,7 +23350,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23208
23350
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
|
|
23209
23351
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
23210
23352
|
if (!slots[func]) {
|
|
23211
|
-
|
|
23353
|
+
errLog('vxe.error.notSlot', [func]);
|
|
23212
23354
|
}
|
|
23213
23355
|
}
|
|
23214
23356
|
});
|
|
@@ -23346,7 +23488,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23346
23488
|
const proxyOpts = computeProxyOpts.value;
|
|
23347
23489
|
const formOpts = computeFormOpts.value;
|
|
23348
23490
|
if (isEnableConf(proxyConfig) && (data || proxyOpts.form && formOpts.data)) {
|
|
23349
|
-
|
|
23491
|
+
errLog('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
|
|
23350
23492
|
}
|
|
23351
23493
|
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
23352
23494
|
// if (proxyOpts.props) {
|