@iyulab/flex-table 0.16.0 → 0.16.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.
|
@@ -3234,7 +3234,7 @@ var Y = {
|
|
|
3234
3234
|
if (!e) return "";
|
|
3235
3235
|
let t = this.visibleColumns;
|
|
3236
3236
|
if (e.endCol >= t.length || e.endRow >= this._visibleRowCount) return "";
|
|
3237
|
-
let r =
|
|
3237
|
+
let r = (this._colLeftOffsets[e.endCol] ?? 0) + this._getColWidth(t[e.endCol]) - this._scrollLeft - 4, i = this.headerHeight + (e.endRow + 1) * this.rowHeight - this._scrollTop - 4;
|
|
3238
3238
|
return r < 0 || i < this.headerHeight ? "" : n`
|
|
3239
3239
|
${this._fillDrag?.active && this._fillDrag.targetRange ? this._renderFillPreview(this._fillDrag.targetRange) : ""}
|
|
3240
3240
|
<div class="ft-fill-handle"
|
|
@@ -3245,7 +3245,7 @@ var Y = {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
_renderFillPreview(e) {
|
|
3247
3247
|
let t = this.visibleColumns;
|
|
3248
|
-
return e.endCol >= t.length || e.endRow >= this._visibleRowCount ? "" : n`<div class="ft-fill-preview" style="left:${
|
|
3248
|
+
return e.endCol >= t.length || e.endRow >= this._visibleRowCount ? "" : n`<div class="ft-fill-preview" style="left:${(this._colLeftOffsets[e.startCol] ?? 0) - this._scrollLeft}px;top:${this.headerHeight + e.startRow * this.rowHeight - this._scrollTop}px;width:${(this._colLeftOffsets[e.endCol] ?? 0) + this._getColWidth(t[e.endCol]) - (this._colLeftOffsets[e.startCol] ?? 0)}px;height:${(e.endRow - e.startRow + 1) * this.rowHeight}px;"></div>`;
|
|
3249
3249
|
}
|
|
3250
3250
|
_onRowNumMouseDown(e, t) {
|
|
3251
3251
|
if (e.button !== 0) return;
|
package/dist/flex-table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./flex-table-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./flex-table-C06mZOgA.js";
|
|
2
2
|
export { i as FlexTable, t as RowSelectionState, r as UndoStack, n as exportData, e as renderCell };
|
package/dist/react.js
CHANGED