@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 ADDED
@@ -0,0 +1,10 @@
1
+ <meta charset="utf-8">
2
+ <title>ks-query-table demo</title>
3
+ <script src="./ks-query-table.umd.js"></script>
4
+
5
+ <link rel="stylesheet" href="./ks-query-table.css">
6
+
7
+
8
+ <script>
9
+ console.log(ks-query-table)
10
+ </script>
@@ -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]="06009951-47cd-4e46-9255-af54e7bdef75",e._sentryDebugIdIdentifier="sentry-dbid-06009951-47cd-4e46-9255-af54e7bdef75")}catch(e){}};
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.7"};}
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.tableParentContainer.style.overflow = 'auto';
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.tableParentContainer.style.overflow = 'auto';
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)