vxe-table 3.15.14 → 3.15.15
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/footer.js +1 -1
- package/es/table/src/header.js +1 -1
- package/es/table/src/methods.js +3 -3
- package/es/table/src/table.js +5 -7
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +12 -14
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/footer.js +1 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +1 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +3 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +4 -6
- 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/dom.js +1 -1
- package/lib/ui/src/dom.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/footer.ts +1 -1
- package/packages/table/src/header.ts +1 -1
- package/packages/table/src/methods.ts +3 -3
- package/packages/table/src/table.ts +5 -7
- package/packages/ui/src/dom.ts +1 -1
- /package/es/{iconfont.1745827933282.ttf → iconfont.1745889617363.ttf} +0 -0
- /package/es/{iconfont.1745827933282.woff → iconfont.1745889617363.woff} +0 -0
- /package/es/{iconfont.1745827933282.woff2 → iconfont.1745889617363.woff2} +0 -0
- /package/lib/{iconfont.1745827933282.ttf → iconfont.1745889617363.ttf} +0 -0
- /package/lib/{iconfont.1745827933282.woff → iconfont.1745889617363.woff} +0 -0
- /package/lib/{iconfont.1745827933282.woff2 → iconfont.1745889617363.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -1031,7 +1031,7 @@ function updateStyle($xeTable) {
|
|
|
1031
1031
|
if (tableElem) {
|
|
1032
1032
|
tableElem.style.width = tWidth ? `${tWidth}px` : '';
|
|
1033
1033
|
// 兼容性处理
|
|
1034
|
-
tableElem.style.paddingRight = osbWidth && fixedType && (browseObj
|
|
1034
|
+
tableElem.style.paddingRight = osbWidth && fixedType && (browseObj.firefox || browseObj.safari) ? `${osbWidth}px` : '';
|
|
1035
1035
|
}
|
|
1036
1036
|
const emptyBlockElem = getRefElem(elemStore[`${name}-${layout}-emptyBlock`]);
|
|
1037
1037
|
if (emptyBlockElem) {
|
|
@@ -9265,7 +9265,7 @@ const Methods = {
|
|
|
9265
9265
|
if (isRollX) {
|
|
9266
9266
|
evnt.preventDefault();
|
|
9267
9267
|
internalData.inWheelScroll = true;
|
|
9268
|
-
if (browseObj
|
|
9268
|
+
if (browseObj.firefox || browseObj.safari) {
|
|
9269
9269
|
const currLeftNum = scrollLeft;
|
|
9270
9270
|
setScrollLeft(xHandleEl, currLeftNum);
|
|
9271
9271
|
setScrollLeft(bodyScrollElem, currLeftNum);
|
|
@@ -9298,7 +9298,7 @@ const Methods = {
|
|
|
9298
9298
|
}
|
|
9299
9299
|
if (isRollY) {
|
|
9300
9300
|
evnt.preventDefault();
|
|
9301
|
-
if (browseObj
|
|
9301
|
+
if (browseObj.firefox || browseObj.safari) {
|
|
9302
9302
|
const currTopNum = scrollTop;
|
|
9303
9303
|
setScrollTop(yHandleEl, currTopNum);
|
|
9304
9304
|
setScrollTop(bodyScrollElem, currTopNum);
|
package/es/table/src/table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils';
|
|
2
2
|
import { getFuncText, isEnableConf } from '../../ui/src/utils';
|
|
3
3
|
import { initTpImg } from '../../ui/src/dom';
|
|
4
|
-
import { createHandleGetRowId } from './util';
|
|
4
|
+
import { createHandleGetRowId, getCellHeight } from './util';
|
|
5
5
|
import { VxeUI } from '../../ui';
|
|
6
6
|
import methods from './methods';
|
|
7
7
|
import TableBodyComponent from './body';
|
|
@@ -791,18 +791,16 @@ export default {
|
|
|
791
791
|
const $xeTable = this;
|
|
792
792
|
const props = $xeTable;
|
|
793
793
|
const headerCellOpts = Object.assign({}, getConfig().table.headerCellConfig, props.headerCellConfig);
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
794
|
+
const cellOpts = $xeTable.computeCellOpts;
|
|
795
|
+
headerCellOpts.height = XEUtils.toNumber(getCellHeight(headerCellOpts.height || cellOpts.height));
|
|
797
796
|
return headerCellOpts;
|
|
798
797
|
},
|
|
799
798
|
computeFooterCellOpts() {
|
|
800
799
|
const $xeTable = this;
|
|
801
800
|
const props = $xeTable;
|
|
802
801
|
const footerCellOpts = Object.assign({}, getConfig().table.footerCellConfig, props.footerCellConfig);
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
802
|
+
const cellOpts = $xeTable.computeCellOpts;
|
|
803
|
+
footerCellOpts.height = XEUtils.toNumber(getCellHeight(footerCellOpts.height || cellOpts.height));
|
|
806
804
|
return footerCellOpts;
|
|
807
805
|
},
|
|
808
806
|
rowOpts() {
|
package/es/ui/index.js
CHANGED
package/es/ui/src/dom.js
CHANGED
|
@@ -45,7 +45,7 @@ export function isScale(val) {
|
|
|
45
45
|
return val && /^\d+%$/.test(val);
|
|
46
46
|
}
|
|
47
47
|
export function hasClass(elem, cls) {
|
|
48
|
-
return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
|
|
48
|
+
return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
49
49
|
}
|
|
50
50
|
export function removeClass(elem, cls) {
|
|
51
51
|
if (elem && hasClass(elem, cls)) {
|
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.15.
|
|
2223
|
+
const version = "3.15.15";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2718,7 +2718,7 @@ function isScale(val) {
|
|
|
2718
2718
|
return val && /^\d+%$/.test(val);
|
|
2719
2719
|
}
|
|
2720
2720
|
function hasClass(elem, cls) {
|
|
2721
|
-
return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
|
|
2721
|
+
return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
2722
2722
|
}
|
|
2723
2723
|
function removeClass(elem, cls) {
|
|
2724
2724
|
if (elem && hasClass(elem, cls)) {
|
|
@@ -2858,7 +2858,7 @@ function isNodeElement(elem) {
|
|
|
2858
2858
|
const {
|
|
2859
2859
|
log: log_log
|
|
2860
2860
|
} = core_.VxeUI;
|
|
2861
|
-
const log_version = `table v${"3.15.
|
|
2861
|
+
const log_version = `table v${"3.15.15"}`;
|
|
2862
2862
|
const warnLog = log_log.create('warn', log_version);
|
|
2863
2863
|
const errLog = log_log.create('error', log_version);
|
|
2864
2864
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -6568,7 +6568,7 @@ function updateStyle($xeTable) {
|
|
|
6568
6568
|
if (tableElem) {
|
|
6569
6569
|
tableElem.style.width = tWidth ? `${tWidth}px` : '';
|
|
6570
6570
|
// 兼容性处理
|
|
6571
|
-
tableElem.style.paddingRight = osbWidth && fixedType && (browseObj
|
|
6571
|
+
tableElem.style.paddingRight = osbWidth && fixedType && (browseObj.firefox || browseObj.safari) ? `${osbWidth}px` : '';
|
|
6572
6572
|
}
|
|
6573
6573
|
const emptyBlockElem = getRefElem(elemStore[`${name}-${layout}-emptyBlock`]);
|
|
6574
6574
|
if (emptyBlockElem) {
|
|
@@ -16126,7 +16126,7 @@ const Methods = {
|
|
|
16126
16126
|
if (isRollX) {
|
|
16127
16127
|
evnt.preventDefault();
|
|
16128
16128
|
internalData.inWheelScroll = true;
|
|
16129
|
-
if (browseObj
|
|
16129
|
+
if (browseObj.firefox || browseObj.safari) {
|
|
16130
16130
|
const currLeftNum = scrollLeft;
|
|
16131
16131
|
setScrollLeft(xHandleEl, currLeftNum);
|
|
16132
16132
|
setScrollLeft(bodyScrollElem, currLeftNum);
|
|
@@ -16158,7 +16158,7 @@ const Methods = {
|
|
|
16158
16158
|
}
|
|
16159
16159
|
if (isRollY) {
|
|
16160
16160
|
evnt.preventDefault();
|
|
16161
|
-
if (browseObj
|
|
16161
|
+
if (browseObj.firefox || browseObj.safari) {
|
|
16162
16162
|
const currTopNum = scrollTop;
|
|
16163
16163
|
setScrollTop(yHandleEl, currTopNum);
|
|
16164
16164
|
setScrollTop(bodyScrollElem, currTopNum);
|
|
@@ -17989,7 +17989,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
17989
17989
|
const cellOpts = $xeTable.computeCellOpts;
|
|
17990
17990
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
17991
17991
|
const headerCellOpts = $xeTable.computeHeaderCellOpts;
|
|
17992
|
-
const currCellHeight = getCellHeight(headerCellOpts.height
|
|
17992
|
+
const currCellHeight = getCellHeight(headerCellOpts.height) || defaultRowHeight;
|
|
17993
17993
|
const {
|
|
17994
17994
|
disabledMethod: dragDisabledMethod,
|
|
17995
17995
|
isCrossDrag,
|
|
@@ -18455,7 +18455,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
|
|
|
18455
18455
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
18456
18456
|
const cellOpts = $xeTable.computeCellOpts;
|
|
18457
18457
|
const footerCellOpts = $xeTable.computeFooterCellOpts;
|
|
18458
|
-
const currCellHeight = getCellHeight(footerCellOpts.height
|
|
18458
|
+
const currCellHeight = getCellHeight(footerCellOpts.height) || defaultRowHeight;
|
|
18459
18459
|
return tableColumn.map((column, $columnIndex) => {
|
|
18460
18460
|
const {
|
|
18461
18461
|
type,
|
|
@@ -27737,18 +27737,16 @@ function renderBody(h, $xeTable) {
|
|
|
27737
27737
|
const $xeTable = this;
|
|
27738
27738
|
const props = $xeTable;
|
|
27739
27739
|
const headerCellOpts = Object.assign({}, table_getConfig().table.headerCellConfig, props.headerCellConfig);
|
|
27740
|
-
|
|
27741
|
-
|
|
27742
|
-
}
|
|
27740
|
+
const cellOpts = $xeTable.computeCellOpts;
|
|
27741
|
+
headerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCellHeight(headerCellOpts.height || cellOpts.height));
|
|
27743
27742
|
return headerCellOpts;
|
|
27744
27743
|
},
|
|
27745
27744
|
computeFooterCellOpts() {
|
|
27746
27745
|
const $xeTable = this;
|
|
27747
27746
|
const props = $xeTable;
|
|
27748
27747
|
const footerCellOpts = Object.assign({}, table_getConfig().table.footerCellConfig, props.footerCellConfig);
|
|
27749
|
-
|
|
27750
|
-
|
|
27751
|
-
}
|
|
27748
|
+
const cellOpts = $xeTable.computeCellOpts;
|
|
27749
|
+
footerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCellHeight(footerCellOpts.height || cellOpts.height));
|
|
27752
27750
|
return footerCellOpts;
|
|
27753
27751
|
},
|
|
27754
27752
|
rowOpts() {
|