vxe-table 4.20.7 → 4.20.9
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/dist/all.esm.js +67 -36
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/grid/src/grid.js +11 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/hook.js +3 -3
- package/es/table/src/body.js +3 -3
- package/es/table/src/cell.js +2 -2
- package/es/table/src/footer.js +3 -3
- package/es/table/src/header.js +3 -3
- package/es/table/src/table.js +33 -19
- package/es/table/src/util.js +5 -1
- package/es/table/style.css +22 -12
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +3 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +22 -12
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +15 -0
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +57 -33
- 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/export/hook.js +3 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/body.js +3 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +2 -2
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +3 -3
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +3 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +19 -16
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +5 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +22 -12
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -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/lib/vxe-table/style/style.css +22 -12
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +11 -0
- package/packages/table/module/export/hook.ts +3 -3
- package/packages/table/src/body.ts +3 -3
- package/packages/table/src/cell.ts +2 -2
- package/packages/table/src/footer.ts +3 -3
- package/packages/table/src/header.ts +3 -3
- package/packages/table/src/table.ts +33 -19
- package/packages/table/src/util.ts +5 -1
- package/packages/ui/index.ts +2 -0
- package/styles/components/table.scss +24 -6
- package/styles/theme/base.scss +0 -1
- /package/es/{iconfont.1784868296497.ttf → iconfont.1785242738274.ttf} +0 -0
- /package/es/{iconfont.1784868296497.woff → iconfont.1785242738274.woff} +0 -0
- /package/es/{iconfont.1784868296497.woff2 → iconfont.1785242738274.woff2} +0 -0
- /package/lib/{iconfont.1784868296497.ttf → iconfont.1785242738274.ttf} +0 -0
- /package/lib/{iconfont.1784868296497.woff → iconfont.1785242738274.woff} +0 -0
- /package/lib/{iconfont.1784868296497.woff2 → iconfont.1785242738274.woff2} +0 -0
|
@@ -1285,7 +1285,7 @@ hooks.add('tableExportModule', {
|
|
|
1285
1285
|
const isColGroup = column.children && column.children.length > 0;
|
|
1286
1286
|
let isChecked = false;
|
|
1287
1287
|
const isExtraChecked = extraFdMaps[column.field];
|
|
1288
|
-
if (columns
|
|
1288
|
+
if (columns) {
|
|
1289
1289
|
isChecked = handleFilterColumns(defOpts, column, columns);
|
|
1290
1290
|
}
|
|
1291
1291
|
else if (excludeFields || includeFields) {
|
|
@@ -1438,7 +1438,7 @@ hooks.add('tableExportModule', {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
let isCustomCol = false;
|
|
1440
1440
|
let customCols = [];
|
|
1441
|
-
if (columns
|
|
1441
|
+
if (columns) {
|
|
1442
1442
|
isCustomCol = true;
|
|
1443
1443
|
customCols = XEUtils.searchTree(columns, () => true, { children: 'children', mapChildren: 'childNodes', original: true });
|
|
1444
1444
|
}
|
|
@@ -1447,7 +1447,7 @@ hooks.add('tableExportModule', {
|
|
|
1447
1447
|
const isColGroup = column.children && column.children.length > 0;
|
|
1448
1448
|
let isChecked = false;
|
|
1449
1449
|
const isExtraChecked = extraFdMaps[column.field];
|
|
1450
|
-
if (columns
|
|
1450
|
+
if (columns) {
|
|
1451
1451
|
isChecked = handleFilterColumns(opts, column, columns);
|
|
1452
1452
|
}
|
|
1453
1453
|
else if (excludeFields || includeFields) {
|
package/es/table/src/body.js
CHANGED
|
@@ -137,9 +137,9 @@ export default defineVxeComponent({
|
|
|
137
137
|
let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
|
|
138
138
|
const isCellPadding = XEUtils.eqNull(padding) ? (allPadding === null ? cellOpts.padding : allPadding) : padding;
|
|
139
139
|
const cellOverflow = XEUtils.eqNull(showOverflow) ? allShowOverflow : showOverflow;
|
|
140
|
-
const showEllipsis = cellOverflow === 'ellipsis';
|
|
141
|
-
const showTitle = cellOverflow === 'title';
|
|
142
|
-
const showTooltip = cellOverflow === true ? tooltipOpts.mode
|
|
140
|
+
const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'ellipsis';
|
|
141
|
+
const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'title';
|
|
142
|
+
const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === 'tooltip';
|
|
143
143
|
const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis;
|
|
144
144
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
|
|
145
145
|
const isCsHeight = !!customCellHeight;
|
package/es/table/src/cell.js
CHANGED
|
@@ -169,8 +169,8 @@ function renderTitleContent(params, content) {
|
|
|
169
169
|
const headerTooltipOpts = computeHeaderTooltipOpts.value;
|
|
170
170
|
const showAllTip = headerTooltipOpts.showAll;
|
|
171
171
|
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
172
|
-
const showTitle = headOverflow === 'title';
|
|
173
|
-
const showTooltip = headOverflow === true
|
|
172
|
+
const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title';
|
|
173
|
+
const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip';
|
|
174
174
|
const ons = {};
|
|
175
175
|
if (showTitle || showTooltip || showAllTip) {
|
|
176
176
|
ons.onMouseenter = (evnt) => {
|
package/es/table/src/footer.js
CHANGED
|
@@ -64,9 +64,9 @@ export default defineVxeComponent({
|
|
|
64
64
|
const isPadding = XEUtils.isBoolean(footerCellOpts.padding) ? footerCellOpts.padding : cellOpts.padding;
|
|
65
65
|
const footOverflow = XEUtils.eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow;
|
|
66
66
|
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
67
|
-
const showEllipsis = footOverflow === 'ellipsis';
|
|
68
|
-
const showTitle = footOverflow === 'title';
|
|
69
|
-
const showTooltip = footOverflow === true ? footerTooltipOpts.mode
|
|
67
|
+
const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'ellipsis';
|
|
68
|
+
const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'title';
|
|
69
|
+
const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'tooltip';
|
|
70
70
|
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
71
71
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
|
|
72
72
|
const attrs = { colid };
|
package/es/table/src/header.js
CHANGED
|
@@ -76,9 +76,9 @@ export default defineVxeComponent({
|
|
|
76
76
|
const isPadding = XEUtils.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
|
|
77
77
|
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
78
78
|
const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
|
|
79
|
-
const showEllipsis = headOverflow === 'ellipsis';
|
|
80
|
-
const showTitle = headOverflow === 'title';
|
|
81
|
-
const showTooltip = headOverflow === true ? headerTooltipOpts.mode
|
|
79
|
+
const showEllipsis = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'ellipsis';
|
|
80
|
+
const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title';
|
|
81
|
+
const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip';
|
|
82
82
|
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
83
83
|
let hasFilter = false;
|
|
84
84
|
let firstFilterOption = null;
|
package/es/table/src/table.js
CHANGED
|
@@ -1488,8 +1488,8 @@ export default defineVxeComponent({
|
|
|
1488
1488
|
const handleCustomRestore = (storeData) => {
|
|
1489
1489
|
const { aggregateConfig, rowGroupConfig } = props;
|
|
1490
1490
|
const { collectColumn } = internalData;
|
|
1491
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable);
|
|
1492
|
-
let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData } = storeData;
|
|
1491
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable);
|
|
1492
|
+
let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData, pagerData } = storeData;
|
|
1493
1493
|
// 处理还原
|
|
1494
1494
|
if ((isCustomAlign && alignData) ||
|
|
1495
1495
|
(isCustomHeaderAlign && headerAlignData) ||
|
|
@@ -1499,7 +1499,8 @@ export default defineVxeComponent({
|
|
|
1499
1499
|
(isCustomVisible && visibleData) ||
|
|
1500
1500
|
(isCustomFixed && fixedData) ||
|
|
1501
1501
|
(isCustomAggGroup && aggGroupData) ||
|
|
1502
|
-
(isCustomAggFunc && aggFuncData)
|
|
1502
|
+
(isCustomAggFunc && aggFuncData) ||
|
|
1503
|
+
(isCustomPager && pagerData && $xeGGWrapper)) {
|
|
1503
1504
|
const sortColMaps = {};
|
|
1504
1505
|
if (isCustomSort && sortData) {
|
|
1505
1506
|
// 转换兼容老版本数据,即将废弃兼容
|
|
@@ -1820,7 +1821,7 @@ export default defineVxeComponent({
|
|
|
1820
1821
|
const autoWidthColumnList = computeAutoWidthColumnList.value;
|
|
1821
1822
|
const { fullColumnIdData } = internalData;
|
|
1822
1823
|
const el = refElem.value;
|
|
1823
|
-
if (el) {
|
|
1824
|
+
if (el && autoWidthColumnList.length) {
|
|
1824
1825
|
el.setAttribute('data-calc-col', 'Y');
|
|
1825
1826
|
autoWidthColumnList.forEach(column => {
|
|
1826
1827
|
const colid = column.id;
|
|
@@ -2105,7 +2106,7 @@ export default defineVxeComponent({
|
|
|
2105
2106
|
const fullMaps = {};
|
|
2106
2107
|
let rowNum = 0;
|
|
2107
2108
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
2108
|
-
XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
2109
|
+
XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
|
|
2109
2110
|
const rowid = handleGetRowId(row);
|
|
2110
2111
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
2111
2112
|
const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('');
|
|
@@ -2113,10 +2114,11 @@ export default defineVxeComponent({
|
|
|
2113
2114
|
rowRest.seq = seq;
|
|
2114
2115
|
rowRest._seq = rowNum;
|
|
2115
2116
|
rowRest.treeIndex = index;
|
|
2117
|
+
rowRest._index = rowNum;
|
|
2116
2118
|
rowRest._tIndex = rowNum;
|
|
2117
2119
|
}
|
|
2118
2120
|
else {
|
|
2119
|
-
const rest = { row, rowid, _seq: rowNum, seq, index
|
|
2121
|
+
const rest = { row, rowid, _seq: rowNum, seq, index, $index: -1, _index: rowNum, treeIndex: index, _tIndex: rowNum, items, parent: parentRow, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
2120
2122
|
fullAllDataRowIdData[rowid] = rest;
|
|
2121
2123
|
fullDataRowIdData[rowid] = rest;
|
|
2122
2124
|
}
|
|
@@ -3329,7 +3331,7 @@ export default defineVxeComponent({
|
|
|
3329
3331
|
if (reWidth) {
|
|
3330
3332
|
calcCellWidth();
|
|
3331
3333
|
}
|
|
3332
|
-
if (reFull) {
|
|
3334
|
+
if (reWidth || reFull) {
|
|
3333
3335
|
autoCellWidth();
|
|
3334
3336
|
}
|
|
3335
3337
|
calcScrollbar();
|
|
@@ -3344,7 +3346,7 @@ export default defineVxeComponent({
|
|
|
3344
3346
|
if (reWidth) {
|
|
3345
3347
|
calcCellWidth();
|
|
3346
3348
|
}
|
|
3347
|
-
if (reFull) {
|
|
3349
|
+
if (reWidth || reFull) {
|
|
3348
3350
|
autoCellWidth();
|
|
3349
3351
|
}
|
|
3350
3352
|
if (reHeight) {
|
|
@@ -3436,7 +3438,7 @@ export default defineVxeComponent({
|
|
|
3436
3438
|
return;
|
|
3437
3439
|
}
|
|
3438
3440
|
internalData.rsePending = true;
|
|
3439
|
-
handleLazyRecalculate(
|
|
3441
|
+
handleLazyRecalculate(false, true, true, {
|
|
3440
3442
|
minRunDelay: 200
|
|
3441
3443
|
}).then(() => {
|
|
3442
3444
|
internalData.rsePending = false;
|
|
@@ -4686,12 +4688,12 @@ export default defineVxeComponent({
|
|
|
4686
4688
|
return;
|
|
4687
4689
|
}
|
|
4688
4690
|
const expandOpts = computeExpandOpts.value;
|
|
4689
|
-
const rowOpts = computeRowOpts.value;
|
|
4690
|
-
const cellOpts = computeCellOpts.value;
|
|
4691
|
-
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
4692
4691
|
const { mode } = expandOpts;
|
|
4693
4692
|
if (expandColumn && mode === 'fixed') {
|
|
4694
4693
|
const { elemStore, fullAllDataRowIdData } = internalData;
|
|
4694
|
+
const rowOpts = computeRowOpts.value;
|
|
4695
|
+
const cellOpts = computeCellOpts.value;
|
|
4696
|
+
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
4695
4697
|
const rowExpandEl = refRowExpandElem.value;
|
|
4696
4698
|
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
4697
4699
|
if (rowExpandEl && bodyScrollElem) {
|
|
@@ -8058,7 +8060,7 @@ export default defineVxeComponent({
|
|
|
8058
8060
|
const { isRowGroupStatus, rowGroupList } = reactData;
|
|
8059
8061
|
const { fullColumnFieldData, collectColumn } = internalData;
|
|
8060
8062
|
const { storage, checkMethod } = customOpts;
|
|
8061
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable);
|
|
8063
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable);
|
|
8062
8064
|
const alignData = {};
|
|
8063
8065
|
const headerAlignData = {};
|
|
8064
8066
|
const footerAlignData = {};
|
|
@@ -8069,6 +8071,7 @@ export default defineVxeComponent({
|
|
|
8069
8071
|
const aggGroupData = {};
|
|
8070
8072
|
const aggFuncData = {};
|
|
8071
8073
|
const storeData = {
|
|
8074
|
+
pagerData: isCustomPager && $xeGGWrapper && $xeGGWrapper.getCustomPagerData ? $xeGGWrapper.getCustomPagerData() : undefined,
|
|
8072
8075
|
alignData: undefined,
|
|
8073
8076
|
headerAlignData: undefined,
|
|
8074
8077
|
footerAlignData: undefined,
|
|
@@ -8929,8 +8932,10 @@ export default defineVxeComponent({
|
|
|
8929
8932
|
if (!el || !el.clientWidth) {
|
|
8930
8933
|
return;
|
|
8931
8934
|
}
|
|
8935
|
+
if (internalData.rsePending) {
|
|
8936
|
+
return;
|
|
8937
|
+
}
|
|
8932
8938
|
handleResizeEvent();
|
|
8933
|
-
$xeTable.updateCellAreas();
|
|
8934
8939
|
};
|
|
8935
8940
|
const handleTargetEnterEvent = (isClear) => {
|
|
8936
8941
|
const $tooltip = refTooltip.value;
|
|
@@ -10058,7 +10063,7 @@ export default defineVxeComponent({
|
|
|
10058
10063
|
const tableId = computeTableId.value;
|
|
10059
10064
|
const customOpts = computeCustomOpts.value;
|
|
10060
10065
|
const { updateStore, storage } = customOpts;
|
|
10061
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable);
|
|
10066
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable);
|
|
10062
10067
|
if (type !== 'reset') {
|
|
10063
10068
|
// fix:修复拖动列宽,重置按钮无法点击的问题
|
|
10064
10069
|
reactData.isCustomStatus = true;
|
|
@@ -10073,13 +10078,15 @@ export default defineVxeComponent({
|
|
|
10073
10078
|
isCustomFixed ||
|
|
10074
10079
|
isCustomSort ||
|
|
10075
10080
|
isCustomAggGroup ||
|
|
10076
|
-
isCustomAggFunc
|
|
10081
|
+
isCustomAggFunc ||
|
|
10082
|
+
isCustomPager)) {
|
|
10077
10083
|
if (!tableId) {
|
|
10078
10084
|
errLog('vxe.error.reqProp', ['id']);
|
|
10079
10085
|
return nextTick();
|
|
10080
10086
|
}
|
|
10081
10087
|
const storeData = type === 'reset'
|
|
10082
10088
|
? {
|
|
10089
|
+
pagerData: {},
|
|
10083
10090
|
alignData: {},
|
|
10084
10091
|
headerAlignData: {},
|
|
10085
10092
|
footerAlignData: {},
|
|
@@ -11422,6 +11429,7 @@ export default defineVxeComponent({
|
|
|
11422
11429
|
status: false
|
|
11423
11430
|
};
|
|
11424
11431
|
if (!(el && prevDragRow && dragRow)) {
|
|
11432
|
+
handleRowDragEndClearStatus();
|
|
11425
11433
|
return Promise.resolve(errRest);
|
|
11426
11434
|
}
|
|
11427
11435
|
// 判断是否有拖动
|
|
@@ -11525,6 +11533,9 @@ export default defineVxeComponent({
|
|
|
11525
11533
|
}
|
|
11526
11534
|
}
|
|
11527
11535
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild;
|
|
11536
|
+
if (dEndMethod) {
|
|
11537
|
+
handleRowDragEndClearStatus();
|
|
11538
|
+
}
|
|
11528
11539
|
return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
|
|
11529
11540
|
if (!status) {
|
|
11530
11541
|
return errRest;
|
|
@@ -11819,6 +11830,9 @@ export default defineVxeComponent({
|
|
|
11819
11830
|
const errRest = {
|
|
11820
11831
|
status: false
|
|
11821
11832
|
};
|
|
11833
|
+
if (dragEndMethod) {
|
|
11834
|
+
handleRowDragEndClearStatus();
|
|
11835
|
+
}
|
|
11822
11836
|
Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
|
|
11823
11837
|
if (!status) {
|
|
11824
11838
|
if ($oldTable) {
|
|
@@ -14417,9 +14431,9 @@ export default defineVxeComponent({
|
|
|
14417
14431
|
// if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
|
|
14418
14432
|
// warnLog('vxe.error.reqProp', ['show-overflow'])
|
|
14419
14433
|
// }
|
|
14420
|
-
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
14421
|
-
|
|
14422
|
-
}
|
|
14434
|
+
// if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
14435
|
+
// warnLog('vxe.error.noTree', ['stripe'])
|
|
14436
|
+
// }
|
|
14423
14437
|
if (treeConfig && !treeOpts.transform) {
|
|
14424
14438
|
if (sortOpts.isDeep) {
|
|
14425
14439
|
warnLog('vxe.error.reqSupportProp', ['transform=false', 'sort-config.isDeep=false']);
|
package/es/table/src/util.js
CHANGED
|
@@ -146,6 +146,8 @@ export function createInternalData() {
|
|
|
146
146
|
tooltipTimeout: null,
|
|
147
147
|
initStatus: false,
|
|
148
148
|
isActivated: false,
|
|
149
|
+
// rceTimeout: undefined,
|
|
150
|
+
// rceRunTime: undefined,
|
|
149
151
|
rceDelay: 0
|
|
150
152
|
// _sToTime: null
|
|
151
153
|
};
|
|
@@ -1039,6 +1041,7 @@ export function handleCustomStoreConfig($xeTable) {
|
|
|
1039
1041
|
const isCustomSort = hangleBolleanDefaultValue(storageOpts.sort, isAllCustom);
|
|
1040
1042
|
const isCustomAggGroup = hangleBolleanDefaultValue(storageOpts.aggGroup, isAllCustom);
|
|
1041
1043
|
const isCustomAggFunc = hangleBolleanDefaultValue(storageOpts.aggFunc, isAllCustom);
|
|
1044
|
+
const isCustomPager = hangleBolleanDefaultValue(storageOpts.pager, isAllCustom);
|
|
1042
1045
|
return {
|
|
1043
1046
|
isCustomAlign,
|
|
1044
1047
|
isCustomHeaderAlign,
|
|
@@ -1048,6 +1051,7 @@ export function handleCustomStoreConfig($xeTable) {
|
|
|
1048
1051
|
isCustomFixed,
|
|
1049
1052
|
isCustomSort,
|
|
1050
1053
|
isCustomAggGroup,
|
|
1051
|
-
isCustomAggFunc
|
|
1054
|
+
isCustomAggFunc,
|
|
1055
|
+
isCustomPager
|
|
1052
1056
|
};
|
|
1053
1057
|
}
|
package/es/table/style.css
CHANGED
|
@@ -1832,6 +1832,25 @@
|
|
|
1832
1832
|
display: block;
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
|
+
.vxe-table {
|
|
1836
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-default);
|
|
1837
|
+
}
|
|
1838
|
+
.vxe-table.size--xlarge {
|
|
1839
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-xlarge);
|
|
1840
|
+
}
|
|
1841
|
+
.vxe-table.size--large {
|
|
1842
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-large);
|
|
1843
|
+
}
|
|
1844
|
+
.vxe-table.size--medium {
|
|
1845
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-medium);
|
|
1846
|
+
}
|
|
1847
|
+
.vxe-table.size--small {
|
|
1848
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-small);
|
|
1849
|
+
}
|
|
1850
|
+
.vxe-table.size--mini {
|
|
1851
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-mini);
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1835
1854
|
.vxe-table-slots,
|
|
1836
1855
|
.vxe-table--file-form {
|
|
1837
1856
|
display: none;
|
|
@@ -2961,7 +2980,7 @@
|
|
|
2961
2980
|
/*table*/
|
|
2962
2981
|
.vxe-table--render-default {
|
|
2963
2982
|
position: relative;
|
|
2964
|
-
font-size: var(--vxe-ui-font-size
|
|
2983
|
+
font-size: var(--vxe-ui-table-current-font-size);
|
|
2965
2984
|
color: var(--vxe-ui-font-color);
|
|
2966
2985
|
font-family: var(--vxe-ui-font-family);
|
|
2967
2986
|
direction: ltr;
|
|
@@ -3247,9 +3266,6 @@
|
|
|
3247
3266
|
.vxe-table--render-default.border--none .vxe-table--border-line {
|
|
3248
3267
|
display: none;
|
|
3249
3268
|
}
|
|
3250
|
-
.vxe-table--render-default.size--medium {
|
|
3251
|
-
font-size: var(--vxe-ui-font-size-medium);
|
|
3252
|
-
}
|
|
3253
3269
|
.vxe-table--render-default.size--medium .vxe-table--empty-placeholder,
|
|
3254
3270
|
.vxe-table--render-default.size--medium .vxe-table--empty-block {
|
|
3255
3271
|
min-height: var(--vxe-ui-table-row-height-medium);
|
|
@@ -3275,9 +3291,6 @@
|
|
|
3275
3291
|
.vxe-table--render-default.size--medium .vxe-cell--valid-error-tip {
|
|
3276
3292
|
padding: 0 var(--vxe-ui-table-cell-padding-medium);
|
|
3277
3293
|
}
|
|
3278
|
-
.vxe-table--render-default.size--small {
|
|
3279
|
-
font-size: var(--vxe-ui-font-size-small);
|
|
3280
|
-
}
|
|
3281
3294
|
.vxe-table--render-default.size--small .vxe-table--empty-placeholder,
|
|
3282
3295
|
.vxe-table--render-default.size--small .vxe-table--empty-block {
|
|
3283
3296
|
min-height: var(--vxe-ui-table-row-height-small);
|
|
@@ -3303,9 +3316,6 @@
|
|
|
3303
3316
|
.vxe-table--render-default.size--small .vxe-cell--valid-error-tip {
|
|
3304
3317
|
padding: 0 var(--vxe-ui-table-cell-padding-small);
|
|
3305
3318
|
}
|
|
3306
|
-
.vxe-table--render-default.size--mini {
|
|
3307
|
-
font-size: var(--vxe-ui-font-size-mini);
|
|
3308
|
-
}
|
|
3309
3319
|
.vxe-table--render-default.size--mini .vxe-table--empty-placeholder,
|
|
3310
3320
|
.vxe-table--render-default.size--mini .vxe-table--empty-block {
|
|
3311
3321
|
min-height: var(--vxe-ui-table-row-height-mini);
|
|
@@ -3847,7 +3857,7 @@
|
|
|
3847
3857
|
width: 100%;
|
|
3848
3858
|
position: absolute;
|
|
3849
3859
|
left: 50%;
|
|
3850
|
-
font-size: var(--vxe-ui-table-validate-error-font-size);
|
|
3860
|
+
font-size: var(--vxe-ui-table-validate-error-font-size, var(--vxe-ui-table-current-font-size));
|
|
3851
3861
|
line-height: 1em;
|
|
3852
3862
|
transform: translate(-50%, -2px);
|
|
3853
3863
|
text-align: left;
|
|
@@ -3862,7 +3872,7 @@
|
|
|
3862
3872
|
pointer-events: auto;
|
|
3863
3873
|
}
|
|
3864
3874
|
.vxe-table--render-default .vxe-body--column .vxe-cell--valid-error-theme-beautify {
|
|
3865
|
-
padding: 0.2em 0.6em
|
|
3875
|
+
padding: var(--vxe-ui-table-validate-error-padding, 0.2em 0.6em);
|
|
3866
3876
|
color: #fff;
|
|
3867
3877
|
background-color: var(--vxe-ui-table-validate-error-color);
|
|
3868
3878
|
}
|