e-virt-table 1.0.1 → 1.0.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/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +15 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/EVirtTable.js +1 -0
- package/dist/lib/EVirtTable.js.map +1 -1
- package/dist/lib/EventTable.d.ts +1 -0
- package/dist/lib/EventTable.js +6 -0
- package/dist/lib/EventTable.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2694,21 +2694,22 @@ class hi {
|
|
|
2694
2694
|
return !!(this.ctx.scrollerMove || this.ctx.scrollerFocus || s > this.ctx.stageHeight - o || r > this.ctx.stageWidth - o);
|
|
2695
2695
|
}
|
|
2696
2696
|
handleBodyEvent(t, e, i, s, r = !1) {
|
|
2697
|
-
|
|
2698
|
-
const
|
|
2699
|
-
|
|
2700
|
-
const
|
|
2701
|
-
|
|
2702
|
-
if (
|
|
2697
|
+
if (this.isInsideBody(e))
|
|
2698
|
+
for (const o of i) {
|
|
2699
|
+
const a = o.fixedCells.concat(o.noFixedCells);
|
|
2700
|
+
for (const l of a) {
|
|
2701
|
+
const c = l.getDrawX(), d = l.getDrawY();
|
|
2702
|
+
if (r) {
|
|
2703
|
+
if (t > c && t < c + l.visibleWidth && e > d && e < d + l.visibleHeight) {
|
|
2704
|
+
s(l);
|
|
2705
|
+
return;
|
|
2706
|
+
}
|
|
2707
|
+
} else if (t > c && t < c + l.width && e > d && e < d + l.height) {
|
|
2703
2708
|
s(l);
|
|
2704
2709
|
return;
|
|
2705
2710
|
}
|
|
2706
|
-
} else if (t > c && t < c + l.width && e > d && e < d + l.height) {
|
|
2707
|
-
s(l);
|
|
2708
|
-
return;
|
|
2709
2711
|
}
|
|
2710
2712
|
}
|
|
2711
|
-
}
|
|
2712
2713
|
}
|
|
2713
2714
|
handleHeaderEvent(t, e, i, s) {
|
|
2714
2715
|
for (const r of i) {
|
|
@@ -2719,6 +2720,9 @@ class hi {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
}
|
|
2721
2722
|
}
|
|
2723
|
+
isInsideBody(t) {
|
|
2724
|
+
return t > this.ctx.body.y && t < this.ctx.body.y + this.ctx.body.visibleHeight;
|
|
2725
|
+
}
|
|
2722
2726
|
destroy() {
|
|
2723
2727
|
this.resizeObserver.unobserve(this.ctx.stageElement);
|
|
2724
2728
|
}
|
|
@@ -5676,7 +5680,7 @@ class Qi {
|
|
|
5676
5680
|
this.ctx.off(t, e);
|
|
5677
5681
|
}
|
|
5678
5682
|
filterMethod(t) {
|
|
5679
|
-
this.ctx.setScrollY(0), this.ctx.setScrollX(0), this.ctx.database.init(), this.ctx.database.setFilterMethod(t), this.ctx.emit("draw");
|
|
5683
|
+
this.ctx.setScrollY(0), this.ctx.setScrollX(0), this.ctx.database.init(), this.header.init(), this.ctx.database.setFilterMethod(t), this.ctx.emit("draw");
|
|
5680
5684
|
}
|
|
5681
5685
|
editCell(t, e) {
|
|
5682
5686
|
this.editor.editCell(t, e);
|