vxe-table 4.21.0-beta.0 → 4.21.0-beta.1
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 +20 -9
- package/dist/style.css +1 -1
- package/es/style.css +1 -1
- package/es/table/render/index.js +6 -6
- package/es/table/src/table.js +5 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +7 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +16 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +6 -6
- package/lib/table/src/table.js +1 -1
- 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 +7 -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 +3 -3
- package/packages/table/render/index.ts +6 -6
- package/packages/table/src/table.ts +5 -0
- package/packages/ui/src/dom.ts +7 -1
- /package/es/{iconfont.1786796867061.ttf → iconfont.1787020659001.ttf} +0 -0
- /package/es/{iconfont.1786796867061.woff → iconfont.1787020659001.woff} +0 -0
- /package/es/{iconfont.1786796867061.woff2 → iconfont.1787020659001.woff2} +0 -0
- /package/lib/{iconfont.1786796867061.ttf → iconfont.1787020659001.ttf} +0 -0
- /package/lib/{iconfont.1786796867061.woff → iconfont.1787020659001.woff} +0 -0
- /package/lib/{iconfont.1786796867061.woff2 → iconfont.1787020659001.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
|
|
|
44
44
|
return cellValue === '' || XEUtils.eqNull(cellValue);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const version = "4.21.0-beta.
|
|
47
|
+
const version = "4.21.0-beta.1";
|
|
48
48
|
VxeUI.version = version;
|
|
49
49
|
VxeUI.tableVersion = version;
|
|
50
50
|
VxeUI.setConfig({
|
|
@@ -603,7 +603,13 @@ function isScale(val) {
|
|
|
603
603
|
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
604
604
|
}
|
|
605
605
|
function hasClass(elem, cls) {
|
|
606
|
-
|
|
606
|
+
if (elem) {
|
|
607
|
+
if (elem.classList) {
|
|
608
|
+
return elem.classList.contains(cls);
|
|
609
|
+
}
|
|
610
|
+
return !!(elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
611
|
+
}
|
|
612
|
+
return false;
|
|
607
613
|
}
|
|
608
614
|
function removeClass(elem, cls) {
|
|
609
615
|
if (elem && hasClass(elem, cls)) {
|
|
@@ -760,7 +766,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
760
766
|
}
|
|
761
767
|
|
|
762
768
|
const { log } = VxeUI;
|
|
763
|
-
const tableVersion = `table v${"4.21.0-beta.
|
|
769
|
+
const tableVersion = `table v${"4.21.0-beta.1"}`;
|
|
764
770
|
function createComponentLog(name) {
|
|
765
771
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
766
772
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -14658,9 +14664,9 @@ function handleNumberCell(cellValue, renderOpts, params) {
|
|
|
14658
14664
|
}
|
|
14659
14665
|
: {});
|
|
14660
14666
|
}
|
|
14661
|
-
function handleFormatDatePicker(renderOpts,
|
|
14667
|
+
function handleFormatDatePicker(renderOpts, renderParams) {
|
|
14662
14668
|
const { props = {} } = renderOpts;
|
|
14663
|
-
const { cellValue } =
|
|
14669
|
+
const { cellValue } = renderParams;
|
|
14664
14670
|
if (cellValue) {
|
|
14665
14671
|
if (props.type !== 'time') {
|
|
14666
14672
|
return getLabelFormatDate(cellValue, props);
|
|
@@ -14668,12 +14674,12 @@ function handleFormatDatePicker(renderOpts, params) {
|
|
|
14668
14674
|
}
|
|
14669
14675
|
return cellValue;
|
|
14670
14676
|
}
|
|
14671
|
-
function handleFormatSelect(renderOpts,
|
|
14672
|
-
const { cellValue } =
|
|
14677
|
+
function handleFormatSelect(renderOpts, renderParams) {
|
|
14678
|
+
const { cellValue } = renderParams;
|
|
14673
14679
|
return handleSelectCellValue(cellValue, renderOpts);
|
|
14674
14680
|
}
|
|
14675
|
-
function handleSetSelectValue(renderOpts,
|
|
14676
|
-
const { row, column, cellValue } =
|
|
14681
|
+
function handleSetSelectValue(renderOpts, renderParams) {
|
|
14682
|
+
const { row, column, cellValue } = renderParams;
|
|
14677
14683
|
const { field } = column;
|
|
14678
14684
|
if (field) {
|
|
14679
14685
|
const { options, optionGroups, optionProps = {}, optionGroupProps = {}, props } = renderOpts;
|
|
@@ -19973,6 +19979,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
19973
19979
|
};
|
|
19974
19980
|
const handleSyncScroll = (isRollX, isRollY) => {
|
|
19975
19981
|
const { scrollXLoad, scrollYLoad, isAllOverflow } = reactData;
|
|
19982
|
+
const autoWidthColumnList = computeAutoWidthColumnList.value;
|
|
19976
19983
|
internalData.lcsRunTime = Date.now();
|
|
19977
19984
|
internalData.lcsTimeout = undefined;
|
|
19978
19985
|
internalData.intoRunScroll = false;
|
|
@@ -19994,6 +20001,10 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
19994
20001
|
}
|
|
19995
20002
|
if (isRollY && scrollYLoad) {
|
|
19996
20003
|
yRest = $xeTable.updateScrollYData().then(() => {
|
|
20004
|
+
if (autoWidthColumnList.length) {
|
|
20005
|
+
calcCellWidth();
|
|
20006
|
+
autoCellWidth();
|
|
20007
|
+
}
|
|
19997
20008
|
if (!isAllOverflow) {
|
|
19998
20009
|
calcCellHeight();
|
|
19999
20010
|
updateRowOffsetTop();
|