@visactor/vtable 1.4.3-alpha.0 → 1.4.3-alpha.2
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/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/utils/break-string.js +2 -1
- package/cjs/scenegraph/utils/break-string.js.map +1 -1
- package/cjs/state/state.js +13 -11
- package/cjs/state/state.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +11 -4
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/utils/break-string.js +2 -1
- package/es/scenegraph/utils/break-string.js.map +1 -1
- package/es/state/state.js +13 -11
- package/es/state/state.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/dist/vtable.js
CHANGED
|
@@ -53293,6 +53293,11 @@
|
|
|
53293
53293
|
while (text.length && text.length > 1 && !text[text.length - 1]) {
|
|
53294
53294
|
text.pop();
|
|
53295
53295
|
}
|
|
53296
|
+
if (table.options.customConfig?.multilinesForXTable && !table.internalProps.autoWrapText) {
|
|
53297
|
+
while (text.length && text.length > 1 && !text[0]) {
|
|
53298
|
+
text.shift();
|
|
53299
|
+
}
|
|
53300
|
+
}
|
|
53296
53301
|
return {
|
|
53297
53302
|
text,
|
|
53298
53303
|
moreThanMaxCharacters
|
|
@@ -68046,7 +68051,8 @@
|
|
|
68046
68051
|
}
|
|
68047
68052
|
setScrollTop(top) {
|
|
68048
68053
|
const totalHeight = this.table.getAllRowsHeight();
|
|
68049
|
-
|
|
68054
|
+
const sizeTolerance = this.table.options.customConfig?._disableColumnAndRowSizeRound ? 1 : 0;
|
|
68055
|
+
top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance));
|
|
68050
68056
|
top = Math.ceil(top);
|
|
68051
68057
|
if (top !== this.scroll.verticalBarPos || this.table.isPivotChart()) {
|
|
68052
68058
|
this.updateHoverPos(-1, -1);
|
|
@@ -68077,7 +68083,8 @@
|
|
|
68077
68083
|
this.table.scrollLeft;
|
|
68078
68084
|
const totalWidth = this.table.getAllColsWidth();
|
|
68079
68085
|
this.table.getFrozenColsWidth();
|
|
68080
|
-
|
|
68086
|
+
const sizeTolerance = this.table.options.customConfig?._disableColumnAndRowSizeRound ? 1 : 0;
|
|
68087
|
+
left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance));
|
|
68081
68088
|
left = Math.ceil(left);
|
|
68082
68089
|
if (left !== this.scroll.horizontalBarPos) {
|
|
68083
68090
|
this.updateHoverPos(-1, -1);
|
|
@@ -75020,7 +75027,7 @@
|
|
|
75020
75027
|
return TABLE_EVENT_TYPE;
|
|
75021
75028
|
}
|
|
75022
75029
|
options;
|
|
75023
|
-
version = "1.4.3-alpha.
|
|
75030
|
+
version = "1.4.3-alpha.2";
|
|
75024
75031
|
pagination;
|
|
75025
75032
|
id = `VTable${Date.now()}`;
|
|
75026
75033
|
headerStyleCache;
|
|
@@ -88689,7 +88696,7 @@
|
|
|
88689
88696
|
}
|
|
88690
88697
|
|
|
88691
88698
|
registerForVrender();
|
|
88692
|
-
const version = "1.4.3-alpha.
|
|
88699
|
+
const version = "1.4.3-alpha.2";
|
|
88693
88700
|
function getIcons() {
|
|
88694
88701
|
return get$2();
|
|
88695
88702
|
}
|