@kyfe/ks-query-table 0.0.7 → 0.0.8
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/demo.html +10 -0
- package/{index.js → ks-query-table.common.js} +10 -6
- package/ks-query-table.common.js.map +1 -1
- package/ks-query-table.umd.js +10 -6
- package/ks-query-table.umd.js.map +1 -1
- package/ks-query-table.umd.min.js +2 -2
- package/ks-query-table.umd.min.js.map +1 -1
- package/package.json +1 -1
package/demo.html
ADDED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
;{try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
;{try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="42cd016c-4830-4af3-97c5-0602aaf356b4",e._sentryDebugIdIdentifier="sentry-dbid-42cd016c-4830-4af3-97c5-0602aaf356b4")}catch(e){}};
|
|
2
2
|
{
|
|
3
3
|
let _global =
|
|
4
4
|
typeof window !== 'undefined' ?
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
self :
|
|
12
12
|
{};
|
|
13
13
|
|
|
14
|
-
_global.SENTRY_RELEASE={id:"@kyfe/ks-query-table@0.0.
|
|
14
|
+
_global.SENTRY_RELEASE={id:"@kyfe/ks-query-table@0.0.8"};}
|
|
15
15
|
module.exports =
|
|
16
16
|
/******/ (function(modules) { // webpackBootstrap
|
|
17
17
|
/******/ // The module cache
|
|
@@ -33621,7 +33621,9 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33621
33621
|
if (currentY > _this.lastY) {
|
|
33622
33622
|
// 下滑
|
|
33623
33623
|
_this.fixedScrollY = false;
|
|
33624
|
-
_this.
|
|
33624
|
+
if (_this.tabledScrollTop === 0) {
|
|
33625
|
+
_this.tableParentContainer.style.overflow = 'auto';
|
|
33626
|
+
}
|
|
33625
33627
|
} else if (currentY < _this.lastY) {
|
|
33626
33628
|
// 上滑
|
|
33627
33629
|
_this.fixedScrollY = true;
|
|
@@ -33631,7 +33633,9 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33631
33633
|
_this.lastY = currentY;
|
|
33632
33634
|
});
|
|
33633
33635
|
document.addEventListener('touchend', function () {
|
|
33634
|
-
_this.
|
|
33636
|
+
if (_this.tabledScrollTop === 0) {
|
|
33637
|
+
_this.tableParentContainer.style.overflow = 'auto';
|
|
33638
|
+
}
|
|
33635
33639
|
});
|
|
33636
33640
|
},
|
|
33637
33641
|
tabledFixedTop: function tabledFixedTop() {
|
|
@@ -33652,7 +33656,7 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33652
33656
|
autoResizeHeight: function autoResizeHeight() {
|
|
33653
33657
|
var _this3 = this;
|
|
33654
33658
|
this.$nextTick(function () {
|
|
33655
|
-
var targetElement = _this3.$el.querySelector('.table');
|
|
33659
|
+
var targetElement = _this3.$el.querySelector('.table').parentNode;
|
|
33656
33660
|
var previousHeight = null;
|
|
33657
33661
|
var resizeTimeout; // 用于防抖的定时器
|
|
33658
33662
|
|
|
@@ -33670,7 +33674,7 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33670
33674
|
try {
|
|
33671
33675
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
33672
33676
|
var entry = _step.value;
|
|
33673
|
-
var newHeight = entry.contentRect.height;
|
|
33677
|
+
var newHeight = entry.contentRect.height - _this3.$el.querySelector('.top-fixed').clientHeight;
|
|
33674
33678
|
// 仅在高度变化时执行某些操作
|
|
33675
33679
|
if (newHeight !== previousHeight) {
|
|
33676
33680
|
// console.log('新高度:', newHeight)
|