vxe-table 4.9.28 → 4.9.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/hook.js +24 -11
- package/es/table/render/index.js +18 -7
- package/es/table/src/body.js +7 -4
- package/es/table/src/footer.js +5 -2
- package/es/table/src/header.js +4 -1
- package/es/table/style.css +73 -27
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +5 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +73 -27
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +75 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/hook.js +27 -14
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +21 -7
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +8 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +6 -2
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +4 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/style/style.css +73 -27
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +5 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +73 -27
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/module/export/hook.ts +28 -15
- package/packages/table/render/index.ts +18 -6
- package/packages/table/src/body.ts +7 -4
- package/packages/table/src/footer.ts +6 -2
- package/packages/table/src/header.ts +5 -1
- package/packages/ui/index.ts +4 -2
- package/styles/components/table.scss +90 -19
- /package/es/{iconfont.1734331313492.ttf → iconfont.1734489196175.ttf} +0 -0
- /package/es/{iconfont.1734331313492.woff → iconfont.1734489196175.woff} +0 -0
- /package/es/{iconfont.1734331313492.woff2 → iconfont.1734489196175.woff2} +0 -0
- /package/lib/{iconfont.1734331313492.ttf → iconfont.1734489196175.ttf} +0 -0
- /package/lib/{iconfont.1734331313492.woff → iconfont.1734489196175.woff} +0 -0
- /package/lib/{iconfont.1734331313492.woff2 → iconfont.1734489196175.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1998,7 +1998,7 @@ function eqEmptyValue(cellValue) {
|
|
|
1998
1998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1999
1999
|
|
|
2000
2000
|
|
|
2001
|
-
const version = "4.9.
|
|
2001
|
+
const version = "4.9.30";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
2003
|
core_.VxeUI.tableVersion = version;
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
@@ -2040,10 +2040,12 @@ core_.VxeUI.setConfig({
|
|
|
2040
2040
|
strict: true
|
|
2041
2041
|
},
|
|
2042
2042
|
rowDragConfig: {
|
|
2043
|
-
showIcon: true
|
|
2043
|
+
showIcon: true,
|
|
2044
|
+
animation: true
|
|
2044
2045
|
},
|
|
2045
2046
|
columnDragConfig: {
|
|
2046
|
-
showIcon: true
|
|
2047
|
+
showIcon: true,
|
|
2048
|
+
animation: true
|
|
2047
2049
|
},
|
|
2048
2050
|
checkboxConfig: {
|
|
2049
2051
|
// trigger: 'default',
|
|
@@ -2409,7 +2411,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2409
2411
|
const {
|
|
2410
2412
|
log: log_log
|
|
2411
2413
|
} = core_.VxeUI;
|
|
2412
|
-
const log_version = `table v${"4.9.
|
|
2414
|
+
const log_version = `table v${"4.9.30"}`;
|
|
2413
2415
|
const warnLog = log_log.create('warn', log_version);
|
|
2414
2416
|
const errLog = log_log.create('error', log_version);
|
|
2415
2417
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -4893,7 +4895,8 @@ const lineOffsetSizes = {
|
|
|
4893
4895
|
computeValidOpts,
|
|
4894
4896
|
computeRowOpts,
|
|
4895
4897
|
computeColumnOpts,
|
|
4896
|
-
computeRowDragOpts
|
|
4898
|
+
computeRowDragOpts,
|
|
4899
|
+
computeColumnDragOpts
|
|
4897
4900
|
} = $xeTable.getComputeMaps();
|
|
4898
4901
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
4899
4902
|
const refBodyTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -5267,6 +5270,7 @@ const lineOffsetSizes = {
|
|
|
5267
5270
|
}));
|
|
5268
5271
|
}
|
|
5269
5272
|
}
|
|
5273
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
5270
5274
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
5271
5275
|
class: ['vxe-body--column', colid, {
|
|
5272
5276
|
[`col--${cellAlign}`]: cellAlign,
|
|
@@ -5276,6 +5280,7 @@ const lineOffsetSizes = {
|
|
|
5276
5280
|
'col--tree-node': treeNode,
|
|
5277
5281
|
'col--edit': isEdit,
|
|
5278
5282
|
'col--ellipsis': hasEllipsis,
|
|
5283
|
+
'fixed--width': !isAutoCellWidth,
|
|
5279
5284
|
'fixed--hidden': fixedHiddenColumn,
|
|
5280
5285
|
'is--drag-cell': isColDragCell,
|
|
5281
5286
|
'is--drag-disabled': isDisabledDrag,
|
|
@@ -5322,6 +5327,7 @@ const lineOffsetSizes = {
|
|
|
5322
5327
|
const editOpts = computeEditOpts.value;
|
|
5323
5328
|
const rowOpts = computeRowOpts.value;
|
|
5324
5329
|
const columnOpts = computeColumnOpts.value;
|
|
5330
|
+
const columnDragOpts = computeColumnDragOpts.value;
|
|
5325
5331
|
const {
|
|
5326
5332
|
transform,
|
|
5327
5333
|
seqMode
|
|
@@ -5409,7 +5415,7 @@ const lineOffsetSizes = {
|
|
|
5409
5415
|
const tdVNs = tableColumn.map((column, $columnIndex) => {
|
|
5410
5416
|
return renderColumn(seq, rowid, fixedType, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
|
|
5411
5417
|
});
|
|
5412
|
-
rows.push(columnOpts.drag ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
5418
|
+
rows.push(columnOpts.drag && columnDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
5413
5419
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
5414
5420
|
tag: 'tr',
|
|
5415
5421
|
class: trClass,
|
|
@@ -5746,7 +5752,7 @@ const lineOffsetSizes = {
|
|
|
5746
5752
|
const emptyOpts = computeEmptyOpts.value;
|
|
5747
5753
|
const keyboardOpts = computeKeyboardOpts.value;
|
|
5748
5754
|
const mouseOpts = computeMouseOpts.value;
|
|
5749
|
-
const
|
|
5755
|
+
const rowDragOpts = computeRowDragOpts.value;
|
|
5750
5756
|
// const isMergeLeftFixedExceeded = computeIsMergeLeftFixedExceeded.value
|
|
5751
5757
|
// const isMergeRightFixedExceeded = computeIsMergeRightFixedExceeded.value
|
|
5752
5758
|
// 如果是使用优化模式
|
|
@@ -5827,7 +5833,7 @@ const lineOffsetSizes = {
|
|
|
5827
5833
|
/**
|
|
5828
5834
|
* 内容
|
|
5829
5835
|
*/
|
|
5830
|
-
rowOpts.drag
|
|
5836
|
+
rowOpts.drag && rowDragOpts.animation ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
5831
5837
|
ref: refBodyTBody,
|
|
5832
5838
|
name: `vxe-body--row-list${isDragRowMove ? '' : '-disabled'}`,
|
|
5833
5839
|
tag: 'tbody'
|
|
@@ -6148,6 +6154,7 @@ const header_renderType = 'header';
|
|
|
6148
6154
|
thOns.onMouseup = $xeTable.handleHeaderCellDragMouseupEvent;
|
|
6149
6155
|
}
|
|
6150
6156
|
}
|
|
6157
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
6151
6158
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {
|
|
6152
6159
|
class: ['vxe-header--column', colid, {
|
|
6153
6160
|
[`col--${headAlign}`]: headAlign,
|
|
@@ -6156,6 +6163,7 @@ const header_renderType = 'header';
|
|
|
6156
6163
|
'col--fixed': column.fixed,
|
|
6157
6164
|
'col--group': isColGroup,
|
|
6158
6165
|
'col--ellipsis': hasEllipsis,
|
|
6166
|
+
'fixed--width': !isAutoCellWidth,
|
|
6159
6167
|
'fixed--hidden': fixedHiddenColumn,
|
|
6160
6168
|
'is--sortable': column.sortable,
|
|
6161
6169
|
'col--filter': !!column.filters,
|
|
@@ -6200,6 +6208,7 @@ const header_renderType = 'header';
|
|
|
6200
6208
|
isDragColMove
|
|
6201
6209
|
} = tableReactData;
|
|
6202
6210
|
const columnOpts = computeColumnOpts.value;
|
|
6211
|
+
const columnDragOpts = computeColumnDragOpts.value;
|
|
6203
6212
|
return headerGroups.map((cols, $rowIndex) => {
|
|
6204
6213
|
const params = {
|
|
6205
6214
|
$table: $xeTable,
|
|
@@ -6207,7 +6216,7 @@ const header_renderType = 'header';
|
|
|
6207
6216
|
fixed: fixedType,
|
|
6208
6217
|
type: header_renderType
|
|
6209
6218
|
};
|
|
6210
|
-
if (columnOpts.drag) {
|
|
6219
|
+
if (columnOpts.drag && columnDragOpts.animation) {
|
|
6211
6220
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6212
6221
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
6213
6222
|
tag: 'tr',
|
|
@@ -6406,7 +6415,8 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6406
6415
|
} = $xeTable.getRefMaps();
|
|
6407
6416
|
const {
|
|
6408
6417
|
computeTooltipOpts,
|
|
6409
|
-
computeColumnOpts
|
|
6418
|
+
computeColumnOpts,
|
|
6419
|
+
computeColumnDragOpts
|
|
6410
6420
|
} = $xeTable.getComputeMaps();
|
|
6411
6421
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
6412
6422
|
const refFooterTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -6589,11 +6599,13 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6589
6599
|
attrs.colspan = colspan;
|
|
6590
6600
|
}
|
|
6591
6601
|
}
|
|
6602
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
6592
6603
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
6593
6604
|
class: ['vxe-footer--column', column.id, {
|
|
6594
6605
|
[`col--${footAlign}`]: footAlign,
|
|
6595
6606
|
[`col--${type}`]: type,
|
|
6596
6607
|
'col--last': $columnIndex === tableColumn.length - 1,
|
|
6608
|
+
'fixed--width': !isAutoCellWidth,
|
|
6597
6609
|
'fixed--hidden': fixedHiddenColumn,
|
|
6598
6610
|
'col--ellipsis': hasEllipsis,
|
|
6599
6611
|
'col--current': currentColumn === column
|
|
@@ -6627,6 +6639,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6627
6639
|
isDragColMove
|
|
6628
6640
|
} = tableReactData;
|
|
6629
6641
|
const columnOpts = computeColumnOpts.value;
|
|
6642
|
+
const columnDragOpts = computeColumnDragOpts.value;
|
|
6630
6643
|
return footerTableData.map((row, $rowIndex) => {
|
|
6631
6644
|
const _rowIndex = $rowIndex;
|
|
6632
6645
|
const rowParams = {
|
|
@@ -6637,7 +6650,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
6637
6650
|
fixed: fixedType,
|
|
6638
6651
|
type: footer_renderType
|
|
6639
6652
|
};
|
|
6640
|
-
if (columnOpts.drag) {
|
|
6653
|
+
if (columnOpts.drag && columnDragOpts.animation) {
|
|
6641
6654
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
6642
6655
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
6643
6656
|
tag: 'tr',
|
|
@@ -21268,7 +21281,7 @@ let htmlCellElem;
|
|
|
21268
21281
|
const csvBOM = '\ufeff';
|
|
21269
21282
|
const enterSymbol = '\r\n';
|
|
21270
21283
|
function defaultFilterExportColumn(column) {
|
|
21271
|
-
return column.
|
|
21284
|
+
return column.field || ['seq', 'checkbox', 'radio'].indexOf(column.type) > -1;
|
|
21272
21285
|
}
|
|
21273
21286
|
const getConvertColumns = columns => {
|
|
21274
21287
|
const result = [];
|
|
@@ -21516,7 +21529,7 @@ function clearColumnConvert(columns) {
|
|
|
21516
21529
|
function checkImportData(columns, fields) {
|
|
21517
21530
|
const tableFields = [];
|
|
21518
21531
|
columns.forEach(column => {
|
|
21519
|
-
const field = column.
|
|
21532
|
+
const field = column.field;
|
|
21520
21533
|
if (field) {
|
|
21521
21534
|
tableFields.push(field);
|
|
21522
21535
|
}
|
|
@@ -21570,7 +21583,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
21570
21583
|
column,
|
|
21571
21584
|
options: opts,
|
|
21572
21585
|
$table: $xeTable
|
|
21573
|
-
}) : (opts.original ? column.
|
|
21586
|
+
}) : (opts.original ? column.field : column.getTitle()) || '';
|
|
21574
21587
|
}
|
|
21575
21588
|
const toBooleanValue = cellValue => {
|
|
21576
21589
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(cellValue) ? cellValue ? 'TRUE' : 'FALSE' : cellValue;
|
|
@@ -21686,7 +21699,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
21686
21699
|
if (!bodyExportMethod && renderOpts && renderOpts.name) {
|
|
21687
21700
|
const compConf = export_hook_renderer.get(renderOpts.name);
|
|
21688
21701
|
if (compConf) {
|
|
21689
|
-
bodyExportMethod = compConf.exportMethod;
|
|
21702
|
+
bodyExportMethod = compConf.tableExportMethod || compConf.exportMethod;
|
|
21690
21703
|
}
|
|
21691
21704
|
}
|
|
21692
21705
|
if (bodyExportMethod) {
|
|
@@ -22393,13 +22406,13 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
22393
22406
|
} else {
|
|
22394
22407
|
const colid = item.id || item.colId;
|
|
22395
22408
|
const type = item.type;
|
|
22396
|
-
const field = item.
|
|
22409
|
+
const field = item.field;
|
|
22397
22410
|
if (colid) {
|
|
22398
22411
|
return column.id === colid;
|
|
22399
22412
|
} else if (field && type) {
|
|
22400
|
-
return column.
|
|
22413
|
+
return column.field === field && column.type === type;
|
|
22401
22414
|
} else if (field) {
|
|
22402
|
-
return column.
|
|
22415
|
+
return column.field === field;
|
|
22403
22416
|
} else if (type) {
|
|
22404
22417
|
return column.type === type;
|
|
22405
22418
|
}
|
|
@@ -22493,18 +22506,31 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
22493
22506
|
mode,
|
|
22494
22507
|
columns,
|
|
22495
22508
|
original,
|
|
22496
|
-
beforeExportMethod
|
|
22509
|
+
beforeExportMethod,
|
|
22510
|
+
includeFields,
|
|
22511
|
+
excludeFields
|
|
22497
22512
|
} = opts;
|
|
22498
22513
|
let groups = [];
|
|
22499
22514
|
const customCols = columns && columns.length ? columns : null;
|
|
22500
22515
|
let columnFilterMethod = opts.columnFilterMethod;
|
|
22501
22516
|
// 如果设置源数据,则默认导出设置了字段的列
|
|
22502
22517
|
if (!customCols && !columnFilterMethod) {
|
|
22503
|
-
columnFilterMethod =
|
|
22518
|
+
columnFilterMethod = ({
|
|
22504
22519
|
column
|
|
22505
|
-
}) =>
|
|
22506
|
-
|
|
22507
|
-
|
|
22520
|
+
}) => {
|
|
22521
|
+
if (excludeFields) {
|
|
22522
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(excludeFields, column.field)) {
|
|
22523
|
+
return false;
|
|
22524
|
+
}
|
|
22525
|
+
}
|
|
22526
|
+
if (includeFields) {
|
|
22527
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(includeFields, column.field)) {
|
|
22528
|
+
return true;
|
|
22529
|
+
}
|
|
22530
|
+
return false;
|
|
22531
|
+
}
|
|
22532
|
+
return original ? column.field : defaultFilterExportColumn(column);
|
|
22533
|
+
};
|
|
22508
22534
|
}
|
|
22509
22535
|
if (customCols) {
|
|
22510
22536
|
opts._isCustomColumn = true;
|
|
@@ -22518,11 +22544,11 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
22518
22544
|
} else {
|
|
22519
22545
|
const colid = item.id || item.colId;
|
|
22520
22546
|
const type = item.type;
|
|
22521
|
-
const field = item.
|
|
22547
|
+
const field = item.field;
|
|
22522
22548
|
if (colid) {
|
|
22523
22549
|
targetColumn = $xeTable.getColumnById(colid);
|
|
22524
22550
|
} else if (field && type) {
|
|
22525
|
-
targetColumn = tableFullColumn.find(column => column.
|
|
22551
|
+
targetColumn = tableFullColumn.find(column => column.field === field && column.type === type);
|
|
22526
22552
|
} else if (field) {
|
|
22527
22553
|
targetColumn = $xeTable.getColumnByField(field);
|
|
22528
22554
|
} else if (type) {
|
|
@@ -24946,7 +24972,8 @@ render_renderer.mixin({
|
|
|
24946
24972
|
row,
|
|
24947
24973
|
column
|
|
24948
24974
|
} = params;
|
|
24949
|
-
const
|
|
24975
|
+
const inputConfig = render_getConfig().input || {};
|
|
24976
|
+
const digits = props.digits || inputConfig.digits || 2;
|
|
24950
24977
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
24951
24978
|
if (cellValue) {
|
|
24952
24979
|
switch (props.type) {
|
|
@@ -24984,14 +25011,19 @@ render_renderer.mixin({
|
|
|
24984
25011
|
} = props;
|
|
24985
25012
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
24986
25013
|
if (cellValue) {
|
|
25014
|
+
const numberInputConfig = render_getConfig().numberInput || {};
|
|
24987
25015
|
if (type === 'float') {
|
|
24988
|
-
const digits = props.digits ||
|
|
25016
|
+
const digits = props.digits || numberInputConfig.digits || 1;
|
|
24989
25017
|
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
|
|
24990
25018
|
} else if (type === 'amount') {
|
|
24991
|
-
const digits = props.digits ||
|
|
25019
|
+
const digits = props.digits || numberInputConfig.digits || 2;
|
|
24992
25020
|
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue), {
|
|
24993
25021
|
digits
|
|
24994
25022
|
});
|
|
25023
|
+
const showCurrency = props.showCurrency;
|
|
25024
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showCurrency) ? showCurrency : numberInputConfig.showCurrency) {
|
|
25025
|
+
cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
|
|
25026
|
+
}
|
|
24995
25027
|
}
|
|
24996
25028
|
}
|
|
24997
25029
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
@@ -25011,11 +25043,12 @@ render_renderer.mixin({
|
|
|
25011
25043
|
// 兼容老模式
|
|
25012
25044
|
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(row) ? row[_columnIndex] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
25013
25045
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(cellValue)) {
|
|
25046
|
+
const numberInputConfig = render_getConfig().numberInput || {};
|
|
25014
25047
|
if (type === 'float') {
|
|
25015
|
-
const digits = props.digits ||
|
|
25048
|
+
const digits = props.digits || numberInputConfig.digits || 1;
|
|
25016
25049
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
|
|
25017
25050
|
} else if (type === 'amount') {
|
|
25018
|
-
const digits = props.digits ||
|
|
25051
|
+
const digits = props.digits || numberInputConfig.digits || 2;
|
|
25019
25052
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue), {
|
|
25020
25053
|
digits
|
|
25021
25054
|
});
|
|
@@ -25025,7 +25058,15 @@ render_renderer.mixin({
|
|
|
25025
25058
|
},
|
|
25026
25059
|
renderTableDefault: defaultEditRender,
|
|
25027
25060
|
renderTableFilter: defaultFilterRender,
|
|
25028
|
-
tableFilterDefaultMethod: handleInputFilterMethod
|
|
25061
|
+
tableFilterDefaultMethod: handleInputFilterMethod,
|
|
25062
|
+
tableExportMethod(params) {
|
|
25063
|
+
const {
|
|
25064
|
+
row,
|
|
25065
|
+
column
|
|
25066
|
+
} = params;
|
|
25067
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
25068
|
+
return cellValue;
|
|
25069
|
+
}
|
|
25029
25070
|
},
|
|
25030
25071
|
VxeDatePicker: {
|
|
25031
25072
|
tableAutoFocus: 'input',
|
|
@@ -27792,6 +27833,9 @@ const Grid = VxeGrid;
|
|
|
27792
27833
|
}
|
|
27793
27834
|
}
|
|
27794
27835
|
},
|
|
27836
|
+
numberInput: {
|
|
27837
|
+
currencySymbol: '¥'
|
|
27838
|
+
},
|
|
27795
27839
|
imagePreview: {
|
|
27796
27840
|
popupTitle: '预览',
|
|
27797
27841
|
operBtn: {
|