@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/ks-query-table.umd.js
CHANGED
|
@@ -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]="763d4681-ed9c-4b30-936b-4624d4657381",e._sentryDebugIdIdentifier="sentry-dbid-763d4681-ed9c-4b30-936b-4624d4657381")}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
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
16
16
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
17
17
|
module.exports = factory();
|
|
@@ -33630,7 +33630,9 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33630
33630
|
if (currentY > _this.lastY) {
|
|
33631
33631
|
// 下滑
|
|
33632
33632
|
_this.fixedScrollY = false;
|
|
33633
|
-
_this.
|
|
33633
|
+
if (_this.tabledScrollTop === 0) {
|
|
33634
|
+
_this.tableParentContainer.style.overflow = 'auto';
|
|
33635
|
+
}
|
|
33634
33636
|
} else if (currentY < _this.lastY) {
|
|
33635
33637
|
// 上滑
|
|
33636
33638
|
_this.fixedScrollY = true;
|
|
@@ -33640,7 +33642,9 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33640
33642
|
_this.lastY = currentY;
|
|
33641
33643
|
});
|
|
33642
33644
|
document.addEventListener('touchend', function () {
|
|
33643
|
-
_this.
|
|
33645
|
+
if (_this.tabledScrollTop === 0) {
|
|
33646
|
+
_this.tableParentContainer.style.overflow = 'auto';
|
|
33647
|
+
}
|
|
33644
33648
|
});
|
|
33645
33649
|
},
|
|
33646
33650
|
tabledFixedTop: function tabledFixedTop() {
|
|
@@ -33661,7 +33665,7 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33661
33665
|
autoResizeHeight: function autoResizeHeight() {
|
|
33662
33666
|
var _this3 = this;
|
|
33663
33667
|
this.$nextTick(function () {
|
|
33664
|
-
var targetElement = _this3.$el.querySelector('.table');
|
|
33668
|
+
var targetElement = _this3.$el.querySelector('.table').parentNode;
|
|
33665
33669
|
var previousHeight = null;
|
|
33666
33670
|
var resizeTimeout; // 用于防抖的定时器
|
|
33667
33671
|
|
|
@@ -33679,7 +33683,7 @@ var table_horizontal_component = normalizeComponent(
|
|
|
33679
33683
|
try {
|
|
33680
33684
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
33681
33685
|
var entry = _step.value;
|
|
33682
|
-
var newHeight = entry.contentRect.height;
|
|
33686
|
+
var newHeight = entry.contentRect.height - _this3.$el.querySelector('.top-fixed').clientHeight;
|
|
33683
33687
|
// 仅在高度变化时执行某些操作
|
|
33684
33688
|
if (newHeight !== previousHeight) {
|
|
33685
33689
|
// console.log('新高度:', newHeight)
|