vxe-table 3.11.36 → 3.11.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/style.css +1 -1
- package/es/table/src/body.js +4 -4
- package/es/table/src/footer.js +4 -2
- package/es/table/src/header.js +4 -2
- package/es/table/src/methods.js +1 -1
- package/es/table/src/table.js +6 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +20 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/body.js +4 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +4 -1
- 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/src/methods.js +1 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +5 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/src/body.ts +4 -3
- package/packages/table/src/footer.ts +4 -2
- package/packages/table/src/header.ts +4 -2
- package/packages/table/src/methods.ts +1 -1
- package/packages/table/src/table.ts +6 -3
- /package/es/{iconfont.1734659093549.ttf → iconfont.1734680280915.ttf} +0 -0
- /package/es/{iconfont.1734659093549.woff → iconfont.1734680280915.woff} +0 -0
- /package/es/{iconfont.1734659093549.woff2 → iconfont.1734680280915.woff2} +0 -0
- /package/lib/{iconfont.1734659093549.ttf → iconfont.1734680280915.ttf} +0 -0
- /package/lib/{iconfont.1734659093549.woff → iconfont.1734680280915.woff} +0 -0
- /package/lib/{iconfont.1734659093549.woff2 → iconfont.1734680280915.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -708,8 +708,10 @@ export default {
|
|
|
708
708
|
}
|
|
709
709
|
return false;
|
|
710
710
|
},
|
|
711
|
-
|
|
712
|
-
const
|
|
711
|
+
computeTableBorder() {
|
|
712
|
+
const $xeTable = this;
|
|
713
|
+
const props = $xeTable;
|
|
714
|
+
const { border } = props;
|
|
713
715
|
if (border === true) {
|
|
714
716
|
return 'full';
|
|
715
717
|
}
|
|
@@ -1160,11 +1162,12 @@ export default {
|
|
|
1160
1162
|
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip');
|
|
1161
1163
|
const $xeTable = this;
|
|
1162
1164
|
const $xeGrid = $xeTable.$xeGrid;
|
|
1163
|
-
const { _e, $scopedSlots, tId, isCalcColumn, tableData, tableColumn, tableGroupColumn, isGroup, loading, stripe, showHeader, height,
|
|
1165
|
+
const { _e, $scopedSlots, tId, isCalcColumn, tableData, tableColumn, tableGroupColumn, isGroup, loading, stripe, showHeader, height, treeOpts, treeConfig, mouseConfig, mouseOpts, areaOpts, computeSize, validOpts, showFooter, overflowX, overflowY, scrollXLoad, scrollYLoad, scrollbarHeight, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, validTipOpts, initStore, columnStore, filterStore, customStore, ctxMenuStore, ctxMenuOpts, footerTableData, columnOpts, rowOpts, checkboxOpts, loadingOpts, resizableOpts, editRules } = $xeTable;
|
|
1164
1166
|
const { leftList, rightList } = columnStore;
|
|
1165
1167
|
const loadingSlot = $scopedSlots.loading;
|
|
1166
1168
|
const currLoading = this._isLoading || loading;
|
|
1167
1169
|
const vSize = computeSize;
|
|
1170
|
+
const tableBorder = $xeTable.computeTableBorder;
|
|
1168
1171
|
const virtualScrollBars = $xeTable.computeVirtualScrollBars;
|
|
1169
1172
|
const isArea = mouseConfig && mouseOpts.area;
|
|
1170
1173
|
const tableStyle = $xeTable.computeTableStyle;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.11.
|
|
2223
|
+
const version = "3.11.37";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2793,7 +2793,7 @@ function isNodeElement(elem) {
|
|
|
2793
2793
|
const {
|
|
2794
2794
|
log: log_log
|
|
2795
2795
|
} = core_.VxeUI;
|
|
2796
|
-
const log_version = `table v${"3.11.
|
|
2796
|
+
const log_version = `table v${"3.11.37"}`;
|
|
2797
2797
|
const warnLog = log_log.create('warn', log_version);
|
|
2798
2798
|
const errLog = log_log.create('error', log_version);
|
|
2799
2799
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -12918,7 +12918,7 @@ const Methods = {
|
|
|
12918
12918
|
const {
|
|
12919
12919
|
visibleSize
|
|
12920
12920
|
} = scrollYStore;
|
|
12921
|
-
const fpsTime = Math.min(80, Math.floor(visibleSize
|
|
12921
|
+
const fpsTime = Math.min(80, Math.floor(visibleSize));
|
|
12922
12922
|
if (lyTimeout) {
|
|
12923
12923
|
clearTimeout(lyTimeout);
|
|
12924
12924
|
}
|
|
@@ -14070,7 +14070,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
14070
14070
|
'col--valid-error': !!errorValidItem,
|
|
14071
14071
|
'col--current': currentColumn === column
|
|
14072
14072
|
}, getClass(compCellClassName, params), getClass(className, params), getClass(allCellClassName, params)],
|
|
14073
|
-
key: columnKey || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? column.id : $columnIndex,
|
|
14073
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? column.id : $columnIndex,
|
|
14074
14074
|
attrs,
|
|
14075
14075
|
style: Object.assign({
|
|
14076
14076
|
height: cellHeight
|
|
@@ -14094,6 +14094,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
14094
14094
|
expandOpts,
|
|
14095
14095
|
editOpts,
|
|
14096
14096
|
treeExpandedMaps,
|
|
14097
|
+
scrollXLoad,
|
|
14097
14098
|
scrollYLoad,
|
|
14098
14099
|
rowExpandedMaps,
|
|
14099
14100
|
radioOpts,
|
|
@@ -14208,7 +14209,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
14208
14209
|
rowid
|
|
14209
14210
|
},
|
|
14210
14211
|
style: rowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
|
|
14211
|
-
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
14212
|
+
key: rowKey || scrollXLoad || scrollYLoad || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
14212
14213
|
nativeOn: trOn
|
|
14213
14214
|
}, tdVNs) : h('tr', {
|
|
14214
14215
|
class: trClass,
|
|
@@ -14216,7 +14217,7 @@ function renderRows(h, _vm, $xeTable, fixedType, tableData, tableColumn) {
|
|
|
14216
14217
|
rowid
|
|
14217
14218
|
},
|
|
14218
14219
|
style: rowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
|
|
14219
|
-
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
14220
|
+
key: rowKey || scrollXLoad || scrollYLoad || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
14220
14221
|
on: trOn
|
|
14221
14222
|
}, tdVNs));
|
|
14222
14223
|
// 如果行被展开了
|
|
@@ -14722,6 +14723,7 @@ const header_renderRows = (h, _vm, cols, $rowIndex) => {
|
|
|
14722
14723
|
align: allAlign,
|
|
14723
14724
|
currentColumn,
|
|
14724
14725
|
scrollXLoad,
|
|
14726
|
+
scrollYLoad,
|
|
14725
14727
|
overflowX,
|
|
14726
14728
|
scrollbarWidth,
|
|
14727
14729
|
mouseConfig,
|
|
@@ -14820,7 +14822,7 @@ const header_renderRows = (h, _vm, cols, $rowIndex) => {
|
|
|
14820
14822
|
attrs: thAttrs,
|
|
14821
14823
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle : null,
|
|
14822
14824
|
on: thOns,
|
|
14823
|
-
key: columnKey || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
14825
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
14824
14826
|
}, [h('div', {
|
|
14825
14827
|
class: ['vxe-cell', {
|
|
14826
14828
|
'c--title': showTitle,
|
|
@@ -14868,6 +14870,7 @@ function renderHeads(h, _vm, headerGroups) {
|
|
|
14868
14870
|
};
|
|
14869
14871
|
if (columnOpts.drag && columnDragOpts.animation) {
|
|
14870
14872
|
return h('transition-group', {
|
|
14873
|
+
key: $rowIndex,
|
|
14871
14874
|
props: {
|
|
14872
14875
|
tag: 'tr',
|
|
14873
14876
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -14877,6 +14880,7 @@ function renderHeads(h, _vm, headerGroups) {
|
|
|
14877
14880
|
}, header_renderRows(h, _vm, cols, $rowIndex));
|
|
14878
14881
|
}
|
|
14879
14882
|
return h('tr', {
|
|
14883
|
+
key: $rowIndex,
|
|
14880
14884
|
class: ['vxe-header--row', headerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ''],
|
|
14881
14885
|
style: headerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle : null
|
|
14882
14886
|
}, header_renderRows(h, _vm, cols, $rowIndex));
|
|
@@ -15210,6 +15214,7 @@ function footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex,
|
|
|
15210
15214
|
showFooterOverflow: allColumnFooterOverflow,
|
|
15211
15215
|
currentColumn,
|
|
15212
15216
|
overflowX,
|
|
15217
|
+
scrollYLoad,
|
|
15213
15218
|
scrollbarWidth,
|
|
15214
15219
|
tooltipOpts
|
|
15215
15220
|
} = $xetable;
|
|
@@ -15339,7 +15344,7 @@ function footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex,
|
|
|
15339
15344
|
attrs,
|
|
15340
15345
|
style: footerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle : null,
|
|
15341
15346
|
on: tfOns,
|
|
15342
|
-
key: columnKey || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
|
|
15347
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
|
|
15343
15348
|
}, [h('div', {
|
|
15344
15349
|
class: ['vxe-cell', {
|
|
15345
15350
|
'c--title': showTitle,
|
|
@@ -15378,6 +15383,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
|
|
|
15378
15383
|
};
|
|
15379
15384
|
if (columnOpts.drag && columnDragOpts.animation) {
|
|
15380
15385
|
return h('transition-group', {
|
|
15386
|
+
key: $rowIndex,
|
|
15381
15387
|
props: {
|
|
15382
15388
|
tag: 'tr',
|
|
15383
15389
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -15387,6 +15393,7 @@ function footer_renderHeads(h, _vm, footerTableData) {
|
|
|
15387
15393
|
}, footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex, _rowIndex));
|
|
15388
15394
|
}
|
|
15389
15395
|
return h('tr', {
|
|
15396
|
+
key: $rowIndex,
|
|
15390
15397
|
class: ['vxe-footer--row', footerRowClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
|
|
15391
15398
|
style: footerRowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
|
|
15392
15399
|
}, footer_renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex, _rowIndex));
|
|
@@ -23823,10 +23830,12 @@ function handleUupdateResize(_vm) {
|
|
|
23823
23830
|
}
|
|
23824
23831
|
return false;
|
|
23825
23832
|
},
|
|
23826
|
-
|
|
23833
|
+
computeTableBorder() {
|
|
23834
|
+
const $xeTable = this;
|
|
23835
|
+
const props = $xeTable;
|
|
23827
23836
|
const {
|
|
23828
23837
|
border
|
|
23829
|
-
} =
|
|
23838
|
+
} = props;
|
|
23830
23839
|
if (border === true) {
|
|
23831
23840
|
return 'full';
|
|
23832
23841
|
}
|
|
@@ -24325,7 +24334,6 @@ function handleUupdateResize(_vm) {
|
|
|
24325
24334
|
stripe,
|
|
24326
24335
|
showHeader,
|
|
24327
24336
|
height,
|
|
24328
|
-
tableBorder,
|
|
24329
24337
|
treeOpts,
|
|
24330
24338
|
treeConfig,
|
|
24331
24339
|
mouseConfig,
|
|
@@ -24365,6 +24373,7 @@ function handleUupdateResize(_vm) {
|
|
|
24365
24373
|
const loadingSlot = $scopedSlots.loading;
|
|
24366
24374
|
const currLoading = this._isLoading || loading;
|
|
24367
24375
|
const vSize = computeSize;
|
|
24376
|
+
const tableBorder = $xeTable.computeTableBorder;
|
|
24368
24377
|
const virtualScrollBars = $xeTable.computeVirtualScrollBars;
|
|
24369
24378
|
const isArea = mouseConfig && mouseOpts.area;
|
|
24370
24379
|
const tableStyle = $xeTable.computeTableStyle;
|